@ereo/cli 0.2.2 → 0.2.4
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../src/commands/build.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAOH;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;GAEG;AACH,wBAAsB,KAAK,CAAC,OAAO,GAAE,mBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../src/commands/build.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAOH;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;GAEG;AACH,wBAAsB,KAAK,CAAC,OAAO,GAAE,mBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC,CA6C5E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"start.d.ts","sourceRoot":"","sources":["../../src/commands/start.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,wBAAsB,KAAK,CAAC,OAAO,GAAE,YAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"start.d.ts","sourceRoot":"","sources":["../../src/commands/start.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,wBAAsB,KAAK,CAAC,OAAO,GAAE,YAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CA2FrE"}
|
package/dist/index.js
CHANGED
|
@@ -1448,7 +1448,8 @@ async function build(options = {}) {
|
|
|
1448
1448
|
outDir: options.outDir || config.build?.outDir || ".ereo",
|
|
1449
1449
|
minify: options.minify ?? config.build?.minify ?? true,
|
|
1450
1450
|
sourcemap: options.sourcemap ?? config.build?.sourcemap ?? true,
|
|
1451
|
-
target: bundlerTarget
|
|
1451
|
+
target: bundlerTarget,
|
|
1452
|
+
plugins: config.plugins
|
|
1452
1453
|
};
|
|
1453
1454
|
console.log(` Target: ${buildOptions.target}`);
|
|
1454
1455
|
console.log(` Output: ${buildOptions.outDir}`);
|
|
@@ -1742,6 +1743,18 @@ async function start(options = {}) {
|
|
|
1742
1743
|
});
|
|
1743
1744
|
server.setApp(app);
|
|
1744
1745
|
server.setRouter(router);
|
|
1746
|
+
const cssPath = join3(buildDir, "assets/styles.css");
|
|
1747
|
+
if (await Bun.file(cssPath).exists()) {
|
|
1748
|
+
const cssContent = await Bun.file(cssPath).text();
|
|
1749
|
+
server.use("/__tailwind.css", async (_request, _context, _next) => {
|
|
1750
|
+
return new Response(cssContent, {
|
|
1751
|
+
headers: {
|
|
1752
|
+
"Content-Type": "text/css; charset=utf-8",
|
|
1753
|
+
"Cache-Control": "public, max-age=31536000, immutable"
|
|
1754
|
+
}
|
|
1755
|
+
});
|
|
1756
|
+
});
|
|
1757
|
+
}
|
|
1745
1758
|
await server.start();
|
|
1746
1759
|
console.log(` \x1B[32m\u279C\x1B[0m Server running at \x1B[36mhttp://${hostname}:${port}/\x1B[0m
|
|
1747
1760
|
`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ereo/cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Ereo Team",
|
|
6
6
|
"homepage": "https://ereojs.github.io/ereoJS",
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"typecheck": "tsc --noEmit"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@ereo/bundler": "^0.2.
|
|
39
|
-
"@ereo/core": "^0.2.
|
|
40
|
-
"@ereo/router": "^0.2.
|
|
41
|
-
"@ereo/server": "^0.2.
|
|
42
|
-
"@ereo/trace": "^0.2.
|
|
38
|
+
"@ereo/bundler": "^0.2.4",
|
|
39
|
+
"@ereo/core": "^0.2.4",
|
|
40
|
+
"@ereo/router": "^0.2.4",
|
|
41
|
+
"@ereo/server": "^0.2.4",
|
|
42
|
+
"@ereo/trace": "^0.2.4"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@types/bun": "^1.1.0",
|