@zumerbox/build 0.8.1 → 0.8.3
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 +14 -0
- package/bin/index.js +23 -5
- package/package.json +1 -2
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,20 @@
|
|
2
2
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
|
5
|
+
#### [v0.8.3](https://github.com/zumerlab/zumerbox-build/compare/v0.8.2...v0.8.3)
|
6
|
+
|
7
|
+
> 31 May 2025
|
8
|
+
|
9
|
+
- add global name option [`ab1910b`](https://github.com/zumerlab/zumerbox-build/commit/ab1910bd6b1e5283cbc9f6ad9a1071bf82e7d4f5)
|
10
|
+
- Bumped version [`1a0ca3b`](https://github.com/zumerlab/zumerbox-build/commit/1a0ca3b5fa4e6125b89b2c66b55dd9b523819f0d)
|
11
|
+
|
12
|
+
#### [v0.8.2](https://github.com/zumerlab/zumerbox-build/compare/v0.8.1...v0.8.2)
|
13
|
+
|
14
|
+
> 25 April 2025
|
15
|
+
|
16
|
+
- fix ext [`0b703b4`](https://github.com/zumerlab/zumerbox-build/commit/0b703b4b3865147ba8c29e7d4b7afc1a6aba7110)
|
17
|
+
- Bumped version [`548d951`](https://github.com/zumerlab/zumerbox-build/commit/548d951d26e51bc41b096d556cf3cf1478036b5f)
|
18
|
+
|
5
19
|
#### [v0.8.1](https://github.com/zumerlab/zumerbox-build/compare/v0.8.0...v0.8.1)
|
6
20
|
|
7
21
|
> 25 April 2025
|
package/bin/index.js
CHANGED
@@ -48,11 +48,17 @@ const argv = yargs
|
|
48
48
|
default: false
|
49
49
|
})
|
50
50
|
.option('module', {
|
51
|
-
alias: '
|
51
|
+
alias: 'x',
|
52
52
|
describe: 'Set mjs extension',
|
53
53
|
type: 'boolean',
|
54
54
|
default: false
|
55
55
|
})
|
56
|
+
.option('global', {
|
57
|
+
alias: 'g',
|
58
|
+
describe: 'Set global exposure',
|
59
|
+
type: 'boolean',
|
60
|
+
default: false
|
61
|
+
})
|
56
62
|
.help('h')
|
57
63
|
.alias('h', 'help').argv;
|
58
64
|
|
@@ -94,14 +100,21 @@ const options = {
|
|
94
100
|
outdir: argv.outdir,
|
95
101
|
legalComments: argv.comments ? 'inline' : 'none',
|
96
102
|
plugins: [sassPlugin()],
|
97
|
-
platform: argv.platform
|
98
|
-
outExtension: argv.module ? { '.js': '.mjs' } : null
|
103
|
+
platform: argv.platform
|
99
104
|
};
|
100
105
|
|
101
106
|
if (argv.js) {
|
102
107
|
options.entryPoints.push(argv.js);
|
103
108
|
}
|
104
109
|
|
110
|
+
if (argv.global) {
|
111
|
+
options.globalName.push(bundlerName);
|
112
|
+
}
|
113
|
+
|
114
|
+
if (argv.module) {
|
115
|
+
options.outExtension = { '.js': '.mjs' }
|
116
|
+
}
|
117
|
+
|
105
118
|
|
106
119
|
if (argv.scss) {
|
107
120
|
options.entryPoints.push(argv.scss);
|
@@ -115,10 +128,15 @@ const optionsMinify = {
|
|
115
128
|
metafile: true,
|
116
129
|
minify: true,
|
117
130
|
plugins: [sassPlugin()],
|
118
|
-
platform: argv.platform
|
119
|
-
outExtension: argv.module ? { '.js': '.mjs' } : null
|
131
|
+
platform: argv.platform
|
120
132
|
};
|
121
133
|
|
134
|
+
if (argv.global) {
|
135
|
+
optionsMinify.globalName.push(bundlerName);
|
136
|
+
}
|
137
|
+
if (argv.module) {
|
138
|
+
optionsMinify.outExtension = { '.js': '.mjs' }
|
139
|
+
}
|
122
140
|
|
123
141
|
// Run esbuild
|
124
142
|
esbuild
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@zumerbox/build",
|
3
|
-
"version": "0.8.
|
3
|
+
"version": "0.8.3",
|
4
4
|
"description": "",
|
5
5
|
"author": "Juan Martin Muda",
|
6
6
|
"license": "MIT",
|
@@ -9,7 +9,6 @@
|
|
9
9
|
"build": "bin/index.js"
|
10
10
|
},
|
11
11
|
"scripts": {
|
12
|
-
"start": "node bin/index.js",
|
13
12
|
"bump": "npx @zumerbox/bump",
|
14
13
|
"postbump": "npx @zumerbox/changelog && git add CHANGELOG.md && git commit -m \"Bumped version\" && git push --follow-tags"
|
15
14
|
},
|