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 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
 
@@ -1,5 +1,5 @@
1
- import { NpmClientType, PiletSchemaVersion } from '../types';
2
1
  import { SourceLanguage } from './enums';
2
+ import { NpmClientType, PiletSchemaVersion } from '../types';
3
3
  export interface PiralCliConfig {
4
4
  /**
5
5
  * Key to be used for all servers in case there is
@@ -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: {},
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/common/config.ts"],"names":[],"mappings":";;;AAAA,0CAAiC;AAEjC,mCAAyC;AACzC,2CAA8C;AAgEjC,QAAA,MAAM,GAAmB,IAAA,aAAE,EAAC,OAAO,EAAE;IAChD,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,EAAE,EAAE,CAAC,CAAC"}
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.3540",
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": "151470c2e2e9f8616949acde653617fc0f6d1f8c"
80
+ "gitHead": "2edf7bbcee6a7e931348198d14139c7f958877e7"
81
81
  }
@@ -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('piral', {
69
- apiKey: undefined,
70
- apiKeys: {},
71
- url: undefined,
72
- cert: undefined,
73
- npmClient: 'npm',
74
- bundler: 'webpack5',
75
- piletApi: '/$pilet-api',
76
- validators: {},
77
- schemaVersion: 'v2',
78
- openBrowser: false,
79
- port: 1234,
80
- language: SourceLanguage.ts,
81
- host: 'localhost',
82
- registry: defaultRegistry,
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'];