piral-cli 0.15.0-alpha.3592 → 0.15.0-alpha.3640
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/apps/debug-pilet.js +1 -0
- package/lib/apps/debug-pilet.js.map +1 -1
- package/lib/apps/debug-piral.js +1 -0
- package/lib/apps/debug-piral.js.map +1 -1
- package/lib/external/index.js +26215 -24856
- package/lib/helpers.js +11 -1
- package/lib/helpers.js.map +1 -1
- package/package.json +2 -2
- package/src/apps/build-piral.test.ts +2 -2
- package/src/apps/debug-pilet.ts +3 -0
- package/src/apps/debug-piral.ts +3 -0
- package/src/common/package.test.ts +2 -2
- package/src/helpers.ts +11 -1
package/lib/helpers.js
CHANGED
|
@@ -7,7 +7,17 @@ exports.fromKeys = ['local', 'remote', 'npm'];
|
|
|
7
7
|
exports.piralBuildTypeKeys = ['all', 'release', 'emulator', 'emulator-sources'];
|
|
8
8
|
exports.piletBuildTypeKeys = ['default', 'standalone', 'manifest'];
|
|
9
9
|
exports.clientTypeKeys = ['npm', 'pnpm', 'yarn'];
|
|
10
|
-
exports.bundlerKeys = [
|
|
10
|
+
exports.bundlerKeys = [
|
|
11
|
+
'none',
|
|
12
|
+
'esbuild',
|
|
13
|
+
'parcel',
|
|
14
|
+
'parcel2',
|
|
15
|
+
'rollup',
|
|
16
|
+
'webpack',
|
|
17
|
+
'webpack5',
|
|
18
|
+
'vite',
|
|
19
|
+
'xbuild',
|
|
20
|
+
];
|
|
11
21
|
exports.availableBundlers = [];
|
|
12
22
|
exports.availableReleaseProviders = [];
|
|
13
23
|
exports.frameworkKeys = ['piral', 'piral-core', 'piral-base'];
|
package/lib/helpers.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../src/helpers.ts"],"names":[],"mappings":";;;AAAA,0CAAgE;AAUnD,QAAA,UAAU,GAA8B,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,E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
|
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.3640",
|
|
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": "29ee91f865f9ee42229e58a7804cba6ab5e9145b"
|
|
81
81
|
}
|
|
@@ -121,8 +121,8 @@ function scaffoldNewPiralInstance(files: Array<any> = []) {
|
|
|
121
121
|
describe('Build Piral Command', () => {
|
|
122
122
|
beforeEach(() => {
|
|
123
123
|
setBundler({
|
|
124
|
-
name: '
|
|
125
|
-
actions: require(resolve(__dirname, '../../../piral-cli-
|
|
124
|
+
name: 'webpack5',
|
|
125
|
+
actions: require(resolve(__dirname, '../../../piral-cli-webpack5/lib/actions')),
|
|
126
126
|
});
|
|
127
127
|
});
|
|
128
128
|
|
package/src/apps/debug-pilet.ts
CHANGED
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
matchAnyPilet,
|
|
16
16
|
fail,
|
|
17
17
|
log,
|
|
18
|
+
logDone,
|
|
18
19
|
} from '../common';
|
|
19
20
|
|
|
20
21
|
export interface DebugPiletOptions {
|
|
@@ -255,6 +256,8 @@ export async function debugPilet(baseDir = process.cwd(), options: DebugPiletOpt
|
|
|
255
256
|
const appDir = appInstanceDir || (await getOrMakeAppDir(pilets[0], logLevel));
|
|
256
257
|
await hooks.afterApp?.({ appInstanceDir, pilets });
|
|
257
258
|
|
|
259
|
+
Promise.all(pilets.map((p) => p.bundler.ready())).then(() => logDone(`Ready!`));
|
|
260
|
+
|
|
258
261
|
if (krasConfig.ssl === undefined) {
|
|
259
262
|
krasConfig.ssl = undefined;
|
|
260
263
|
}
|
package/src/apps/debug-piral.ts
CHANGED
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
log,
|
|
15
15
|
config,
|
|
16
16
|
normalizePublicUrl,
|
|
17
|
+
logDone,
|
|
17
18
|
} from '../common';
|
|
18
19
|
|
|
19
20
|
export interface DebugPiralOptions {
|
|
@@ -151,6 +152,8 @@ export async function debugPiral(baseDir = process.cwd(), options: DebugPiralOpt
|
|
|
151
152
|
bundlerName,
|
|
152
153
|
);
|
|
153
154
|
|
|
155
|
+
bundler.ready().then(() => logDone(`Ready!`));
|
|
156
|
+
|
|
154
157
|
bundler.on((args) => {
|
|
155
158
|
hooks.afterBuild?.({ ...args, root, publicUrl, externals, entryFiles, name, bundler });
|
|
156
159
|
});
|
|
@@ -16,8 +16,8 @@ describe('CLI package module', () => {
|
|
|
16
16
|
|
|
17
17
|
it('findPackageRoot correctly resolves the package root of parcel-bundler', () => {
|
|
18
18
|
const dir = process.cwd();
|
|
19
|
-
const version = findPackageRoot('
|
|
20
|
-
expect(version).toBe(resolve(dir, 'node_modules', '
|
|
19
|
+
const version = findPackageRoot('webpack', dir);
|
|
20
|
+
expect(version).toBe(resolve(dir, 'node_modules', 'webpack', 'package.json'));
|
|
21
21
|
});
|
|
22
22
|
|
|
23
23
|
it('findPackageRoot returns undefined for invalid package', () => {
|
package/src/helpers.ts
CHANGED
|
@@ -13,7 +13,17 @@ 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> = [
|
|
16
|
+
export const bundlerKeys: Array<string> = [
|
|
17
|
+
'none',
|
|
18
|
+
'esbuild',
|
|
19
|
+
'parcel',
|
|
20
|
+
'parcel2',
|
|
21
|
+
'rollup',
|
|
22
|
+
'webpack',
|
|
23
|
+
'webpack5',
|
|
24
|
+
'vite',
|
|
25
|
+
'xbuild',
|
|
26
|
+
];
|
|
17
27
|
export const availableBundlers: Array<string> = [];
|
|
18
28
|
export const availableReleaseProviders: Array<string> = [];
|
|
19
29
|
export const frameworkKeys: Array<Framework> = ['piral', 'piral-core', 'piral-base'];
|