piral-cli 0.15.0-alpha.3540 → 0.15.0-alpha.3548
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/README.md +1 -0
- package/lib/common/config.d.ts +1 -1
- package/lib/common/config.js +1 -1
- package/lib/common/config.js.map +1 -1
- package/package.json +2 -2
- package/src/common/config.ts +22 -18
- package/src/helpers.ts +1 -1
package/README.md
CHANGED
|
@@ -28,6 +28,7 @@ Also the following bundler plugin exists (bringing build / debug capabilities):
|
|
|
28
28
|
- [**piral-cli-webpack**](https://github.com/smapiot/piral), provides an integration for Webpack (v4) as a bundler
|
|
29
29
|
- [**piral-cli-webpack5**](https://github.com/smapiot/piral), provides an integration for Webpack (v5) as a bundler
|
|
30
30
|
- [**piral-cli-esbuild**](https://github.com/smapiot/piral), provides an integration for ES Build as a bundler
|
|
31
|
+
- [**piral-cli-xbuild**](https://github.com/smapiot/piral), provides the possibility of using npm scripts for building and debugging
|
|
31
32
|
|
|
32
33
|
You'll find an updated list [on NPM](https://www.npmjs.com/search?q=keywords%3Apiral-cli) using the keyword **piral-cli**.
|
|
33
34
|
|
package/lib/common/config.d.ts
CHANGED
package/lib/common/config.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.config = void 0;
|
|
4
|
-
const external_1 = require("../external");
|
|
5
4
|
const enums_1 = require("./enums");
|
|
6
5
|
const constants_1 = require("./constants");
|
|
6
|
+
const external_1 = require("../external");
|
|
7
7
|
exports.config = (0, external_1.rc)('piral', {
|
|
8
8
|
apiKey: undefined,
|
|
9
9
|
apiKeys: {},
|
package/lib/common/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/common/config.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/common/config.ts"],"names":[],"mappings":";;;AAAA,mCAAyC;AACzC,2CAA8C;AAC9C,0CAAiC;AAiEpB,QAAA,MAAM,GAAmB,IAAA,aAAE,EACtC,OAAO,EACP;IACE,MAAM,EAAE,SAAS;IACjB,OAAO,EAAE,EAAE;IACX,GAAG,EAAE,SAAS;IACd,IAAI,EAAE,SAAS;IACf,SAAS,EAAE,KAAK;IAChB,OAAO,EAAE,UAAU;IACnB,QAAQ,EAAE,aAAa;IACvB,UAAU,EAAE,EAAE;IACd,aAAa,EAAE,IAAI;IACnB,WAAW,EAAE,KAAK;IAClB,IAAI,EAAE,IAAI;IACV,QAAQ,EAAE,sBAAc,CAAC,EAAE;IAC3B,IAAI,EAAE,WAAW;IACjB,QAAQ,EAAE,2BAAe;CAC1B,EACD,EAAE,CACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "piral-cli",
|
|
3
|
-
"version": "0.15.0-alpha.
|
|
3
|
+
"version": "0.15.0-alpha.3548",
|
|
4
4
|
"description": "The standard CLI for creating and building a Piral instance or a Pilet.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"portal",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"typescript": "^4.0.2",
|
|
78
78
|
"yargs": "^15.4.1"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "2edf7bbcee6a7e931348198d14139c7f958877e7"
|
|
81
81
|
}
|
package/src/common/config.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { rc } from '../external';
|
|
2
|
-
import { NpmClientType, PiletSchemaVersion } from '../types';
|
|
3
1
|
import { SourceLanguage } from './enums';
|
|
4
2
|
import { defaultRegistry } from './constants';
|
|
3
|
+
import { rc } from '../external';
|
|
4
|
+
import { NpmClientType, PiletSchemaVersion } from '../types';
|
|
5
5
|
|
|
6
6
|
export interface PiralCliConfig {
|
|
7
7
|
/**
|
|
@@ -65,19 +65,23 @@ export interface PiralCliConfig {
|
|
|
65
65
|
registry?: string;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
export const config: PiralCliConfig = rc(
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
68
|
+
export const config: PiralCliConfig = rc(
|
|
69
|
+
'piral',
|
|
70
|
+
{
|
|
71
|
+
apiKey: undefined,
|
|
72
|
+
apiKeys: {},
|
|
73
|
+
url: undefined,
|
|
74
|
+
cert: undefined,
|
|
75
|
+
npmClient: 'npm',
|
|
76
|
+
bundler: 'webpack5',
|
|
77
|
+
piletApi: '/$pilet-api',
|
|
78
|
+
validators: {},
|
|
79
|
+
schemaVersion: 'v2',
|
|
80
|
+
openBrowser: false,
|
|
81
|
+
port: 1234,
|
|
82
|
+
language: SourceLanguage.ts,
|
|
83
|
+
host: 'localhost',
|
|
84
|
+
registry: defaultRegistry,
|
|
85
|
+
},
|
|
86
|
+
{},
|
|
87
|
+
);
|
package/src/helpers.ts
CHANGED
|
@@ -13,7 +13,7 @@ export const fromKeys: Array<PiletPublishSource> = ['local', 'remote', 'npm'];
|
|
|
13
13
|
export const piralBuildTypeKeys: Array<PiralBuildType> = ['all', 'release', 'emulator', 'emulator-sources'];
|
|
14
14
|
export const piletBuildTypeKeys: Array<PiletBuildType> = ['default', 'standalone', 'manifest'];
|
|
15
15
|
export const clientTypeKeys: Array<NpmClientType> = ['npm', 'pnpm', 'yarn'];
|
|
16
|
-
export const bundlerKeys: Array<string> = ['none', 'parcel', 'webpack', 'webpack5', 'esbuild'];
|
|
16
|
+
export const bundlerKeys: Array<string> = ['none', 'parcel', 'webpack', 'webpack5', 'esbuild', 'xbuild'];
|
|
17
17
|
export const availableBundlers: Array<string> = [];
|
|
18
18
|
export const availableReleaseProviders: Array<string> = [];
|
|
19
19
|
export const frameworkKeys: Array<Framework> = ['piral', 'piral-core', 'piral-base'];
|