@sealcode/sealgen 0.11.1 → 0.11.2
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/build.js +6 -1
- package/package.json +1 -1
- package/src/build.ts +6 -1
package/lib/build.js
CHANGED
|
@@ -37,6 +37,7 @@ const find_scss_includes_1 = require("./find-scss-includes");
|
|
|
37
37
|
const sleep_1 = require("./utils/sleep");
|
|
38
38
|
const generate_collections_1 = require("./generate-collections");
|
|
39
39
|
const generate_routes_1 = require("./generate-routes");
|
|
40
|
+
const generate_components_1 = require("./generate-components");
|
|
40
41
|
const generate_names = (function* generate_names() {
|
|
41
42
|
const base_name = "____unique_import_";
|
|
42
43
|
let count = 0;
|
|
@@ -46,7 +47,11 @@ const generate_names = (function* generate_names() {
|
|
|
46
47
|
}
|
|
47
48
|
})();
|
|
48
49
|
async function build_ts() {
|
|
49
|
-
await Promise.all([
|
|
50
|
+
await Promise.all([
|
|
51
|
+
(0, generate_collections_1.generateCollections)(),
|
|
52
|
+
(0, generate_routes_1.generateRoutes)(),
|
|
53
|
+
(0, generate_components_1.generateComponents)(),
|
|
54
|
+
]);
|
|
50
55
|
const entryPoints = (await (0, tiny_glob_1.default)("./src/back/**/*.{ts,tsx}")).filter((path) => !path.includes(".#"));
|
|
51
56
|
try {
|
|
52
57
|
await (0, esbuild_1.build)({
|
package/package.json
CHANGED
package/src/build.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { generateScssIncludes } from "./find-scss-includes";
|
|
|
8
8
|
import { sleep } from "./utils/sleep";
|
|
9
9
|
import { generateCollections } from "./generate-collections";
|
|
10
10
|
import { generateRoutes } from "./generate-routes";
|
|
11
|
+
import { generateComponents } from "./generate-components";
|
|
11
12
|
|
|
12
13
|
const generate_names = (function* generate_names() {
|
|
13
14
|
const base_name = "____unique_import_";
|
|
@@ -19,7 +20,11 @@ const generate_names = (function* generate_names() {
|
|
|
19
20
|
})();
|
|
20
21
|
|
|
21
22
|
async function build_ts() {
|
|
22
|
-
await Promise.all([
|
|
23
|
+
await Promise.all([
|
|
24
|
+
generateCollections(),
|
|
25
|
+
generateRoutes(),
|
|
26
|
+
generateComponents(),
|
|
27
|
+
]);
|
|
23
28
|
const entryPoints = (await glob("./src/back/**/*.{ts,tsx}")).filter(
|
|
24
29
|
(path) => !path.includes(".#")
|
|
25
30
|
);
|