@telia-ace/alliance-cli 4.0.0 → 4.0.1-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as c__createRequire } from 'node:module';
|
|
3
3
|
const require = c__createRequire(import.meta.url);
|
|
4
|
-
import{b as i,c as
|
|
4
|
+
import{b as i,c as n,d as a}from"./chunk-SQJLD7IF.js";import"./chunk-MCRDX3J3.js";var l="@telia-ace/alliance-cli",o="4.0.1-next.1",s="CLI used when developing ACE Alliance apps.";try{await a({meta:{name:l,version:o,description:s},subCommands:{build:()=>import("./build-QYTCDKNG.js").then(e=>e.default),serve:()=>import("./serve-X4SWXGO5.js").then(e=>e.default),jwt:()=>import("./jwt-E6TAS4VE.js").then(e=>e.default),"public-key":()=>import("./public-key-JP5EX6FK.js").then(e=>e.default),upgrade:()=>import("./upgrade-CLZT4VIC.js").then(e=>e.default)}})}catch(e){n.error(i("bold",i("red","Error:")),i("bold",e?.message||"something went wrong"))}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { createRequire as c__createRequire } from 'node:module';
|
|
2
2
|
const require = c__createRequire(import.meta.url);
|
|
3
|
-
import{a as p,i as r,j as m,m as l,n as
|
|
4
|
-
`)),i}async function u(e){let t,i,o;D(()=>{if(t)try{t.close()}catch(n){s.error(n)}if(i&&d(i))try{S(i,{force:!0})}catch(n){s.error(n)}if(o)try{o.close()}catch(n){s.error(n)}});let a=await A(e.server.apps);d(e.entries.manifest)&&a.unshift(p(h(e.entries.manifest).toString())),t=await x(e,a),i=b(
|
|
3
|
+
import{a as p,i as r,j as m,m as l,n as c,o as f}from"./chunk-XJQR7EZD.js";import{c as s}from"./chunk-SQJLD7IF.js";import"./chunk-MCRDX3J3.js";import{existsSync as d,readFileSync as h,rmSync as S}from"fs";import{start as x}from"@telia-ace/alliance-gateway/dev";import{createIndexHtml as b,getAppManifests as A}from"@telia-ace/alliance-internal-node-utilities";import{onExit as D}from"signal-exit";import y from"dns";import{createServer as g}from"vite";var w=process.env.CI==="true"||process.env.NODE_ENV==="test";async function v(e){let t=c("serve",e);y.setDefaultResultOrder("verbatim");let i=await g({plugins:e.vite.plugins,configFile:!1,mode:e.build.mode,server:{open:e.server.open,port:e.server.ports.server,host:"localhost",proxy:{"/-/":{target:`http://localhost:${e.server.ports.gateway}/`,prependPath:!1,rewrite:o=>o.replace("/-/","/")}},strictPort:!0},clearScreen:!1,resolve:{alias:e.vite.alias},define:t}).then(o=>o.listen());return(w?console.log:s.box)([r("info.server-url",{url:`http://localhost:${e.server.ports.server}`}),r("info.gateway-url",{url:`http://localhost:${e.server.ports.gateway}`}),r("info.stop-server")].join(`
|
|
4
|
+
`)),i}async function u(e){let t,i,o;D(()=>{if(t)try{t.close()}catch(n){s.error(n)}if(i&&d(i))try{S(i,{force:!0})}catch(n){s.error(n)}if(o)try{o.close()}catch(n){s.error(n)}});let a=await A(e.server.apps);d(e.entries.manifest)&&a.unshift(p(h(e.entries.manifest).toString())),t=await x(e,a),i=b(f(e)),o=await v(e)}var _={meta:{name:"serve",description:r("command.serve")},args:{"ports.server":{type:"string",description:r("arg.serve.ports.server"),required:!1},"ports.gateway":{type:"string",description:r("arg.serve.ports.gateway"),required:!1},"entries.app":{type:"string",valueHint:"./src/app.ts",description:r("arg.entries.app"),required:!1},"entries.manifest":{type:"string",valueHint:"./src/manifest.json",description:r("arg.entries.manifest"),required:!1},mode:{type:"string",alias:"m",description:r("arg.mode"),required:!1},logging:{type:"boolean",alias:"l",description:r("arg.serve.logging"),required:!1},open:{type:"boolean",alias:"o",description:r("arg.serve.open"),required:!1},config:m},async run({args:e}){let t=await l({command:"serve",mode:e.mode||"development"},e.config,{build:{mode:e.mode},server:{open:e.open,ports:{gateway:e["ports.gateway"]?Number(e["ports.gateway"]):void 0,server:e["ports.server"]?Number(e["ports.server"]):void 0},logging:e.logging},entries:{app:e["entries.app"],manifest:e["entries.manifest"]}});await u(t)}};export{_ as default};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telia-ace/alliance-cli",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1-next.1",
|
|
4
4
|
"description": "CLI used when developing ACE Alliance apps.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"type": "module",
|
|
@@ -13,16 +13,16 @@
|
|
|
13
13
|
"dist"
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"detect-indent": "^7.0.
|
|
16
|
+
"detect-indent": "^7.0.2",
|
|
17
17
|
"magicast": "^0.3.5",
|
|
18
|
-
"npm-check-updates": "^
|
|
18
|
+
"npm-check-updates": "^19.0.0",
|
|
19
19
|
"signal-exit": "^4.1.0",
|
|
20
|
-
"vite": "^7.1.
|
|
21
|
-
"@telia-ace/alliance-gateway": "^4.0.
|
|
22
|
-
"@telia-ace/alliance-internal-node-utilities": "^4.0.
|
|
20
|
+
"vite": "^7.1.9",
|
|
21
|
+
"@telia-ace/alliance-gateway": "^4.0.1-next.1",
|
|
22
|
+
"@telia-ace/alliance-internal-node-utilities": "^4.0.1-next.1"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@telia-ace/alliance-framework": "^4.0.
|
|
25
|
+
"@telia-ace/alliance-framework": "^4.0.1-next.1"
|
|
26
26
|
},
|
|
27
27
|
"engines": {
|
|
28
28
|
"node": ">=15.0.0"
|