@imtf/profile-scripts 1.5.0-beta.0 → 1.5.0-beta.1
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/package.json +6 -3
- package/scripts/esbuild.mjs +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imtf/profile-scripts",
|
|
3
|
-
"version": "1.5.0-beta.
|
|
3
|
+
"version": "1.5.0-beta.1",
|
|
4
4
|
"description": "Default scripts to bundle & transpile imtf front-end plugins",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -13,7 +13,9 @@
|
|
|
13
13
|
],
|
|
14
14
|
"scripts": {
|
|
15
15
|
"build": "NODE_ENV=production node scripts/esbuild.mjs --entryPoint=index.tsx",
|
|
16
|
-
"
|
|
16
|
+
"watch": "node scripts/esbuild.mjs --entryPoint=index.tsx --watch",
|
|
17
|
+
"serve": "npx serve build -l 3010",
|
|
18
|
+
"start": "concurrently \"npm run watch\" \"npm run serve\""
|
|
17
19
|
},
|
|
18
20
|
"prettier": "@imtf/prettier-config",
|
|
19
21
|
"license": "UNLICENSED",
|
|
@@ -27,6 +29,7 @@
|
|
|
27
29
|
"esbuild-css-modules-plugin": "^3.1.4",
|
|
28
30
|
"esbuild-plugin-external-global": "^1.0.1",
|
|
29
31
|
"esbuild-plugin-inline-css": "^0.0.1",
|
|
30
|
-
"minimist": "^1.2.8"
|
|
32
|
+
"minimist": "^1.2.8",
|
|
33
|
+
"serve": "^14.2.4"
|
|
31
34
|
}
|
|
32
35
|
}
|
package/scripts/esbuild.mjs
CHANGED
|
@@ -40,7 +40,7 @@ const config = {
|
|
|
40
40
|
target: "es2020",
|
|
41
41
|
metafile: true,
|
|
42
42
|
|
|
43
|
-
sourcemap:
|
|
43
|
+
sourcemap: "external",
|
|
44
44
|
|
|
45
45
|
minify:
|
|
46
46
|
process.env.NODE_ENV === "production" &&
|
|
@@ -81,10 +81,10 @@ if (watch) {
|
|
|
81
81
|
// Enable watch mode
|
|
82
82
|
await ctx.watch();
|
|
83
83
|
|
|
84
|
-
// Enable serve mode
|
|
85
|
-
await ctx.serve({
|
|
86
|
-
|
|
87
|
-
});
|
|
84
|
+
// // Enable serve mode
|
|
85
|
+
// await ctx.serve({
|
|
86
|
+
// port: 3010,
|
|
87
|
+
// });
|
|
88
88
|
} else {
|
|
89
89
|
build(config);
|
|
90
90
|
}
|