piral-cli 0.14.9 → 0.15.0-alpha.3537

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/lib/bundler.js CHANGED
@@ -16,7 +16,7 @@ const common_1 = require("./common");
16
16
  const bundlers = [];
17
17
  function installDefaultBundler(root) {
18
18
  return __awaiter(this, void 0, void 0, function* () {
19
- const selectedBundler = common_1.config.bundler || 'webpack';
19
+ const selectedBundler = common_1.config.bundler || 'webpack5';
20
20
  (0, common_1.log)('generalDebug_0003', `Installation of default bundler for "${selectedBundler}".`);
21
21
  const selectedPackage = `piral-cli-${selectedBundler}`;
22
22
  (0, common_1.log)('generalDebug_0003', `Determining npm client at "${root}" ...`);
@@ -1 +1 @@
1
- {"version":3,"file":"bundler.js","sourceRoot":"","sources":["../src/bundler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAgE;AAChE,uCAA8C;AAC9C,qCAUkB;AAmBlB,MAAM,QAAQ,GAA4B,EAAE,CAAC;AAE7C,SAAe,qBAAqB,CAAC,IAAY;;QAC/C,MAAM,eAAe,GAAG,eAAM,CAAC,OAAO,IAAI,SAAS,CAAC;QACpD,IAAA,YAAG,EAAC,mBAAmB,EAAE,wCAAwC,eAAe,IAAI,CAAC,CAAC;QACtF,MAAM,eAAe,GAAG,aAAa,eAAe,EAAE,CAAC;QACvD,IAAA,YAAG,EAAC,mBAAmB,EAAE,8BAA8B,IAAI,OAAO,CAAC,CAAC;QACpE,MAAM,MAAM,GAAG,MAAM,IAAA,2BAAkB,EAAC,IAAI,CAAC,CAAC;QAC9C,IAAA,YAAG,EAAC,mBAAmB,EAAE,sBAAsB,eAAe,IAAI,mBAAU,WAAW,MAAM,WAAW,IAAI,IAAI,CAAC,CAAC;QAClH,IAAA,iBAAQ,EAAC,cAAc,eAAe,MAAM,CAAC,CAAC;QAC9C,MAAM,IAAA,uBAAc,EAAC,MAAM,EAAE,GAAG,eAAe,IAAI,mBAAU,EAAE,EA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 exports.config = (0, external_1.rc)('piral', {
10
10
  url: undefined,
11
11
  cert: undefined,
12
12
  npmClient: 'npm',
13
- bundler: 'webpack',
13
+ bundler: 'webpack5',
14
14
  piletApi: '/$pilet-api',
15
15
  validators: {},
16
16
  schemaVersion: 'v2',
@@ -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,SAAS;IAClB,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,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"}
package/lib/messages.d.ts CHANGED
@@ -1866,8 +1866,8 @@ export declare function invalidSchemaVersion_0171(schemaVersion: string, schemas
1866
1866
  *
1867
1867
  * @abstract
1868
1868
  * Piral allows you to set up your own tooling for building and debugging. This
1869
- * is a powerful concept. By default, the Webpack bundler is used. Alternatives
1870
- * include Parcel and Rollup.
1869
+ * is a powerful concept. By default, the Webpack v5 bundler is used.
1870
+ * Alternatives include Parcel and Rollup.
1871
1871
  *
1872
1872
  * In case where multiple bundlers are installed the first one is picked. This
1873
1873
  * may not be what you want. In this scenario you can override the selection by
@@ -1897,8 +1897,8 @@ export declare function bundlerMissing_0172(bundlerName: string, installed: Arra
1897
1897
  *
1898
1898
  * @abstract
1899
1899
  * Piral allows you to set up your own tooling for building and debugging. This
1900
- * is a powerful concept. By default, the Webpack bundler is used. Alternatives
1901
- * include Parcel and Rollup.
1900
+ * is a powerful concept. By default, the Webpack v5 bundler is used.
1901
+ * Alternatives include Parcel and Rollup.
1902
1902
  *
1903
1903
  * In case where no bundler is installed and the default bundler could not be
1904
1904
  * successfully installed this error is shown.
@@ -1954,8 +1954,8 @@ export declare function bundlingFailed_0174(error: string): QuickMessage;
1954
1954
  *
1955
1955
  * @abstract
1956
1956
  * Piral allows you to set up your own tooling for building and debugging. This
1957
- * is a powerful concept. By default, the Webpack bundler is used. Alternatives
1958
- * include Parcel and Rollup.
1957
+ * is a powerful concept. By default, the Webpack v5 bundler is used.
1958
+ * Alternatives include Parcel and Rollup.
1959
1959
  *
1960
1960
  * In case where multiple bundlers are installed the first one is picked. This
1961
1961
  * may not be what you want. In this scenario you can explicitly set the bundler
package/lib/messages.js CHANGED
@@ -2074,8 +2074,8 @@ exports.invalidSchemaVersion_0171 = invalidSchemaVersion_0171;
2074
2074
  *
2075
2075
  * @abstract
2076
2076
  * Piral allows you to set up your own tooling for building and debugging. This
2077
- * is a powerful concept. By default, the Webpack bundler is used. Alternatives
2078
- * include Parcel and Rollup.
2077
+ * is a powerful concept. By default, the Webpack v5 bundler is used.
2078
+ * Alternatives include Parcel and Rollup.
2079
2079
  *
2080
2080
  * In case where multiple bundlers are installed the first one is picked. This
2081
2081
  * may not be what you want. In this scenario you can override the selection by
@@ -2109,8 +2109,8 @@ exports.bundlerMissing_0172 = bundlerMissing_0172;
2109
2109
  *
2110
2110
  * @abstract
2111
2111
  * Piral allows you to set up your own tooling for building and debugging. This
2112
- * is a powerful concept. By default, the Webpack bundler is used. Alternatives
2113
- * include Parcel and Rollup.
2112
+ * is a powerful concept. By default, the Webpack v5 bundler is used.
2113
+ * Alternatives include Parcel and Rollup.
2114
2114
  *
2115
2115
  * In case where no bundler is installed and the default bundler could not be
2116
2116
  * successfully installed this error is shown.
@@ -2172,8 +2172,8 @@ exports.bundlingFailed_0174 = bundlingFailed_0174;
2172
2172
  *
2173
2173
  * @abstract
2174
2174
  * Piral allows you to set up your own tooling for building and debugging. This
2175
- * is a powerful concept. By default, the Webpack bundler is used. Alternatives
2176
- * include Parcel and Rollup.
2175
+ * is a powerful concept. By default, the Webpack v5 bundler is used.
2176
+ * Alternatives include Parcel and Rollup.
2177
2177
  *
2178
2178
  * In case where multiple bundlers are installed the first one is picked. This
2179
2179
  * may not be what you want. In this scenario you can explicitly set the bundler
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "piral-cli",
3
- "version": "0.14.9",
3
+ "version": "0.15.0-alpha.3537",
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": "8c378ca7c8a55c1b1e23e7992c3875aaf311f29d"
80
+ "gitHead": "5da9d7fe4793668e956e96470aef95b41f2805d7"
81
81
  }
@@ -60,13 +60,17 @@ const defaultIndexHtml = `
60
60
  `;
61
61
 
62
62
  const defaultIndexTsx = `
63
- import { renderInstance } from 'piral';
63
+ import * as React from 'react';
64
+ import { render } from 'react-dom';
65
+ import { createInstance, Piral } from 'piral';
64
66
 
65
- renderInstance({
67
+ const instance = createInstance({
66
68
  requestPilets() {
67
69
  return Promise.resolve([]);
68
70
  },
69
71
  });
72
+
73
+ render(<Piral instance={instance} />, document.querySelector('#app'));
70
74
  `;
71
75
 
72
76
  const tsConfigJson = `
@@ -14,11 +14,7 @@ jest.mock('../common/clients/npm', () => {
14
14
  return {
15
15
  ...original,
16
16
  installPackage: (...args) => {
17
- if (args[0].startsWith('@smapiot/')) {
18
- return Promise.resolve();
19
- } else {
20
- return original.installPackage(...args);
21
- }
17
+ return original.installPackage(...args, '--no-package-lock', '--no-save', '--registry=https://registry.npmjs.org/');
22
18
  },
23
19
  };
24
20
  });
@@ -14,11 +14,7 @@ jest.mock('../common/clients/npm', () => {
14
14
  return {
15
15
  ...original,
16
16
  installPackage: (...args) => {
17
- if (args[0].startsWith('@smapiot/')) {
18
- return Promise.resolve();
19
- } else {
20
- return original.installPackage(...args);
21
- }
17
+ return original.installPackage(...args, '--no-package-lock', '--no-save');
22
18
  },
23
19
  };
24
20
  });
package/src/bundler.ts CHANGED
@@ -32,7 +32,7 @@ export interface QualifiedBundler {
32
32
  const bundlers: Array<QualifiedBundler> = [];
33
33
 
34
34
  async function installDefaultBundler(root: string) {
35
- const selectedBundler = config.bundler || 'webpack';
35
+ const selectedBundler = config.bundler || 'webpack5';
36
36
  log('generalDebug_0003', `Installation of default bundler for "${selectedBundler}".`);
37
37
  const selectedPackage = `piral-cli-${selectedBundler}`;
38
38
  log('generalDebug_0003', `Determining npm client at "${root}" ...`);
@@ -71,7 +71,7 @@ export const config: PiralCliConfig = rc('piral', {
71
71
  url: undefined,
72
72
  cert: undefined,
73
73
  npmClient: 'npm',
74
- bundler: 'webpack',
74
+ bundler: 'webpack5',
75
75
  piletApi: '/$pilet-api',
76
76
  validators: {},
77
77
  schemaVersion: 'v2',
package/src/messages.ts CHANGED
@@ -2071,8 +2071,8 @@ export function invalidSchemaVersion_0171(schemaVersion: string, schemas: Array<
2071
2071
  *
2072
2072
  * @abstract
2073
2073
  * Piral allows you to set up your own tooling for building and debugging. This
2074
- * is a powerful concept. By default, the Webpack bundler is used. Alternatives
2075
- * include Parcel and Rollup.
2074
+ * is a powerful concept. By default, the Webpack v5 bundler is used.
2075
+ * Alternatives include Parcel and Rollup.
2076
2076
  *
2077
2077
  * In case where multiple bundlers are installed the first one is picked. This
2078
2078
  * may not be what you want. In this scenario you can override the selection by
@@ -2106,8 +2106,8 @@ export function bundlerMissing_0172(bundlerName: string, installed: Array<string
2106
2106
  *
2107
2107
  * @abstract
2108
2108
  * Piral allows you to set up your own tooling for building and debugging. This
2109
- * is a powerful concept. By default, the Webpack bundler is used. Alternatives
2110
- * include Parcel and Rollup.
2109
+ * is a powerful concept. By default, the Webpack v5 bundler is used.
2110
+ * Alternatives include Parcel and Rollup.
2111
2111
  *
2112
2112
  * In case where no bundler is installed and the default bundler could not be
2113
2113
  * successfully installed this error is shown.
@@ -2169,8 +2169,8 @@ export function bundlingFailed_0174(error: string): QuickMessage {
2169
2169
  *
2170
2170
  * @abstract
2171
2171
  * Piral allows you to set up your own tooling for building and debugging. This
2172
- * is a powerful concept. By default, the Webpack bundler is used. Alternatives
2173
- * include Parcel and Rollup.
2172
+ * is a powerful concept. By default, the Webpack v5 bundler is used.
2173
+ * Alternatives include Parcel and Rollup.
2174
2174
  *
2175
2175
  * In case where multiple bundlers are installed the first one is picked. This
2176
2176
  * may not be what you want. In this scenario you can explicitly set the bundler