piral-cli-webpack5 1.0.0-pre.1960 → 1.0.1-beta.5640
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/LICENSE +1 -1
- package/README.md +31 -10
- package/extend-config.js +125 -18
- package/lib/actions.d.ts +2 -2
- package/lib/actions.js +33 -39
- package/lib/actions.js.map +1 -1
- package/lib/{configs → enhancers/hmr-webpack-config-enhancer}/HotModuleServerPlugin.js +1 -1
- package/lib/enhancers/hmr-webpack-config-enhancer/HotModuleServerPlugin.js.map +1 -0
- package/lib/enhancers/hmr-webpack-config-enhancer/index.d.ts +5 -0
- package/lib/enhancers/hmr-webpack-config-enhancer/index.js +30 -0
- package/lib/enhancers/hmr-webpack-config-enhancer/index.js.map +1 -0
- package/lib/enhancers/html5-entry-webpack-config-enhancer/helpers.d.ts +2 -2
- package/lib/enhancers/html5-entry-webpack-config-enhancer/helpers.js +1 -1
- package/lib/enhancers/html5-entry-webpack-config-enhancer/helpers.js.map +1 -1
- package/lib/enhancers/html5-entry-webpack-config-enhancer/index.d.ts +2 -1
- package/lib/enhancers/html5-entry-webpack-config-enhancer/index.js +17 -6
- package/lib/enhancers/html5-entry-webpack-config-enhancer/index.js.map +1 -1
- package/lib/enhancers/pilet-webpack-config-enhancer/helpers.d.ts +5 -0
- package/lib/enhancers/pilet-webpack-config-enhancer/helpers.js +53 -1
- package/lib/enhancers/pilet-webpack-config-enhancer/helpers.js.map +1 -1
- package/lib/enhancers/pilet-webpack-config-enhancer/index.d.ts +18 -4
- package/lib/enhancers/pilet-webpack-config-enhancer/index.js +117 -49
- package/lib/enhancers/pilet-webpack-config-enhancer/index.js.map +1 -1
- package/lib/enhancers/piral-instance-webpack-config-enhancer/helpers.js +2 -0
- package/lib/enhancers/piral-instance-webpack-config-enhancer/helpers.js.map +1 -1
- package/lib/enhancers/piral-instance-webpack-config-enhancer/index.d.ts +2 -3
- package/lib/enhancers/piral-instance-webpack-config-enhancer/index.js +6 -7
- package/lib/enhancers/piral-instance-webpack-config-enhancer/index.js.map +1 -1
- package/lib/helpers.d.ts +2 -1
- package/lib/helpers.js +10 -4
- package/lib/helpers.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/plugins/SheetLoader.d.ts +1 -0
- package/lib/plugins/SheetLoader.js +19 -0
- package/lib/plugins/SheetLoader.js.map +1 -0
- package/lib/plugins/SheetPlugin.d.ts +7 -0
- package/lib/plugins/SheetPlugin.js +31 -0
- package/lib/plugins/SheetPlugin.js.map +1 -0
- package/lib/plugins/StylesLoader.d.ts +1 -0
- package/lib/plugins/StylesLoader.js +14 -0
- package/lib/plugins/StylesLoader.js.map +1 -0
- package/lib/plugins/StylesPlugin.d.ts +6 -0
- package/lib/plugins/StylesPlugin.js +34 -0
- package/lib/plugins/StylesPlugin.js.map +1 -0
- package/lib/webpack/bundler-run.d.ts +2 -21
- package/lib/webpack/bundler-run.js +54 -46
- package/lib/webpack/bundler-run.js.map +1 -1
- package/lib/webpack/common.d.ts +8 -0
- package/lib/webpack/common.js +104 -0
- package/lib/webpack/common.js.map +1 -0
- package/lib/webpack/pilet.d.ts +19 -0
- package/lib/webpack/pilet.js +97 -0
- package/lib/webpack/pilet.js.map +1 -0
- package/lib/webpack/piral.d.ts +16 -0
- package/lib/webpack/piral.js +90 -0
- package/lib/webpack/piral.js.map +1 -0
- package/package.json +28 -29
- package/src/actions.ts +33 -20
- package/src/{configs → enhancers/hmr-webpack-config-enhancer}/HotModuleServerPlugin.ts +1 -1
- package/src/enhancers/hmr-webpack-config-enhancer/index.ts +34 -0
- package/src/enhancers/html5-entry-webpack-config-enhancer/helpers.ts +7 -7
- package/src/enhancers/html5-entry-webpack-config-enhancer/index.ts +31 -19
- package/src/enhancers/pilet-webpack-config-enhancer/helpers.ts +62 -0
- package/src/enhancers/pilet-webpack-config-enhancer/index.ts +187 -59
- package/src/enhancers/piral-instance-webpack-config-enhancer/helpers.ts +2 -0
- package/src/enhancers/piral-instance-webpack-config-enhancer/index.ts +14 -18
- package/src/helpers.ts +15 -5
- package/src/index.ts +1 -1
- package/src/plugins/SheetLoader.ts +16 -0
- package/src/plugins/SheetPlugin.ts +34 -0
- package/src/plugins/StylesLoader.ts +11 -0
- package/src/plugins/StylesPlugin.ts +35 -0
- package/src/webpack/bundler-run.ts +60 -56
- package/src/webpack/common.ts +111 -0
- package/src/webpack/pilet.ts +121 -0
- package/src/webpack/piral.ts +110 -0
- package/src/webpack-hot-middleware/LICENSE +20 -0
- package/src/webpack-hot-middleware/client-overlay.js +99 -0
- package/src/webpack-hot-middleware/client.js +306 -0
- package/src/webpack-hot-middleware/helpers.js +9 -0
- package/src/webpack-hot-middleware/middleware.js +175 -0
- package/src/webpack-hot-middleware/process-update.js +157 -0
- package/lib/configs/HotModuleServerPlugin.js.map +0 -1
- package/lib/configs/SheetLoader.d.ts +0 -1
- package/lib/configs/SheetLoader.js +0 -27
- package/lib/configs/SheetLoader.js.map +0 -1
- package/lib/configs/common.d.ts +0 -6
- package/lib/configs/common.js +0 -115
- package/lib/configs/common.js.map +0 -1
- package/lib/configs/index.d.ts +0 -2
- package/lib/configs/index.js +0 -15
- package/lib/configs/index.js.map +0 -1
- package/lib/configs/pilet.d.ts +0 -3
- package/lib/configs/pilet.js +0 -72
- package/lib/configs/pilet.js.map +0 -1
- package/lib/configs/piral.d.ts +0 -2
- package/lib/configs/piral.js +0 -65
- package/lib/configs/piral.js.map +0 -1
- package/lib/webpack/bundler-calls.d.ts +0 -3
- package/lib/webpack/bundler-calls.js +0 -93
- package/lib/webpack/bundler-calls.js.map +0 -1
- package/lib/webpack/index.d.ts +0 -1
- package/lib/webpack/index.js +0 -14
- package/lib/webpack/index.js.map +0 -1
- package/lib/webpack/run-build-pilet.d.ts +0 -1
- package/lib/webpack/run-build-pilet.js +0 -53
- package/lib/webpack/run-build-pilet.js.map +0 -1
- package/lib/webpack/run-build-piral.d.ts +0 -1
- package/lib/webpack/run-build-piral.js +0 -56
- package/lib/webpack/run-build-piral.js.map +0 -1
- package/lib/webpack/run-debug-mono-piral.d.ts +0 -1
- package/lib/webpack/run-debug-mono-piral.js +0 -61
- package/lib/webpack/run-debug-mono-piral.js.map +0 -1
- package/lib/webpack/run-debug-pilet.d.ts +0 -1
- package/lib/webpack/run-debug-pilet.js +0 -77
- package/lib/webpack/run-debug-pilet.js.map +0 -1
- package/lib/webpack/run-debug-piral.d.ts +0 -1
- package/lib/webpack/run-debug-piral.js +0 -76
- package/lib/webpack/run-debug-piral.js.map +0 -1
- package/src/configs/SheetLoader.ts +0 -12
- package/src/configs/common.ts +0 -118
- package/src/configs/index.ts +0 -2
- package/src/configs/pilet.ts +0 -82
- package/src/configs/piral.ts +0 -73
- package/src/webpack/bundler-calls.ts +0 -107
- package/src/webpack/index.ts +0 -1
- package/src/webpack/run-build-pilet.ts +0 -82
- package/src/webpack/run-build-piral.ts +0 -83
- package/src/webpack/run-debug-mono-piral.ts +0 -76
- package/src/webpack/run-debug-pilet.ts +0 -94
- package/src/webpack/run-debug-piral.ts +0 -95
- /package/lib/{configs → enhancers/hmr-webpack-config-enhancer}/HotModuleServerPlugin.d.ts +0 -0
package/lib/configs/common.js
DELETED
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getRules = exports.getPlugins = exports.getHmrEntry = exports.getVariables = exports.extensions = void 0;
|
|
4
|
-
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
|
|
5
|
-
const path_1 = require("path");
|
|
6
|
-
const utils_1 = require("piral-cli/utils");
|
|
7
|
-
const webpack_1 = require("webpack");
|
|
8
|
-
const import_maps_webpack_plugin_1 = require("import-maps-webpack-plugin");
|
|
9
|
-
const HotModuleServerPlugin_1 = require("./HotModuleServerPlugin");
|
|
10
|
-
function getStyleLoaders(production, pilet) {
|
|
11
|
-
if (production && pilet) {
|
|
12
|
-
return [require.resolve('./SheetLoader'), MiniCssExtractPlugin.loader];
|
|
13
|
-
}
|
|
14
|
-
else if (production) {
|
|
15
|
-
return [MiniCssExtractPlugin.loader];
|
|
16
|
-
}
|
|
17
|
-
else {
|
|
18
|
-
return ['style-loader'];
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
exports.extensions = ['.ts', '.tsx', '.js', '.json'];
|
|
22
|
-
function getVariables() {
|
|
23
|
-
return Object.keys(process.env).reduce((prev, curr) => {
|
|
24
|
-
prev[curr] = process.env[curr];
|
|
25
|
-
return prev;
|
|
26
|
-
}, {});
|
|
27
|
-
}
|
|
28
|
-
exports.getVariables = getVariables;
|
|
29
|
-
function getHmrEntry(hmrPort) {
|
|
30
|
-
return hmrPort ? [`webpack-hot-middleware/client?path=http://localhost:${hmrPort}/__webpack_hmr&reload=true`] : [];
|
|
31
|
-
}
|
|
32
|
-
exports.getHmrEntry = getHmrEntry;
|
|
33
|
-
function getPlugins(plugins, showProgress, production, hmrPort) {
|
|
34
|
-
const otherPlugins = [
|
|
35
|
-
new MiniCssExtractPlugin({
|
|
36
|
-
filename: '[name].css',
|
|
37
|
-
chunkFilename: '[id].css',
|
|
38
|
-
}),
|
|
39
|
-
new import_maps_webpack_plugin_1.ImportMapsWebpackPlugin(),
|
|
40
|
-
];
|
|
41
|
-
if (showProgress) {
|
|
42
|
-
otherPlugins.push(new webpack_1.ProgressPlugin((percent, msg) => {
|
|
43
|
-
if (percent !== undefined) {
|
|
44
|
-
utils_1.progress(`${~~(percent * 100)}% : ${msg}`);
|
|
45
|
-
if (percent === 1) {
|
|
46
|
-
utils_1.logReset();
|
|
47
|
-
utils_1.log('generalInfo_0000', 'Bundling finished.');
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}));
|
|
51
|
-
}
|
|
52
|
-
if (hmrPort) {
|
|
53
|
-
otherPlugins.push(new webpack_1.HotModuleReplacementPlugin());
|
|
54
|
-
otherPlugins.push(new HotModuleServerPlugin_1.HotModuleServerPlugin(hmrPort));
|
|
55
|
-
}
|
|
56
|
-
return plugins.concat(otherPlugins);
|
|
57
|
-
}
|
|
58
|
-
exports.getPlugins = getPlugins;
|
|
59
|
-
function getRules(baseDir, production, pilet) {
|
|
60
|
-
const styleLoaders = getStyleLoaders(production, pilet);
|
|
61
|
-
const nodeModules = path_1.resolve(baseDir, 'node_modules');
|
|
62
|
-
const babelLoader = {
|
|
63
|
-
loader: 'babel-loader',
|
|
64
|
-
options: {
|
|
65
|
-
presets: ['@babel/preset-env', '@babel/preset-react'],
|
|
66
|
-
},
|
|
67
|
-
};
|
|
68
|
-
const tsLoader = {
|
|
69
|
-
loader: 'ts-loader',
|
|
70
|
-
options: {
|
|
71
|
-
transpileOnly: true,
|
|
72
|
-
},
|
|
73
|
-
};
|
|
74
|
-
const fileLoader = {
|
|
75
|
-
loader: 'file-loader',
|
|
76
|
-
options: {
|
|
77
|
-
esModule: false,
|
|
78
|
-
},
|
|
79
|
-
};
|
|
80
|
-
return [
|
|
81
|
-
{
|
|
82
|
-
test: /\.(png|jpe?g|gif|bmp|avi|mp4|mp3|svg|ogg|webp|woff2?|eot|ttf|wav)$/i,
|
|
83
|
-
use: [fileLoader],
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
test: /\.s[ac]ss$/i,
|
|
87
|
-
use: [...styleLoaders, 'css-loader', 'sass-loader'],
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
test: /\.css$/i,
|
|
91
|
-
use: [...styleLoaders, 'css-loader'],
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
test: /\.m?jsx?$/i,
|
|
95
|
-
use: [babelLoader],
|
|
96
|
-
exclude: nodeModules,
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
test: /\.tsx?$/i,
|
|
100
|
-
use: [babelLoader, tsLoader],
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
test: /\.codegen$/i,
|
|
104
|
-
use: ['parcel-codegen-loader'],
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
test: /\.js$/i,
|
|
108
|
-
use: ['source-map-loader'],
|
|
109
|
-
exclude: nodeModules,
|
|
110
|
-
enforce: 'pre',
|
|
111
|
-
},
|
|
112
|
-
];
|
|
113
|
-
}
|
|
114
|
-
exports.getRules = getRules;
|
|
115
|
-
//# sourceMappingURL=common.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/configs/common.ts"],"names":[],"mappings":";;;AAAA,gEAAgE;AAChE,+BAA+B;AAC/B,2CAA0D;AAC1D,qCAAmH;AACnH,2EAAqE;AACrE,mEAAgE;AAEhE,SAAS,eAAe,CAAC,UAAmB,EAAE,KAAc;IAC1D,IAAI,UAAU,IAAI,KAAK,EAAE;QACvB,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,CAAC;KACxE;SAAM,IAAI,UAAU,EAAE;QACrB,OAAO,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC;KACtC;SAAM;QACL,OAAO,CAAC,cAAc,CAAC,CAAC;KACzB;AACH,CAAC;AAEY,QAAA,UAAU,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;AAE1D,SAAgB,YAAY;IAC1B,OAAO,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE;QACpD,IAAI,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAC/B,OAAO,IAAI,CAAC;IACd,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC;AALD,oCAKC;AAED,SAAgB,WAAW,CAAC,OAAe;IACzC,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC,uDAAuD,OAAO,4BAA4B,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AACrH,CAAC;AA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,GAAG;QACf,MAAM,EAAE,WAAW;QACnB,OAAO,EAAE;YACP,aAAa,EAAE,IAAI;SACpB;KACF,CAAC;IACF,MAAM,UAAU,GAAG;QACjB,MAAM,EAAE,aAAa;QACrB,OAAO,EAAE;YACP,QAAQ,EAAE,KAAK;SAChB;KACF,CAAC;IAEF,OAAO;QACL;YACE,IAAI,EAAE,qEAAqE;YAC3E,GAAG,EAAE,CAAC,UAAU,CAAC;SAClB;QACD;YACE,IAAI,EAAE,aAAa;YACnB,GAAG,EAAE,CAAC,GAAG,YAAY,EAAE,YAAY,EAAE,aAAa,CAAC;SACpD;QACD;YACE,IAAI,EAAE,SAAS;YACf,GAAG,EAAE,CAAC,GAAG,YAAY,EAAE,YAAY,CAAC;SACrC;QACD;YACE,IAAI,EAAE,YAAY;YAClB,GAAG,EAAE,CAAC,WAAW,CAAC;YAClB,OAAO,EAAE,WAAW;SACrB;QACD;YACE,IAAI,EAAE,UAAU;YAChB,GAAG,EAAE,CAAC,WAAW,EAAE,QAAQ,CAAC;SAC7B;QACD;YACE,IAAI,EAAE,aAAa;YACnB,GAAG,EAAE,CAAC,uBAAuB,CAAC;SAC/B;QACD;YACE,IAAI,EAAE,QAAQ;YACd,GAAG,EAAE,CAAC,mBAAmB,CAAC;YAC1B,OAAO,EAAE,WAAW;YACpB,OAAO,EAAE,KAAK;SACf;KACF,CAAC;AACJ,CAAC;AAvDD,4BAuDC"}
|
package/lib/configs/index.d.ts
DELETED
package/lib/configs/index.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./pilet"), exports);
|
|
14
|
-
__exportStar(require("./piral"), exports);
|
|
15
|
-
//# sourceMappingURL=index.js.map
|
package/lib/configs/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/configs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAwB;AACxB,0CAAwB"}
|
package/lib/configs/pilet.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import * as webpack from 'webpack';
|
|
2
|
-
import { PiletSchemaVersion } from 'piral-cli';
|
|
3
|
-
export declare function getPiletConfig(baseDir: string, template: string, dist: string, filename: string, externals: Array<string>, piral: string, schema: PiletSchemaVersion, develop?: boolean, sourceMaps?: boolean, contentHash?: boolean, minimize?: boolean, publicPath?: string, progress?: boolean): Promise<webpack.Configuration>;
|
package/lib/configs/pilet.js
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.getPiletConfig = void 0;
|
|
13
|
-
const TerserPlugin = require("terser-webpack-plugin");
|
|
14
|
-
const OptimizeCSSAssetsPlugin = require("optimize-css-assets-webpack-plugin");
|
|
15
|
-
const pilet_webpack_config_enhancer_1 = require("../enhancers/pilet-webpack-config-enhancer");
|
|
16
|
-
const path_1 = require("path");
|
|
17
|
-
const common_1 = require("./common");
|
|
18
|
-
function getPiletConfig(baseDir, template, dist, filename, externals, piral, schema, develop = false, sourceMaps = true, contentHash = true, minimize = true, publicPath = '/', progress = false) {
|
|
19
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
20
|
-
const production = !develop;
|
|
21
|
-
const name = process.env.BUILD_PCKG_NAME;
|
|
22
|
-
const version = process.env.BUILD_PCKG_VERSION;
|
|
23
|
-
const enhance = pilet_webpack_config_enhancer_1.piletWebpackConfigEnhancer({
|
|
24
|
-
name,
|
|
25
|
-
piral,
|
|
26
|
-
version,
|
|
27
|
-
externals,
|
|
28
|
-
schema,
|
|
29
|
-
variables: common_1.getVariables(),
|
|
30
|
-
});
|
|
31
|
-
return enhance({
|
|
32
|
-
devtool: sourceMaps ? (develop ? 'cheap-module-source-map' : 'source-map') : false,
|
|
33
|
-
mode: develop ? 'development' : 'production',
|
|
34
|
-
entry: {
|
|
35
|
-
main: [path_1.join(__dirname, '..', 'set-path'), template],
|
|
36
|
-
},
|
|
37
|
-
output: {
|
|
38
|
-
publicPath,
|
|
39
|
-
path: dist,
|
|
40
|
-
filename,
|
|
41
|
-
chunkFilename: contentHash ? '[chunkhash:8].js' : undefined,
|
|
42
|
-
},
|
|
43
|
-
resolve: {
|
|
44
|
-
extensions: common_1.extensions,
|
|
45
|
-
},
|
|
46
|
-
module: {
|
|
47
|
-
rules: common_1.getRules(baseDir, production, true),
|
|
48
|
-
},
|
|
49
|
-
optimization: {
|
|
50
|
-
minimize,
|
|
51
|
-
minimizer: [
|
|
52
|
-
new TerserPlugin({
|
|
53
|
-
extractComments: false,
|
|
54
|
-
terserOptions: {
|
|
55
|
-
ie8: true,
|
|
56
|
-
output: {
|
|
57
|
-
comments: /^@pilet/,
|
|
58
|
-
},
|
|
59
|
-
mangle: {
|
|
60
|
-
reserved: ['__bundleUrl__'],
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
}),
|
|
64
|
-
new OptimizeCSSAssetsPlugin({}),
|
|
65
|
-
],
|
|
66
|
-
},
|
|
67
|
-
plugins: common_1.getPlugins([], progress, production),
|
|
68
|
-
});
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
exports.getPiletConfig = getPiletConfig;
|
|
72
|
-
//# sourceMappingURL=pilet.js.map
|
package/lib/configs/pilet.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pilet.js","sourceRoot":"","sources":["../../src/configs/pilet.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,sDAAsD;AACtD,8EAA8E;AAE9E,8FAAwF;AACxF,+BAA4B;AAC5B,qCAA0E;AAE1E,SAAsB,cAAc,CAClC,OAAe,EACf,QAAgB,EAChB,IAAY,EACZ,QAAgB,EAChB,SAAwB,EACxB,KAAa,EACb,MAA0B,EAC1B,OAAO,GAAG,KAAK,EACf,UAAU,GAAG,IAAI,EACjB,WAAW,GAAG,IAAI,EAClB,QAAQ,GAAG,IAAI,EACf,UAAU,GAAG,GAAG,EAChB,QAAQ,GAAG,KAAK;;QAEhB,MAAM,UAAU,GAAG,CAAC,OAAO,CAAC;QAC5B,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC;QACzC,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC;QAE/C,MAAM,OAAO,GAAG,0DAA0B,CAAC;YACzC,IAAI;YACJ,KAAK;YACL,OAAO;YACP,SAAS;YACT,MAAM;YACN,SAAS,EAAE,qBAAY,EAAE;SAC1B,CAAC,CAAC;QAEH,OAAO,OAAO,CAAC;YACb,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,KAAK;YAElF,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,YAAY;YAE5C,KAAK,EAAE;gBACL,IAAI,EAAE,CAAC,WAAI,CAAC,SAAS,EAAE,IAAI,EAAE,UAAU,CAAC,EAAE,QAAQ,CAAC;aACpD;YAED,MAAM,EAAE;gBACN,UAAU;gBACV,IAAI,EAAE,IAAI;gBACV,QAAQ;gBACR,aAAa,EAAE,WAAW,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS;aAC5D;YAED,OAAO,EAAE;gBACP,UAAU,EAAV,mBAAU;aACX;YAED,MAAM,EAAE;gBACN,KAAK,EAAE,iBAAQ,CAAC,OAAO,EAAE,UAAU,EAAE,IAAI,CAAC;aAC3C;YAED,YAAY,EAAE;gBACZ,QAAQ;gBACR,SAAS,EAAE;oBACT,IAAI,YAAY,CAAC;wBACf,eAAe,EAAE,KAAK;wBACtB,aAAa,EAAE;4BACb,GAAG,EAAE,IAAI;4BACT,MAAM,EAAE;gCACN,QAAQ,EAAE,SAAS;6BACpB;4BACD,MAAM,EAAE;gCACN,QAAQ,EAAE,CAAC,eAAe,CAAC;6BAC5B;yBACF;qBACF,CAAC;oBACF,IAAI,uBAAuB,CAAC,EAAE,CAAC;iBAChC;aACF;YAED,OAAO,EAAE,mBAAU,CAAC,EAAE,EAAE,QAAQ,EAAE,UAAU,CAAC;SAC9C,CAAC,CAAC;IACL,CAAC;CAAA;AAzED,wCAyEC"}
|
package/lib/configs/piral.d.ts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import * as webpack from 'webpack';
|
|
2
|
-
export declare function getPiralConfig(baseDir: string, template: string, dist: string, externals: Array<string>, develop?: boolean, sourceMaps?: boolean, contentHash?: boolean, minimize?: boolean, publicPath?: string, hmr?: number, progress?: boolean): Promise<webpack.Configuration>;
|
package/lib/configs/piral.js
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.getPiralConfig = void 0;
|
|
13
|
-
const TerserPlugin = require("terser-webpack-plugin");
|
|
14
|
-
const OptimizeCSSAssetsPlugin = require("optimize-css-assets-webpack-plugin");
|
|
15
|
-
const html5_entry_webpack_config_enhancer_1 = require("../enhancers/html5-entry-webpack-config-enhancer");
|
|
16
|
-
const piral_instance_webpack_config_enhancer_1 = require("../enhancers/piral-instance-webpack-config-enhancer");
|
|
17
|
-
const common_1 = require("./common");
|
|
18
|
-
function getPiralConfig(baseDir, template, dist, externals, develop = false, sourceMaps = true, contentHash = true, minimize = true, publicPath = '/', hmr = 0, progress = false) {
|
|
19
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
20
|
-
const production = !develop;
|
|
21
|
-
const name = process.env.BUILD_PCKG_NAME;
|
|
22
|
-
const version = process.env.BUILD_PCKG_VERSION;
|
|
23
|
-
const enhance = (options) => [
|
|
24
|
-
html5_entry_webpack_config_enhancer_1.html5EntryWebpackConfigEnhancer({}),
|
|
25
|
-
piral_instance_webpack_config_enhancer_1.piralInstanceWebpackConfigEnhancer({
|
|
26
|
-
name,
|
|
27
|
-
version,
|
|
28
|
-
externals,
|
|
29
|
-
variables: common_1.getVariables(),
|
|
30
|
-
}),
|
|
31
|
-
].reduceRight((acc, val) => val(acc), options);
|
|
32
|
-
return enhance({
|
|
33
|
-
devtool: sourceMaps ? (develop ? 'cheap-module-source-map' : 'source-map') : false,
|
|
34
|
-
mode: develop ? 'development' : 'production',
|
|
35
|
-
entry: [...common_1.getHmrEntry(hmr), template],
|
|
36
|
-
output: {
|
|
37
|
-
publicPath,
|
|
38
|
-
path: dist,
|
|
39
|
-
filename: `index.${contentHash ? '[contenthash].' : ''}js`,
|
|
40
|
-
chunkFilename: contentHash ? '[chunkhash:8].js' : undefined,
|
|
41
|
-
},
|
|
42
|
-
resolve: {
|
|
43
|
-
extensions: common_1.extensions,
|
|
44
|
-
},
|
|
45
|
-
module: {
|
|
46
|
-
rules: common_1.getRules(baseDir, production, false),
|
|
47
|
-
},
|
|
48
|
-
optimization: {
|
|
49
|
-
minimize,
|
|
50
|
-
minimizer: [
|
|
51
|
-
new TerserPlugin({
|
|
52
|
-
extractComments: false,
|
|
53
|
-
terserOptions: {
|
|
54
|
-
ie8: true,
|
|
55
|
-
},
|
|
56
|
-
}),
|
|
57
|
-
new OptimizeCSSAssetsPlugin({}),
|
|
58
|
-
],
|
|
59
|
-
},
|
|
60
|
-
plugins: common_1.getPlugins([], progress, production, hmr),
|
|
61
|
-
});
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
exports.getPiralConfig = getPiralConfig;
|
|
65
|
-
//# sourceMappingURL=piral.js.map
|
package/lib/configs/piral.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"piral.js","sourceRoot":"","sources":["../../src/configs/piral.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,sDAAsD;AACtD,8EAA8E;AAC9E,0GAAmG;AACnG,gHAAyG;AACzG,qCAAuF;AAEvF,SAAsB,cAAc,CAClC,OAAe,EACf,QAAgB,EAChB,I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U;aACX;YAED,MAAM,EAAE;gBACN,KAAK,EAAE,iBAAQ,CAAC,OAAO,EAAE,UAAU,EAAE,KAAK,CAAC;aAC5C;YAED,YAAY,EAAE;gBACZ,QAAQ;gBACR,SAAS,EAAE;oBACT,IAAI,YAAY,CAAC;wBACf,eAAe,EAAE,KAAK;wBACtB,aAAa,EAAE;4BACb,GAAG,EAAE,IAAI;yBACV;qBACF,CAAC;oBACF,IAAI,uBAAuB,CAAC,EAAE,CAAC;iBAChC;aACF;YAED,OAAO,EAAE,mBAAU,CAAC,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,CAAC;SACnD,CAAC,CAAC;IACL,CAAC;CAAA;AAjED,wCAiEC"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { Bundler, BaseBundleParameters } from 'piral-cli';
|
|
2
|
-
export declare function callDynamic<T extends BaseBundleParameters>(name: string, args: T): Promise<Bundler>;
|
|
3
|
-
export declare function callStatic<T extends BaseBundleParameters>(name: string, args: T): Promise<Bundler>;
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.callStatic = exports.callDynamic = void 0;
|
|
4
|
-
const path_1 = require("path");
|
|
5
|
-
const child_process_1 = require("child_process");
|
|
6
|
-
function getPath(name) {
|
|
7
|
-
return path_1.resolve(__dirname, '..', '..', 'lib', 'webpack', `run-${name}.js`);
|
|
8
|
-
}
|
|
9
|
-
function createBundler(cwd, ps, args) {
|
|
10
|
-
let promise = Promise.resolve();
|
|
11
|
-
const listeners = [];
|
|
12
|
-
const bundle = {
|
|
13
|
-
dir: cwd,
|
|
14
|
-
hash: '',
|
|
15
|
-
name: '',
|
|
16
|
-
};
|
|
17
|
-
const setPending = () => {
|
|
18
|
-
promise = new Promise((done) => {
|
|
19
|
-
const f = () => {
|
|
20
|
-
done();
|
|
21
|
-
bundler.off(f);
|
|
22
|
-
};
|
|
23
|
-
bundler.on(f);
|
|
24
|
-
});
|
|
25
|
-
};
|
|
26
|
-
const bundler = {
|
|
27
|
-
bundle,
|
|
28
|
-
start() {
|
|
29
|
-
ps.send(Object.assign({ type: 'bundle' }, args));
|
|
30
|
-
},
|
|
31
|
-
on(cb) {
|
|
32
|
-
listeners.push(cb);
|
|
33
|
-
},
|
|
34
|
-
off(cb) {
|
|
35
|
-
listeners.splice(listeners.indexOf(cb), 1);
|
|
36
|
-
},
|
|
37
|
-
emit(args) {
|
|
38
|
-
[...listeners].forEach((cb) => cb(args));
|
|
39
|
-
},
|
|
40
|
-
ready() {
|
|
41
|
-
return promise;
|
|
42
|
-
},
|
|
43
|
-
setPending,
|
|
44
|
-
};
|
|
45
|
-
setPending();
|
|
46
|
-
return bundler;
|
|
47
|
-
}
|
|
48
|
-
function callDynamic(name, args) {
|
|
49
|
-
const cwd = args.root;
|
|
50
|
-
return new Promise((resolve, reject) => {
|
|
51
|
-
const ps = child_process_1.fork(getPath(name), [], { cwd });
|
|
52
|
-
const bundler = createBundler(cwd, ps, args);
|
|
53
|
-
ps.on('message', (msg) => {
|
|
54
|
-
switch (msg.type) {
|
|
55
|
-
case 'pending':
|
|
56
|
-
bundler.setPending();
|
|
57
|
-
break;
|
|
58
|
-
case 'update':
|
|
59
|
-
bundler.bundle.hash = msg.outHash;
|
|
60
|
-
bundler.bundle.name = msg.outName;
|
|
61
|
-
bundler.emit(msg.args);
|
|
62
|
-
break;
|
|
63
|
-
case 'done':
|
|
64
|
-
bundler.bundle.dir = msg.outDir;
|
|
65
|
-
return resolve(bundler);
|
|
66
|
-
case 'fail':
|
|
67
|
-
return reject(msg.error);
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
ps.send(Object.assign({ type: 'start' }, args));
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
exports.callDynamic = callDynamic;
|
|
74
|
-
function callStatic(name, args) {
|
|
75
|
-
const cwd = args.root;
|
|
76
|
-
return new Promise((resolve, reject) => {
|
|
77
|
-
const ps = child_process_1.fork(getPath(name), [], { cwd });
|
|
78
|
-
const bundler = createBundler(cwd, ps, args);
|
|
79
|
-
ps.on('message', (msg) => {
|
|
80
|
-
switch (msg.type) {
|
|
81
|
-
case 'done':
|
|
82
|
-
bundler.bundle.dir = msg.outDir;
|
|
83
|
-
bundler.bundle.name = msg.outFile;
|
|
84
|
-
return resolve(bundler);
|
|
85
|
-
case 'fail':
|
|
86
|
-
return reject(msg.error);
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
ps.send(Object.assign({ type: 'start' }, args));
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
exports.callStatic = callStatic;
|
|
93
|
-
//# sourceMappingURL=bundler-calls.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bundler-calls.js","sourceRoot":"","sources":["../../src/webpack/bundler-calls.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,iDAAmD;AAGnD,SAAS,OAAO,CAAC,IAAY;IAC3B,OAAO,cAAO,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,IAAI,KAAK,CAAC,CAAC;AAC5E,CAAC;AAID,SAAS,aAAa,CAAC,GAAW,EAAE,EAAgB,EAAE,IAAS;IAC7D,IAAI,OAAO,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAChC,MAAM,SAAS,GAA0B,EAAE,CAAC;IAC5C,MAAM,MAAM,GAAkB;QAC5B,GAAG,EAAE,GAAG;QACR,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,EAAE;KACT,CAAC;IACF,MAAM,UAAU,GAAG,GAAG,EAAE;QACtB,OAAO,GAAG,IAAI,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;YAC7B,MAAM,CAAC,GAAG,GAAG,EAAE;gBACb,IAAI,EAAE,CAAC;gBACP,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;YACjB,CAAC,CAAC;Y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KAAK,MAAM;oBACT,OAAO,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;aAC5B;QACH,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,IAAI,iBACL,IAAI,EAAE,OAAO,IACV,IAAI,EACP,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC;AAtBD,gCAsBC"}
|
package/lib/webpack/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './bundler-calls';
|
package/lib/webpack/index.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./bundler-calls"), exports);
|
|
14
|
-
//# sourceMappingURL=index.js.map
|
package/lib/webpack/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/webpack/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAgC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const utils_1 = require("piral-cli/utils");
|
|
13
|
-
const path_1 = require("path");
|
|
14
|
-
const bundler_run_1 = require("./bundler-run");
|
|
15
|
-
const configs_1 = require("../configs");
|
|
16
|
-
const helpers_1 = require("../helpers");
|
|
17
|
-
const constants_1 = require("../constants");
|
|
18
|
-
function run(root, piral, sourceMaps, contentHash, minify, externals, outDir, outFile, entryModule, version, logLevel) {
|
|
19
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
20
|
-
utils_1.setStandardEnvs({
|
|
21
|
-
production: true,
|
|
22
|
-
piral,
|
|
23
|
-
root,
|
|
24
|
-
});
|
|
25
|
-
const otherConfigPath = path_1.resolve(root, constants_1.defaultWebpackConfig);
|
|
26
|
-
const baseConfig = yield configs_1.getPiletConfig(root, entryModule, outDir, outFile, externals, piral, version, false, sourceMaps, contentHash, minify);
|
|
27
|
-
const wpConfig = helpers_1.extendConfig(baseConfig, otherConfigPath, {
|
|
28
|
-
watch: false,
|
|
29
|
-
});
|
|
30
|
-
const bundler = bundler_run_1.runWebpack(wpConfig, logLevel);
|
|
31
|
-
return yield bundler.bundle();
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
process.on('message', (msg) => __awaiter(void 0, void 0, void 0, function* () {
|
|
35
|
-
switch (msg.type) {
|
|
36
|
-
case 'start':
|
|
37
|
-
const result = yield run(process.cwd(), msg.piral, msg.sourceMaps, msg.contentHash, msg.minify, msg.externals, msg.outDir, msg.outFile, msg.entryModule, msg.version, msg.logLevel).catch((error) => {
|
|
38
|
-
process.send({
|
|
39
|
-
type: 'fail',
|
|
40
|
-
error: error === null || error === void 0 ? void 0 : error.message,
|
|
41
|
-
});
|
|
42
|
-
});
|
|
43
|
-
if (result) {
|
|
44
|
-
process.send({
|
|
45
|
-
type: 'done',
|
|
46
|
-
outDir: result.outDir,
|
|
47
|
-
outFile: result.outFile,
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
break;
|
|
51
|
-
}
|
|
52
|
-
}));
|
|
53
|
-
//# sourceMappingURL=run-build-pilet.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"run-build-pilet.js","sourceRoot":"","sources":["../../src/webpack/run-build-pilet.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,2CAAkD;AAClD,+BAA+B;AAC/B,+CAA2C;AAC3C,wCAA4C;AAC5C,wCAA0C;AAC1C,4CAAoD;AAEpD,SAAe,GAAG,CAChB,IAAY,EACZ,KAAa,EACb,UAAmB,EACnB,WAAoB,EACpB,MAAe,EACf,SAAwB,EACxB,MAAc,EACd,OAAe,EACf,WAAmB,EACnB,OAA2B,EAC3B,QAAmB;;QAEnB,uBAAe,CAAC;YACd,UAAU,EAAE,IAAI;YAChB,KAAK;YACL,IAAI;SACL,CAAC,CAAC;QAEH,MAAM,eAAe,GAAG,cAAO,CAAC,IAAI,EAAE,gCAAoB,CAAC,CAAC;QAC5D,MAAM,UAAU,GAAG,MAAM,wBAAc,CACrC,IAAI,EACJ,WAAW,EACX,MAAM,EACN,OAAO,EACP,SAAS,EACT,KAAK,EACL,OAAO,EACP,KAAK,EACL,UAAU,EACV,WAAW,EACX,MAAM,CACP,CAAC;QACF,MAAM,QAAQ,GAAG,sBAAY,CAAC,UAAU,EAAE,eAAe,EAAE;YACzD,KAAK,EAAE,KAAK;SACb,CAAC,CAAC;QAEH,MAAM,OAAO,GAAG,wBAAU,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;QAC/C,OAAO,MAAM,OAAO,CAAC,MAAM,EAAE,CAAC;IAChC,CAAC;CAAA;AAED,OAAO,CAAC,EAAE,CAAC,SAAS,EAAE,CAAO,GAAG,EAAE,EAAE;IAClC,QAAQ,GAAG,CAAC,IAAI,EAAE;QAChB,KAAK,OAAO;YACV,MAAM,MAAM,GAAG,MAAM,GAAG,CACtB,OAAO,CAAC,GAAG,EAAE,EACb,GAAG,CAAC,KAAK,EACT,GAAG,CAAC,UAAU,EACd,GAAG,CAAC,WAAW,EACf,GAAG,CAAC,MAAM,EACV,GAAG,CAAC,SAAS,EACb,GAAG,CAAC,MAAM,EACV,GAAG,CAAC,OAAO,EACX,GAAG,CAAC,WAAW,EACf,GAAG,CAAC,OAAO,EACX,GAAG,CAAC,QAAQ,CACb,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;gBAChB,OAAO,CAAC,IAAI,CAAC;oBACX,IAAI,EAAE,MAAM;oBACZ,KAAK,EAAE,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,OAAO;iBACtB,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;YAEH,IAAI,MAAM,EAAE;gBACV,OAAO,CAAC,IAAI,CAAC;oBACX,IAAI,EAAE,MAAM;oBACZ,MAAM,EAAE,MAAM,CAAC,MAAM;oBACrB,OAAO,EAAE,MAAM,CAAC,OAAO;iBACxB,CAAC,CAAC;aACJ;YAED,MAAM;KACT;AACH,CAAC,CAAA,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const utils_1 = require("piral-cli/utils");
|
|
13
|
-
const path_1 = require("path");
|
|
14
|
-
const bundler_run_1 = require("./bundler-run");
|
|
15
|
-
const configs_1 = require("../configs");
|
|
16
|
-
const helpers_1 = require("../helpers");
|
|
17
|
-
const constants_1 = require("../constants");
|
|
18
|
-
function run(root, piral, emulator, sourceMaps, contentHash, minify, externals, publicUrl, outDir, entryFiles, logLevel) {
|
|
19
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
20
|
-
utils_1.setStandardEnvs({
|
|
21
|
-
production: !emulator,
|
|
22
|
-
root,
|
|
23
|
-
debugPiral: emulator,
|
|
24
|
-
debugPilet: emulator,
|
|
25
|
-
piral,
|
|
26
|
-
dependencies: externals,
|
|
27
|
-
});
|
|
28
|
-
const otherConfigPath = path_1.resolve(root, constants_1.defaultWebpackConfig);
|
|
29
|
-
const baseConfig = yield configs_1.getPiralConfig(root, entryFiles, outDir, externals, emulator, sourceMaps, contentHash, minify, publicUrl);
|
|
30
|
-
const wpConfig = helpers_1.extendConfig(baseConfig, otherConfigPath, {
|
|
31
|
-
watch: false,
|
|
32
|
-
});
|
|
33
|
-
const bundler = bundler_run_1.runWebpack(wpConfig, logLevel);
|
|
34
|
-
return bundler.bundle();
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
process.on('message', (msg) => __awaiter(void 0, void 0, void 0, function* () {
|
|
38
|
-
switch (msg.type) {
|
|
39
|
-
case 'start':
|
|
40
|
-
const result = yield run(process.cwd(), msg.piral, msg.emulator, msg.sourceMaps, msg.contentHash, msg.minify, msg.externals, msg.publicUrl, msg.outDir, msg.entryFiles, msg.logLevel).catch((error) => {
|
|
41
|
-
process.send({
|
|
42
|
-
type: 'fail',
|
|
43
|
-
error: error === null || error === void 0 ? void 0 : error.message,
|
|
44
|
-
});
|
|
45
|
-
});
|
|
46
|
-
if (result) {
|
|
47
|
-
process.send({
|
|
48
|
-
type: 'done',
|
|
49
|
-
outDir: result.outDir,
|
|
50
|
-
outFile: result.outFile,
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
break;
|
|
54
|
-
}
|
|
55
|
-
}));
|
|
56
|
-
//# sourceMappingURL=run-build-piral.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"run-build-piral.js","sourceRoot":"","sources":["../../src/webpack/run-build-piral.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,2CAAkD;AAClD,+BAA+B;AAC/B,+CAA2C;AAC3C,wCAA4C;AAC5C,wCAA0C;AAC1C,4CAAoD;AAEpD,SAAe,GAAG,CAChB,IAAY,EACZ,KAAa,EACb,QAAiB,EACjB,UAAmB,EACnB,WAAoB,EACpB,MAAe,EACf,SAAwB,EACxB,SAAiB,EACjB,MAAc,EACd,UAAkB,EAClB,QAAmB;;QAEnB,uBAAe,CAAC;YACd,UAAU,EAAE,CAAC,QAAQ;YACrB,IAAI;YACJ,UAAU,EAAE,QAAQ;YACpB,UAAU,EAAE,QAAQ;YACpB,KAAK;YACL,YAAY,EAAE,SAAS;SACxB,CAAC,CAAC;QAEH,MAAM,eAAe,GAAG,cAAO,CAAC,IAAI,EAAE,gCAAoB,CAAC,CAAC;QAC5D,MAAM,UAAU,GAAG,MAAM,wBAAc,CACrC,IAAI,EACJ,UAAU,EACV,MAAM,EACN,SAAS,EACT,QAAQ,EACR,UAAU,EACV,WAAW,EACX,MAAM,EACN,SAAS,CACV,CAAC;QACF,MAAM,QAAQ,GAAG,sBAAY,CAAC,UAAU,EAAE,eAAe,EAAE;YACzD,KAAK,EAAE,KAAK;SACb,CAAC,CAAC;QAEH,MAAM,OAAO,GAAG,wBAAU,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;QAC/C,OAAO,OAAO,CAAC,MAAM,EAAE,CAAC;IAC1B,CAAC;CAAA;AAED,OAAO,CAAC,EAAE,CAAC,SAAS,EAAE,CAAO,GAAG,EAAE,EAAE;IAClC,QAAQ,GAAG,CAAC,IAAI,EAAE;QAChB,KAAK,OAAO;YACV,MAAM,MAAM,GAAG,MAAM,GAAG,CACtB,OAAO,CAAC,GAAG,EAAE,EACb,GAAG,CAAC,KAAK,EACT,GAAG,CAAC,QAAQ,EACZ,GAAG,CAAC,UAAU,EACd,GAAG,CAAC,WAAW,EACf,GAAG,CAAC,MAAM,EACV,GAAG,CAAC,SAAS,EACb,GAAG,CAAC,SAAS,EACb,GAAG,CAAC,MAAM,EACV,GAAG,CAAC,UAAU,EACd,GAAG,CAAC,QAAQ,CACb,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;gBAChB,OAAO,CAAC,IAAI,CAAC;oBACX,IAAI,EAAE,MAAM;oBACZ,KAAK,EAAE,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,OAAO;iBACtB,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;YAEH,IAAI,MAAM,EAAE;gBACV,OAAO,CAAC,IAAI,CAAC;oBACX,IAAI,EAAE,MAAM;oBACZ,MAAM,EAAE,MAAM,CAAC,MAAM;oBACrB,OAAO,EAAE,MAAM,CAAC,OAAO;iBACxB,CAAC,CAAC;aACJ;YAED,MAAM;KACT;AACH,CAAC,CAAA,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const utils_1 = require("piral-cli/utils");
|
|
13
|
-
const path_1 = require("path");
|
|
14
|
-
const bundler_run_1 = require("./bundler-run");
|
|
15
|
-
const helpers_1 = require("../helpers");
|
|
16
|
-
const configs_1 = require("../configs");
|
|
17
|
-
const constants_1 = require("../constants");
|
|
18
|
-
function run(root, piral, hmr, externals, entryFiles, logLevel) {
|
|
19
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
20
|
-
utils_1.progress(`Preparing supplied Piral instance ...`);
|
|
21
|
-
const outDir = path_1.resolve(root, 'dist', 'app');
|
|
22
|
-
utils_1.setStandardEnvs({
|
|
23
|
-
piral,
|
|
24
|
-
dependencies: externals,
|
|
25
|
-
production: true,
|
|
26
|
-
debugPiral: true,
|
|
27
|
-
debugPilet: true,
|
|
28
|
-
root,
|
|
29
|
-
});
|
|
30
|
-
const otherConfigPath = path_1.resolve(root, constants_1.defaultWebpackConfig);
|
|
31
|
-
const hmrPort = hmr ? yield utils_1.getFreePort(62123) : 0;
|
|
32
|
-
const baseConfig = yield configs_1.getPiralConfig(root, entryFiles, outDir, externals, true, true, false, false, undefined, hmrPort);
|
|
33
|
-
const wpConfig = helpers_1.extendConfig(baseConfig, otherConfigPath, {
|
|
34
|
-
watch: true,
|
|
35
|
-
});
|
|
36
|
-
const bundler = bundler_run_1.runWebpack(wpConfig, logLevel);
|
|
37
|
-
const bundle = yield bundler.bundle();
|
|
38
|
-
utils_1.logReset();
|
|
39
|
-
return bundle;
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
process.on('message', (msg) => __awaiter(void 0, void 0, void 0, function* () {
|
|
43
|
-
switch (msg.type) {
|
|
44
|
-
case 'start':
|
|
45
|
-
const result = yield run(process.cwd(), msg.piral, true, msg.externals, msg.entryFiles, msg.logLevel).catch((error) => {
|
|
46
|
-
process.send({
|
|
47
|
-
type: 'fail',
|
|
48
|
-
error: error === null || error === void 0 ? void 0 : error.message,
|
|
49
|
-
});
|
|
50
|
-
});
|
|
51
|
-
if (result) {
|
|
52
|
-
process.send({
|
|
53
|
-
type: 'done',
|
|
54
|
-
outDir: result.outDir,
|
|
55
|
-
outFile: result.outFile,
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
break;
|
|
59
|
-
}
|
|
60
|
-
}));
|
|
61
|
-
//# sourceMappingURL=run-debug-mono-piral.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"run-debug-mono-piral.js","sourceRoot":"","sources":["../../src/webpack/run-debug-mono-piral.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,2CAAmF;AACnF,+BAA+B;AAC/B,+CAA2C;AAC3C,wCAA0C;AAC1C,wCAA4C;AAC5C,4CAAoD;AAEpD,SAAe,GAAG,CAChB,IAAY,EACZ,KAAa,EACb,GAAY,EACZ,SAAwB,EACxB,UAAkB,EAClB,QAAmB;;QAEnB,gBAAQ,CAAC,uCAAuC,CAAC,CAAC;QAElD,MAAM,MAAM,GAAG,cAAO,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;QAE5C,uBAAe,CAAC;YACd,KAAK;YACL,YAAY,EAAE,SAAS;YACvB,UAAU,EAAE,IAAI;YAChB,UAAU,EAAE,IAAI;YAChB,UAAU,EAAE,IAAI;YAChB,IAAI;SACL,CAAC,CAAC;QAEH,MAAM,eAAe,GAAG,cAAO,CAAC,IAAI,EAAE,gCAAoB,CAAC,CAAC;QAC5D,MAAM,OAAO,GAAG,GAAG,CAAC,CAAC,CAAC,MAAM,mBAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CA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