clovie 0.1.44 → 0.1.45
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/lib/createClovie.js +2 -2
- package/lib/services/Compile.js +6 -6
- package/package.json +5 -4
package/lib/createClovie.js
CHANGED
|
@@ -5,7 +5,7 @@ import { Run } from './services/Run.js';
|
|
|
5
5
|
import { Configurator } from './services/Configurator.js';
|
|
6
6
|
import { transformConfig } from './utils/transformConfig.js';
|
|
7
7
|
import { Server } from '@jucie.io/engine-server';
|
|
8
|
-
import {
|
|
8
|
+
import { EsBuild } from '@jucie.io/engine-esbuild';
|
|
9
9
|
import { LiveReload } from './services/LiveReload.js';
|
|
10
10
|
|
|
11
11
|
export const createClovie = async (config = {}) => {
|
|
@@ -24,7 +24,7 @@ export const createClovie = async (config = {}) => {
|
|
|
24
24
|
clovie.install(Run)
|
|
25
25
|
|
|
26
26
|
if (opts.scripts) {
|
|
27
|
-
clovie.install(
|
|
27
|
+
clovie.install(EsBuild.configure({
|
|
28
28
|
entryPoints: [`${opts.scripts}/**/*.js`],
|
|
29
29
|
outdir: opts.outputDir,
|
|
30
30
|
outbase: opts.scripts,
|
package/lib/services/Compile.js
CHANGED
|
@@ -65,23 +65,23 @@ export class Compile extends ServiceProvider {
|
|
|
65
65
|
return;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
const
|
|
69
|
-
if (!
|
|
68
|
+
const esBuild = useContext('esBuild');
|
|
69
|
+
if (!esBuild) {
|
|
70
70
|
log.warn('No esbuild compiler available for scripts');
|
|
71
71
|
return;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
log.info('Compiling scripts...');
|
|
75
|
-
await
|
|
75
|
+
await esBuild.build();
|
|
76
76
|
log.info('Scripts compiled');
|
|
77
77
|
},
|
|
78
78
|
watchScripts: async (opts) => {
|
|
79
79
|
if (!opts.scripts) return;
|
|
80
80
|
|
|
81
|
-
const
|
|
82
|
-
if (!
|
|
81
|
+
const esBuild = useContext('esBuild');
|
|
82
|
+
if (!esBuild) return;
|
|
83
83
|
|
|
84
|
-
await
|
|
84
|
+
await esBuild.watch();
|
|
85
85
|
},
|
|
86
86
|
styles: async (opts) => {
|
|
87
87
|
if (!opts.styles) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clovie",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.45",
|
|
4
4
|
"description": "Vintage web dev tooling with modern quality of life",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"static-site-generator",
|
|
@@ -74,13 +74,14 @@
|
|
|
74
74
|
"publish:major": "node scripts/publish.js major",
|
|
75
75
|
"publish:beta": "node scripts/publish.js beta",
|
|
76
76
|
"publish:do": "node scripts/publish.js do",
|
|
77
|
-
"publish:info": "node scripts/publish.js info"
|
|
77
|
+
"publish:info": "node scripts/publish.js info",
|
|
78
|
+
"update:jucie.io": "npx npm-check-updates '@jucie.io/*' --target latest -u && npm install"
|
|
78
79
|
},
|
|
79
80
|
"dependencies": {
|
|
80
81
|
"@jucie.io/engine": "^1.1.68",
|
|
81
|
-
"@jucie.io/engine-esbuild": "^1.0.
|
|
82
|
+
"@jucie.io/engine-esbuild": "^1.0.7",
|
|
82
83
|
"@jucie.io/engine-server": "^1.0.26",
|
|
83
|
-
"@jucie.io/reactive": "^1.0.
|
|
84
|
+
"@jucie.io/reactive": "^1.0.30",
|
|
84
85
|
"chalk": "^5.6.2",
|
|
85
86
|
"chokidar": "^3.5.3",
|
|
86
87
|
"cli-progress": "^3.12.0",
|