@imtf/profile-scripts 1.5.2 → 1.5.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/package.json +4 -4
- package/scripts/esbuild.mjs +3 -5
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imtf/profile-scripts",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.3",
|
|
4
4
|
"description": "Default scripts to bundle & transpile imtf front-end plugins",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
7
|
-
"profile-scripts": "bin/profile-scripts.js"
|
|
7
|
+
"profile-scripts": "./bin/profile-scripts.js"
|
|
8
8
|
},
|
|
9
9
|
"files": [
|
|
10
10
|
"bin/",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"esbuild-css-modules-plugin": "^3.1.4",
|
|
27
27
|
"esbuild-plugin-external-global": "^1.0.1",
|
|
28
28
|
"esbuild-plugin-inline-css": "^0.0.1",
|
|
29
|
-
"
|
|
30
|
-
"
|
|
29
|
+
"http-server": "^14.1.1",
|
|
30
|
+
"minimist": "^1.2.8"
|
|
31
31
|
}
|
|
32
32
|
}
|
package/scripts/esbuild.mjs
CHANGED
|
@@ -3,8 +3,7 @@ import esbuild from "esbuild-plugin-external-global";
|
|
|
3
3
|
import InlineCSSPlugin from "esbuild-plugin-inline-css";
|
|
4
4
|
import CssModulesPlugin from "esbuild-css-modules-plugin";
|
|
5
5
|
import minimist from "minimist";
|
|
6
|
-
import
|
|
7
|
-
import http from "http";
|
|
6
|
+
import HttpServer from "http-server";
|
|
8
7
|
|
|
9
8
|
// eslint-disable-next-line import/no-named-as-default-member
|
|
10
9
|
const externalGlobalPlugin = esbuild.externalGlobalPlugin;
|
|
@@ -88,9 +87,8 @@ if (watch) {
|
|
|
88
87
|
await ctx.watch();
|
|
89
88
|
|
|
90
89
|
// Create a server for the build directory
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
.listen(3010, () => console.log("Running at http://localhost:3010"));
|
|
90
|
+
const server = HttpServer.createServer({ root: "build" });
|
|
91
|
+
server.listen(3010, () => console.log("Running at http://localhost:3010"));
|
|
94
92
|
} else {
|
|
95
93
|
await build(config);
|
|
96
94
|
}
|