create-uix-app 1.3.1 → 1.3.3
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/index.js +7 -11
package/package.json
CHANGED
package/src/index.js
CHANGED
@@ -78,17 +78,9 @@ if (!projectName && !reactNative) {
|
|
78
78
|
)
|
79
79
|
);
|
80
80
|
const pkgjsonPrjct = JSON.parse(
|
81
|
-
fs.readFileSync(
|
82
|
-
path.join(
|
83
|
-
process.cwd(),
|
84
|
-
"uix-starter-react-native",
|
85
|
-
"package.json"
|
86
|
-
),
|
87
|
-
"utf8"
|
88
|
-
)
|
81
|
+
fs.readFileSync(path.join(process.cwd(), "package.json"), "utf8")
|
89
82
|
);
|
90
83
|
|
91
|
-
// update package.json
|
92
84
|
fs.writeFileSync(
|
93
85
|
path.join(process.cwd(), "package.json"),
|
94
86
|
prettier.format(
|
@@ -123,7 +115,7 @@ if (!projectName && !reactNative) {
|
|
123
115
|
path.join(process.cwd(), "shadow-cljs.edn")
|
124
116
|
);
|
125
117
|
|
126
|
-
fs.
|
118
|
+
fs.rmSync("uix-starter-react-native", { recursive: true });
|
127
119
|
|
128
120
|
const coreNs = fs.readFileSync(
|
129
121
|
path.join(process.cwd(), "src/app/core.cljs"),
|
@@ -134,8 +126,12 @@ if (!projectName && !reactNative) {
|
|
134
126
|
coreNs.replace("{{app-name}}", projectName)
|
135
127
|
);
|
136
128
|
|
129
|
+
fs.writeFileSync(
|
130
|
+
path.join(process.cwd(), "src/app/core.cljs"),
|
131
|
+
`import "./app/index.js";`
|
132
|
+
);
|
133
|
+
|
137
134
|
console.log("Done.");
|
138
|
-
console.log("\n");
|
139
135
|
console.log("yarn cljs:dev # run dev build in watch mode");
|
140
136
|
console.log("yarn cljs:release # build production bundle");
|
141
137
|
} else {
|