@rettangoli/fe 0.0.5 → 0.0.6
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/README.md +1 -1
- package/package.json +1 -1
- package/src/cli/build.js +3 -3
package/README.md
CHANGED
package/package.json
CHANGED
package/src/cli/build.js
CHANGED
|
@@ -30,7 +30,7 @@ export const writeViewFile = (view, category, component) => {
|
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
export const bundleFile = async (options) => {
|
|
33
|
-
const { outfile = "./
|
|
33
|
+
const { outfile = "./vt/static/main.js" } = options;
|
|
34
34
|
await esbuild.build({
|
|
35
35
|
entryPoints: ["./.temp/dynamicImport.js"],
|
|
36
36
|
bundle: true,
|
|
@@ -47,7 +47,7 @@ export const bundleFile = async (options) => {
|
|
|
47
47
|
const buildRettangoliFrontend = async (options) => {
|
|
48
48
|
console.log("running build with options", options);
|
|
49
49
|
|
|
50
|
-
const { dirs = ["./example"], outfile = "./
|
|
50
|
+
const { dirs = ["./example"], outfile = "./vt/static/main.js", setup = "setup.js" } = options;
|
|
51
51
|
|
|
52
52
|
const allFiles = getAllFiles(dirs).filter((filePath) => {
|
|
53
53
|
return (
|
|
@@ -106,7 +106,7 @@ const buildRettangoliFrontend = async (options) => {
|
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
output += `
|
|
109
|
-
import { createComponent } from 'rettangoli
|
|
109
|
+
import { createComponent } from '@rettangoli/fe';
|
|
110
110
|
import { deps, patch, h } from '../${setup}';
|
|
111
111
|
const imports = ${JSON.stringify(imports, null, 2)};
|
|
112
112
|
|