@rettangoli/fe 0.0.7-rc14 → 0.0.7-rc16
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 +2 -2
- package/src/cli/watch.js +8 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rettangoli/fe",
|
|
3
|
-
"version": "0.0.7-
|
|
3
|
+
"version": "0.0.7-rc16",
|
|
4
4
|
"description": "Frontend framework for building reactive web components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"esbuild": "^0.25.5",
|
|
31
31
|
"immer": "^10.1.1",
|
|
32
|
-
"jempl": "0.
|
|
32
|
+
"jempl": "0.3.2-rc2",
|
|
33
33
|
"js-yaml": "^4.1.0",
|
|
34
34
|
"rxjs": "^7.8.2",
|
|
35
35
|
"snabbdom": "^3.6.2",
|
package/src/cli/watch.js
CHANGED
|
@@ -64,16 +64,19 @@ async function startViteServer(options) {
|
|
|
64
64
|
const startWatching = async (options) => {
|
|
65
65
|
const { dirs = ['src'], port = 3001 } = options;
|
|
66
66
|
|
|
67
|
-
//
|
|
68
|
-
|
|
69
|
-
await buildRettangoliFrontend({
|
|
67
|
+
// Set development mode for all builds in watch mode
|
|
68
|
+
const watchOptions = {
|
|
70
69
|
development: true,
|
|
71
70
|
...options
|
|
72
|
-
}
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
// Do initial build with all directories
|
|
74
|
+
console.log('Starting initial build...');
|
|
75
|
+
await buildRettangoliFrontend(watchOptions);
|
|
73
76
|
console.log('Initial build complete');
|
|
74
77
|
|
|
75
78
|
dirs.forEach(dir => {
|
|
76
|
-
setupWatcher(dir,
|
|
79
|
+
setupWatcher(dir, watchOptions);
|
|
77
80
|
});
|
|
78
81
|
|
|
79
82
|
startViteServer({ port, outfile: options.outfile });
|