@spinnaker/scripts 0.2.2 → 0.2.5
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
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.2.5](https://github.com/spinnaker/deck/compare/@spinnaker/scripts@0.2.4...@spinnaker/scripts@0.2.5) (2022-03-08)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **scripts:** update rollup-plugin-esbuild ([#9807](https://github.com/spinnaker/deck/issues/9807)) ([45ebc45](https://github.com/spinnaker/deck/commit/45ebc457fa4dbbad93cd9567fe31bd7d8cb2743b))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [0.2.4](https://github.com/spinnaker/deck/compare/@spinnaker/scripts@0.2.3...@spinnaker/scripts@0.2.4) (2021-12-01)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @spinnaker/scripts
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [0.2.3](https://github.com/spinnaker/deck/compare/@spinnaker/scripts@0.2.2...@spinnaker/scripts@0.2.3) (2021-11-03)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @spinnaker/scripts
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
## [0.2.2](https://github.com/spinnaker/deck/compare/@spinnaker/scripts@0.2.0...@spinnaker/scripts@0.2.2) (2021-09-30)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @spinnaker/scripts
|
|
@@ -9,7 +9,7 @@ const svgr = require('@svgr/rollup').default;
|
|
|
9
9
|
const autoPrefixer = require('autoprefixer');
|
|
10
10
|
const postCssColorFix = require('postcss-colorfix');
|
|
11
11
|
const postCssUrl = require('postcss-url');
|
|
12
|
-
const esbuild = require('rollup-plugin-esbuild');
|
|
12
|
+
const esbuild = require('rollup-plugin-esbuild').default;
|
|
13
13
|
const { terser } = require('rollup-plugin-terser');
|
|
14
14
|
const { visualizer } = require('rollup-plugin-visualizer');
|
|
15
15
|
|
|
@@ -12,7 +12,7 @@ module.exports = function angularJsTemplateLoader(options = {}) {
|
|
|
12
12
|
return {
|
|
13
13
|
name: 'angularJSTemplateLoader',
|
|
14
14
|
transform(originalCode, id) {
|
|
15
|
-
|
|
15
|
+
const code = originalCode;
|
|
16
16
|
const templateRegex = /require\(['"]([^'"]+\.html)['"]\)/g;
|
|
17
17
|
|
|
18
18
|
// look for things like require('./template.html')
|
|
@@ -38,7 +38,7 @@ module.exports = function angularJsTemplateLoader(options = {}) {
|
|
|
38
38
|
return;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
const magicString = new MagicString(code);
|
|
42
42
|
|
|
43
43
|
while (match) {
|
|
44
44
|
// i.e., './template.html'
|
package/index.js
CHANGED
|
@@ -127,7 +127,7 @@ const startHandler = async ({ file, push }) => {
|
|
|
127
127
|
};
|
|
128
128
|
|
|
129
129
|
const printBundleStart = (option) => {
|
|
130
|
-
|
|
130
|
+
const message = option.output.map((output) => `${option.input} -> ${output.dir}...`).join('\n');
|
|
131
131
|
console.log(chalk.blue.bold(message));
|
|
132
132
|
};
|
|
133
133
|
const printBundleComplete = (option, completedTimeInMS) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spinnaker/scripts",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"description": "Spinnaker scripts",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"@rollup/plugin-replace": "2.4.2",
|
|
19
19
|
"@rollup/plugin-typescript": "^8.1.0",
|
|
20
20
|
"@rollup/plugin-url": "^6.0.0",
|
|
21
|
-
"@spinnaker/eslint-plugin": "^3.0.
|
|
22
|
-
"@spinnaker/styleguide": "^
|
|
21
|
+
"@spinnaker/eslint-plugin": "^3.0.1",
|
|
22
|
+
"@spinnaker/styleguide": "^2.0.0",
|
|
23
23
|
"@svgr/rollup": "^5.5.0",
|
|
24
24
|
"autoprefixer": "^7.1.2",
|
|
25
25
|
"chalk": "^4.1.1",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"postcss-colorfix": "0.0.5",
|
|
30
30
|
"postcss-url": "9.0.0",
|
|
31
31
|
"rollup": "^2.35.1",
|
|
32
|
-
"rollup-plugin-esbuild": "^4.
|
|
32
|
+
"rollup-plugin-esbuild": "^4.8.2",
|
|
33
33
|
"rollup-plugin-external-globals": "0.6.1",
|
|
34
34
|
"rollup-plugin-less": "1.1.3",
|
|
35
35
|
"rollup-plugin-postcss": "3.1.8",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/yargs": "^17.0.3"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "8b967e5f649a2373d704ec1d7d9f790ab1e1802e"
|
|
45
45
|
}
|
package/read-write-json.js
CHANGED
|
@@ -46,7 +46,7 @@ const configureCli = () => {
|
|
|
46
46
|
throw new Error(`Cannot parse ${value} as a boolean`);
|
|
47
47
|
}
|
|
48
48
|
} else if (type === 'number') {
|
|
49
|
-
|
|
49
|
+
const newvalue = Number(value);
|
|
50
50
|
if (isNaN(newvalue)) {
|
|
51
51
|
throw new Error(`Cannot parse ${value} as a number`);
|
|
52
52
|
}
|