create-uix-app 1.3.2 → 1.3.4
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 +1 -1
- package/src/index.js +15 -1
package/package.json
CHANGED
package/src/index.js
CHANGED
@@ -81,7 +81,6 @@ if (!projectName && !reactNative) {
|
|
81
81
|
fs.readFileSync(path.join(process.cwd(), "package.json"), "utf8")
|
82
82
|
);
|
83
83
|
|
84
|
-
// update package.json
|
85
84
|
fs.writeFileSync(
|
86
85
|
path.join(process.cwd(), "package.json"),
|
87
86
|
prettier.format(
|
@@ -127,6 +126,21 @@ if (!projectName && !reactNative) {
|
|
127
126
|
coreNs.replace("{{app-name}}", projectName)
|
128
127
|
);
|
129
128
|
|
129
|
+
fs.writeFileSync(
|
130
|
+
path.join(process.cwd(), "index.js"),
|
131
|
+
`import "./app/index.js";`
|
132
|
+
);
|
133
|
+
|
134
|
+
if (fs.existsSync(".gitignore")) {
|
135
|
+
fs.appendFileSync(
|
136
|
+
path.join(process.cwd(), ".gitignore"),
|
137
|
+
`
|
138
|
+
.cpcache/
|
139
|
+
.shadow-cljs/
|
140
|
+
app/`
|
141
|
+
);
|
142
|
+
}
|
143
|
+
|
130
144
|
console.log("Done.");
|
131
145
|
console.log("yarn cljs:dev # run dev build in watch mode");
|
132
146
|
console.log("yarn cljs:release # build production bundle");
|