@enact/cli 5.0.0-rc.1 → 5.0.0
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/CHANGELOG.md +9 -0
- package/commands/pack.js +2 -4
- package/config/dotenv.js +1 -1
- package/npm-shrinkwrap.json +1971 -43297
- package/package.json +46 -46
package/CHANGELOG.md
CHANGED
package/commands/pack.js
CHANGED
|
@@ -19,7 +19,7 @@ const minimist = require('minimist');
|
|
|
19
19
|
const formatWebpackMessages = require('react-dev-utils/formatWebpackMessages');
|
|
20
20
|
const printBuildError = require('react-dev-utils/printBuildError');
|
|
21
21
|
const stripAnsi = require('strip-ansi');
|
|
22
|
-
const
|
|
22
|
+
const webpack = require('webpack');
|
|
23
23
|
const {optionParser: app, mixins, configHelper: helper} = require('@enact/dev-utils');
|
|
24
24
|
|
|
25
25
|
function displayHelp() {
|
|
@@ -147,7 +147,7 @@ function copyPublicFolder(output) {
|
|
|
147
147
|
// Print a detailed summary of build files.
|
|
148
148
|
function printFileSizes(stats, output) {
|
|
149
149
|
const assets = stats
|
|
150
|
-
.toJson({all: false, assets: true})
|
|
150
|
+
.toJson({all: false, assets: true, cachedAssets: true})
|
|
151
151
|
.assets.filter(asset => /\.(js|css|bin)$/.test(asset.name))
|
|
152
152
|
.map(asset => {
|
|
153
153
|
const size = fs.statSync(path.join(output, asset.name)).size;
|
|
@@ -262,8 +262,6 @@ function api(opts = {}) {
|
|
|
262
262
|
// Set any output path override
|
|
263
263
|
if (opts.output) config.output.path = path.resolve(opts.output);
|
|
264
264
|
|
|
265
|
-
if (opts.verbose) opts.ProgressPlugin = ProgressPlugin;
|
|
266
|
-
|
|
267
265
|
mixins.apply(config, opts);
|
|
268
266
|
|
|
269
267
|
// Remove all content but keep the directory so that
|
package/config/dotenv.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const fs = require('fs');
|
|
4
4
|
const path = require('path');
|
|
5
5
|
const dotenv = require('dotenv');
|
|
6
|
-
const expand = require('dotenv-expand');
|
|
6
|
+
const {expand} = require('dotenv-expand');
|
|
7
7
|
|
|
8
8
|
// Loads all required .env files in correct order, for a given mode.
|
|
9
9
|
// See https://github.com/bkeepers/dotenv#what-other-env-files-can-i-use
|