clovie 0.1.43 → 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.
@@ -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 { EsBuildCompiler } from '@jucie.io/engine-esbuild';
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(EsBuildCompiler.configure({
27
+ clovie.install(EsBuild.configure({
28
28
  entryPoints: [`${opts.scripts}/**/*.js`],
29
29
  outdir: opts.outputDir,
30
30
  outbase: opts.scripts,
@@ -65,23 +65,23 @@ export class Compile extends ServiceProvider {
65
65
  return;
66
66
  }
67
67
 
68
- const esbuildCompiler = useContext('esbuildCompiler');
69
- if (!esbuildCompiler) {
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 esbuildCompiler.build();
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 esbuildCompiler = useContext('esbuildCompiler');
82
- if (!esbuildCompiler) return;
81
+ const esBuild = useContext('esBuild');
82
+ if (!esBuild) return;
83
83
 
84
- await esbuildCompiler.watch();
84
+ await esBuild.watch();
85
85
  },
86
86
  styles: async (opts) => {
87
87
  if (!opts.styles) {
@@ -56,7 +56,7 @@ export class Run extends ServiceProvider {
56
56
  }
57
57
 
58
58
  if (typeof configurator.opts.beforeListen === 'function') {
59
- await configurator.opts.beforeListen(configurator.opts);
59
+ await configurator.opts.beforeListen(useContext, configurator.opts);
60
60
  }
61
61
 
62
62
  if (server) {
@@ -64,7 +64,7 @@ export class Run extends ServiceProvider {
64
64
  }
65
65
 
66
66
  if (typeof configurator.opts.afterListen === 'function') {
67
- await configurator.opts.afterListen(server?.getHttpServer(), configurator.opts);
67
+ await configurator.opts.afterListen(useContext, configurator.opts, server?.getHttpServer());
68
68
  }
69
69
 
70
70
  if (liveReload && server) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clovie",
3
- "version": "0.1.43",
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.2",
82
+ "@jucie.io/engine-esbuild": "^1.0.7",
82
83
  "@jucie.io/engine-server": "^1.0.26",
83
- "@jucie.io/reactive": "^1.0.26",
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",