@absolutejs/absolute 0.1.9 → 0.1.11
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/dist/index.js +74 -74
- package/package.json +1 -1
- package/src/core/build.ts +10 -1
package/package.json
CHANGED
package/src/core/build.ts
CHANGED
|
@@ -45,11 +45,18 @@ export const build = async ({
|
|
|
45
45
|
reactPagesDir && join(projectRoot, reactPagesDir);
|
|
46
46
|
const htmlDirAbsolute = htmlDir && join(projectRoot, htmlDir);
|
|
47
47
|
|
|
48
|
+
console.log("buildDirAbsolute:", buildDirAbsolute);
|
|
49
|
+
console.log("assetsDirAbsolute:", assetsDirAbsolute);
|
|
50
|
+
console.log("reactIndexDirAbsolute:", reactIndexDirAbsolute);
|
|
51
|
+
console.log("javascriptDirAbsolute:", javascriptDirAbsolute);
|
|
52
|
+
console.log("typeScriptDirAbsolute:", typeScriptDirAbsolute);
|
|
53
|
+
console.log("reactPagesDirAbsolute:", reactPagesDirAbsolute);
|
|
54
|
+
console.log("htmlDirAbsolute:", htmlDirAbsolute);
|
|
55
|
+
|
|
48
56
|
console.log("Cleaning build directory");
|
|
49
57
|
await rm(buildDirAbsolute, { force: true, recursive: true });
|
|
50
58
|
await mkdir(buildDirAbsolute);
|
|
51
59
|
|
|
52
|
-
console.log("Generating React index files");
|
|
53
60
|
reactPagesDirAbsolute &&
|
|
54
61
|
reactIndexDirAbsolute &&
|
|
55
62
|
(await generateReactIndexFiles(
|
|
@@ -173,6 +180,8 @@ const generateReactIndexFiles = async (
|
|
|
173
180
|
reactPagesDirAbsolute: string,
|
|
174
181
|
reactIndexDirAbsolute: string
|
|
175
182
|
) => {
|
|
183
|
+
console.log("Generating React index files");
|
|
184
|
+
|
|
176
185
|
await rm(reactIndexDirAbsolute, { force: true, recursive: true });
|
|
177
186
|
await mkdir(reactIndexDirAbsolute);
|
|
178
187
|
|