balm-core 4.5.5 → 4.6.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/README.md +3 -1
- package/index.d.ts +0 -2
- package/lib/bootstrap/check_config.js +1 -0
- package/lib/config/scripts.js +0 -2
- package/lib/plugins/sass.js +2 -2
- package/package.json +16 -16
- package/tslib/bootstrap/check_config.js +1 -0
- package/tslib/config/scripts.js +0 -2
package/README.md
CHANGED
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
<p>An universal Front-End workflow for webapps</p>
|
|
14
14
|
</div>
|
|
15
15
|
|
|
16
|
+
> [`balm-core@3`](https://github.com/balmjs/balm/tree/master)(v3) supports for `node@10.13.0+`, `postcss@7`, `webpack@4`
|
|
17
|
+
|
|
16
18
|
## Introduction
|
|
17
19
|
|
|
18
20
|
BalmJS prescribes best practices and tools to help you stay productive.
|
|
@@ -91,7 +93,7 @@ yarn add -D balm@next
|
|
|
91
93
|
OR
|
|
92
94
|
|
|
93
95
|
```sh
|
|
94
|
-
npm install -g balm-core@next
|
|
96
|
+
npm install -g balm-core@next # Not supported for now (npm bug)
|
|
95
97
|
npm install -D balm@next
|
|
96
98
|
```
|
|
97
99
|
|
package/index.d.ts
CHANGED
|
@@ -65,7 +65,6 @@ export type InputOptions = import('rollup').InputOptions;
|
|
|
65
65
|
export type OutputOptions = import('rollup').OutputOptions;
|
|
66
66
|
export type RollupOutput = import('rollup').RollupOutput;
|
|
67
67
|
export type RollupBuild = import('rollup').RollupBuild;
|
|
68
|
-
export type WatcherOptions = import('rollup').WatcherOptions;
|
|
69
68
|
|
|
70
69
|
// Esbuild
|
|
71
70
|
export type BuildOptions = import('esbuild').BuildOptions;
|
|
@@ -111,7 +110,6 @@ export interface BalmScripts {
|
|
|
111
110
|
// rollup
|
|
112
111
|
inputOptions: Omit<InputOptions, 'acorn'>; // incompatible
|
|
113
112
|
outputOptions: OutputOptions;
|
|
114
|
-
watchOptions: WatcherOptions;
|
|
115
113
|
// esbuild
|
|
116
114
|
buildOptions: BuildOptions;
|
|
117
115
|
useTransform: boolean;
|
|
@@ -37,6 +37,7 @@ function checkConfig() {
|
|
|
37
37
|
upgradeDeprecated('3.17.0', 'styles', 'darkSass');
|
|
38
38
|
upgradeDeprecated('3.19.0', 'scripts', 'useCache'); // For v4
|
|
39
39
|
|
|
40
|
+
upgradeDeprecated('4.0.0', 'scripts', 'libraryTarget');
|
|
40
41
|
upgradeDeprecated('4.5.0', 'scripts', 'excludeUrlResource');
|
|
41
42
|
upgradeDeprecated('4.5.0', 'scripts', 'urlLoaderOptions');
|
|
42
43
|
}
|
package/lib/config/scripts.js
CHANGED
|
@@ -123,7 +123,6 @@ const ie8 = false;
|
|
|
123
123
|
|
|
124
124
|
const inputOptions = {};
|
|
125
125
|
const outputOptions = {};
|
|
126
|
-
const watchOptions = {};
|
|
127
126
|
/**
|
|
128
127
|
* Esbuild bundler
|
|
129
128
|
*/
|
|
@@ -165,7 +164,6 @@ export default {
|
|
|
165
164
|
// rollup
|
|
166
165
|
inputOptions,
|
|
167
166
|
outputOptions,
|
|
168
|
-
watchOptions,
|
|
169
167
|
// esbuild
|
|
170
168
|
buildOptions,
|
|
171
169
|
useTransform,
|
package/lib/plugins/sass.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Reference `gulp-
|
|
1
|
+
// Reference `gulp-sass@5.1.0`
|
|
2
2
|
import { Transform } from 'node:stream';
|
|
3
3
|
import sass from 'sass';
|
|
4
4
|
import replaceExtension from 'replace-ext';
|
|
@@ -32,7 +32,7 @@ const filePush = (file, sassObject, callback) => {
|
|
|
32
32
|
const sourceFileIndex = sassMap.sources.indexOf(sassMapFile); // Prepend the path to all files in the sources array except the file that's being worked on
|
|
33
33
|
|
|
34
34
|
sassMap.sources = sassMap.sources.map((source, index) => index === sourceFileIndex ? source : node.path.join(sassFileSrcPath, source));
|
|
35
|
-
} // Remove 'stdin' from
|
|
35
|
+
} // Remove 'stdin' from sources and replace with filenames!
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
sassMap.sources = sassMap.sources.filter(src => src !== 'stdin' && src); // Replace the map file with the original filename (but new extension)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "balm-core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.6.0",
|
|
4
4
|
"description": "BalmJS compiler core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"balm",
|
|
@@ -43,15 +43,15 @@
|
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"ansi-colors": "^4.1.1",
|
|
45
45
|
"async": "^3.2.3",
|
|
46
|
-
"autoprefixer": "^10.4.
|
|
47
|
-
"babel-loader": "^8.2.
|
|
46
|
+
"autoprefixer": "^10.4.5",
|
|
47
|
+
"babel-loader": "^8.2.5",
|
|
48
48
|
"browser-sync": "^2.27.9",
|
|
49
49
|
"connect-history-api-fallback": "^1.6.0",
|
|
50
50
|
"css-loader": "^6.7.1",
|
|
51
51
|
"css-minimizer-webpack-plugin": "^3.4.1",
|
|
52
52
|
"cssnano": "^5.1.7",
|
|
53
53
|
"del": "^6.0.0",
|
|
54
|
-
"esbuild": "^0.14
|
|
54
|
+
"esbuild": "^0.14",
|
|
55
55
|
"fancy-log": "^2.0.0",
|
|
56
56
|
"gulp-eslint": "^6.0.0",
|
|
57
57
|
"gulp-if": "^3.0.0",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"html-loader": "^3.1.0",
|
|
66
66
|
"html-minifier": "^4.0.0",
|
|
67
67
|
"html-webpack-plugin": "^5.5.0",
|
|
68
|
-
"http-proxy-middleware": "^2.0.
|
|
68
|
+
"http-proxy-middleware": "^2.0.6",
|
|
69
69
|
"imagemin": "^8.0.1",
|
|
70
70
|
"istextorbinary": "^6.0.0",
|
|
71
71
|
"less": "^4.1.2",
|
|
@@ -78,35 +78,35 @@
|
|
|
78
78
|
"postcss-import": "^14.1.0",
|
|
79
79
|
"postcss-load-config": "^3.1.4",
|
|
80
80
|
"postcss-loader": "6.2.1",
|
|
81
|
-
"postcss-preset-env": "^7.4.
|
|
81
|
+
"postcss-preset-env": "^7.4.4",
|
|
82
82
|
"pretty-bytes": "^6.0.0",
|
|
83
83
|
"readable-stream": "^3.6.0",
|
|
84
84
|
"replace-ext": "^2.0.0",
|
|
85
|
-
"rollup": "^2.70.
|
|
85
|
+
"rollup": "^2.70.2",
|
|
86
86
|
"rollup-plugin-terser": "^7.0.2",
|
|
87
|
-
"sass": "^1.
|
|
87
|
+
"sass": "^1.51.0",
|
|
88
88
|
"sass-loader": "^12.6.0",
|
|
89
|
-
"ssh2": "^1.
|
|
89
|
+
"ssh2": "^1.10.0",
|
|
90
90
|
"strip-ansi": "^7.0.1",
|
|
91
91
|
"style-loader": "^3.3.1",
|
|
92
|
-
"terser": "^5.
|
|
92
|
+
"terser": "^5.13.0",
|
|
93
93
|
"terser-webpack-plugin": "^5.3.1",
|
|
94
94
|
"through2": "^4.0.2",
|
|
95
95
|
"through2-concurrent": "^2.0.0",
|
|
96
|
-
"tslib": "^2.
|
|
96
|
+
"tslib": "^2.4.0",
|
|
97
97
|
"vinyl-sourcemaps-apply": "^0.2.1",
|
|
98
98
|
"webpack": "^5.72.0",
|
|
99
99
|
"webpack-bundle-analyzer": "^4.5.0",
|
|
100
100
|
"webpack-dev-middleware": "^5.3.1",
|
|
101
101
|
"webpack-hot-middleware": "^2.25.1",
|
|
102
102
|
"webpack-merge": "^5.8.0",
|
|
103
|
-
"workbox-build": "^6.5.
|
|
103
|
+
"workbox-build": "^6.5.3"
|
|
104
104
|
},
|
|
105
105
|
"devDependencies": {
|
|
106
|
-
"@swc/core": "^1.2
|
|
106
|
+
"@swc/core": "^1.2",
|
|
107
107
|
"@types/express": "^4.17.13",
|
|
108
|
-
"@types/node": "^17
|
|
109
|
-
"@types/uglify-js": "^3.13.
|
|
108
|
+
"@types/node": "^17",
|
|
109
|
+
"@types/uglify-js": "^3.13.2",
|
|
110
110
|
"@types/webpack": "^5.28.0"
|
|
111
111
|
},
|
|
112
112
|
"optionalDependencies": {
|
|
@@ -118,5 +118,5 @@
|
|
|
118
118
|
"engines": {
|
|
119
119
|
"node": ">=12.13.0"
|
|
120
120
|
},
|
|
121
|
-
"gitHead": "
|
|
121
|
+
"gitHead": "903c97e47597f09766bd1973aded4bcc5eb36201"
|
|
122
122
|
}
|
|
@@ -28,6 +28,7 @@ function checkConfig() {
|
|
|
28
28
|
upgradeRenamed('3.16.0', 'scripts', 'inject', 'useCache');
|
|
29
29
|
upgradeDeprecated('3.17.0', 'styles', 'darkSass');
|
|
30
30
|
upgradeDeprecated('3.19.0', 'scripts', 'useCache');
|
|
31
|
+
upgradeDeprecated('4.0.0', 'scripts', 'libraryTarget');
|
|
31
32
|
upgradeDeprecated('4.5.0', 'scripts', 'excludeUrlResource');
|
|
32
33
|
upgradeDeprecated('4.5.0', 'scripts', 'urlLoaderOptions');
|
|
33
34
|
}
|
package/tslib/config/scripts.js
CHANGED
|
@@ -50,7 +50,6 @@ const vendorName = 'vendor';
|
|
|
50
50
|
const ie8 = false;
|
|
51
51
|
const inputOptions = {};
|
|
52
52
|
const outputOptions = {};
|
|
53
|
-
const watchOptions = {};
|
|
54
53
|
const buildOptions = {};
|
|
55
54
|
const useTransform = false;
|
|
56
55
|
const transformOptions = {};
|
|
@@ -85,7 +84,6 @@ export default {
|
|
|
85
84
|
ie8,
|
|
86
85
|
inputOptions,
|
|
87
86
|
outputOptions,
|
|
88
|
-
watchOptions,
|
|
89
87
|
buildOptions,
|
|
90
88
|
useTransform,
|
|
91
89
|
transformOptions
|