@s-ui/bundler 9.13.0 → 9.16.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/bin/sui-bundler-build.js +8 -6
- package/bin/sui-bundler-lib.js +2 -2
- package/package.json +9 -10
package/bin/sui-bundler-build.js
CHANGED
|
@@ -4,14 +4,13 @@
|
|
|
4
4
|
const fs = require('fs')
|
|
5
5
|
const path = require('path')
|
|
6
6
|
const program = require('commander')
|
|
7
|
-
const rimraf = require('rimraf')
|
|
8
7
|
const webpack = require('webpack')
|
|
9
8
|
const {writeFile} = require('@s-ui/helpers/file')
|
|
10
9
|
|
|
11
|
-
const config = require('../webpack.config.prod')
|
|
12
|
-
const linkLoaderConfigBuilder = require('../loaders/linkLoaderConfigBuilder')
|
|
13
|
-
const log = require('../shared/log')
|
|
14
|
-
const {config: projectConfig} = require('../shared')
|
|
10
|
+
const config = require('../webpack.config.prod.js')
|
|
11
|
+
const linkLoaderConfigBuilder = require('../loaders/linkLoaderConfigBuilder.js')
|
|
12
|
+
const log = require('../shared/log.js')
|
|
13
|
+
const {config: projectConfig} = require('../shared/index.js')
|
|
15
14
|
|
|
16
15
|
process.env.NODE_ENV = process.env.NODE_ENV || 'production'
|
|
17
16
|
|
|
@@ -56,7 +55,10 @@ const nextConfig = packagesToLink.length
|
|
|
56
55
|
|
|
57
56
|
if (clean) {
|
|
58
57
|
log.processing('Removing previous build...')
|
|
59
|
-
|
|
58
|
+
fs.rmSync(path.resolve(process.env.PWD, 'public'), {
|
|
59
|
+
force: true,
|
|
60
|
+
recursive: true
|
|
61
|
+
})
|
|
60
62
|
}
|
|
61
63
|
|
|
62
64
|
log.processing('Generating minified bundle...')
|
package/bin/sui-bundler-lib.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* eslint-disable no-console */
|
|
3
3
|
// https://github.com/coryhouse/react-slingshot/blob/master/tools/build.js
|
|
4
4
|
const program = require('commander')
|
|
5
|
-
const rimraf = require('rimraf')
|
|
6
5
|
const webpack = require('webpack')
|
|
7
6
|
const path = require('path')
|
|
7
|
+
const fs = require('fs')
|
|
8
8
|
const {showError, showWarning} = require('@s-ui/helpers/cli')
|
|
9
9
|
const {getPackageJson} = require('@s-ui/helpers/packages')
|
|
10
10
|
const config = require('../webpack.config.lib.js')
|
|
@@ -65,7 +65,7 @@ if (umd) {
|
|
|
65
65
|
|
|
66
66
|
if (clean) {
|
|
67
67
|
log.processing(`Removing previous build in ${output}...`)
|
|
68
|
-
|
|
68
|
+
fs.rmSync(outputFolder, {force: true, recursive: true})
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
log.processing('Generating minified bundle...')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@s-ui/bundler",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.16.0",
|
|
4
4
|
"description": "Config-free bundler for ES6 React apps.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"sui-bundler": "./bin/sui-bundler.js"
|
|
@@ -21,36 +21,35 @@
|
|
|
21
21
|
},
|
|
22
22
|
"homepage": "https://github.com/SUI-Components/sui/tree/master/packages/sui-bundler#readme",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@babel/core": "7.17.
|
|
24
|
+
"@babel/core": "7.17.8",
|
|
25
25
|
"@s-ui/helpers": "1",
|
|
26
26
|
"@s-ui/sass-loader": "1",
|
|
27
27
|
"address": "1.1.2",
|
|
28
|
-
"autoprefixer": "10.4.
|
|
29
|
-
"babel-loader": "8.2.
|
|
28
|
+
"autoprefixer": "10.4.4",
|
|
29
|
+
"babel-loader": "8.2.4",
|
|
30
30
|
"babel-preset-sui": "3",
|
|
31
31
|
"buffer": "6.0.3",
|
|
32
32
|
"commander": "8.3.0",
|
|
33
|
-
"css-loader": "6.7.
|
|
33
|
+
"css-loader": "6.7.1",
|
|
34
34
|
"css-minimizer-webpack-plugin": "3.4.1",
|
|
35
|
-
"esbuild": "0.14.
|
|
35
|
+
"esbuild": "0.14.31",
|
|
36
36
|
"escape-string-regexp": "4.0.0",
|
|
37
37
|
"fast-glob": "3.2.11",
|
|
38
38
|
"find-free-ports": "3.0.0",
|
|
39
39
|
"html-webpack-plugin": "5.5.0",
|
|
40
40
|
"https-browserify": "1.0.0",
|
|
41
41
|
"mini-css-extract-plugin": "2.6.0",
|
|
42
|
-
"postcss": "8.4.
|
|
42
|
+
"postcss": "8.4.12",
|
|
43
43
|
"postcss-loader": "6.2.1",
|
|
44
44
|
"process": "0.11.10",
|
|
45
|
-
"
|
|
46
|
-
"sass": "1.49.9",
|
|
45
|
+
"sass": "1.49.11",
|
|
47
46
|
"stream-http": "3.2.0",
|
|
48
47
|
"strip-ansi": "6.0.1",
|
|
49
48
|
"style-loader": "3.3.1",
|
|
50
49
|
"url": "0.11.0",
|
|
51
50
|
"webpack": "5.70.0",
|
|
52
51
|
"webpack-dev-server": "4.7.4",
|
|
53
|
-
"webpack-manifest-plugin": "
|
|
52
|
+
"webpack-manifest-plugin": "5.0.0",
|
|
54
53
|
"webpack-node-externals": "3.0.0"
|
|
55
54
|
}
|
|
56
55
|
}
|