create-uix-app 1.4.1-rc2 → 1.4.1-rc4
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 +9 -5
package/package.json
CHANGED
package/src/index.js
CHANGED
@@ -9,6 +9,10 @@ const prettier = require("prettier");
|
|
9
9
|
const deepmerge = require("deepmerge");
|
10
10
|
const pkg = require("../package.json");
|
11
11
|
|
12
|
+
function camelToKebab(str) {
|
13
|
+
return str.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
|
14
|
+
}
|
15
|
+
|
12
16
|
program
|
13
17
|
.name(pkg.name)
|
14
18
|
.description(pkg.description)
|
@@ -87,7 +91,7 @@ if (!projectName && !reFrame && !reactNative && !expo) {
|
|
87
91
|
)
|
88
92
|
);
|
89
93
|
appjson.expo.name = projectName;
|
90
|
-
appjson.expo.slug = projectName;
|
94
|
+
appjson.expo.slug = camelToKebab(projectName);
|
91
95
|
fs.writeFileSync(
|
92
96
|
path.join(process.cwd(), projectName, "app.json"),
|
93
97
|
prettier.format(JSON.stringify(appjson), {
|
@@ -125,14 +129,14 @@ if (!projectName && !reFrame && !reactNative && !expo) {
|
|
125
129
|
if (err) {
|
126
130
|
console.error(err);
|
127
131
|
} else {
|
128
|
-
console.log(
|
132
|
+
console.log();
|
129
133
|
console.log("Using:");
|
130
134
|
console.log(
|
131
135
|
Object.entries(pkgjson.dependencies)
|
132
136
|
.map(([k, v]) => `${k}@${v}`)
|
133
137
|
.join("\n")
|
134
138
|
);
|
135
|
-
console.log(
|
139
|
+
console.log();
|
136
140
|
console.log(
|
137
141
|
"yarn dev # run dev build with Expo and cljs build in watch mode"
|
138
142
|
);
|
@@ -248,14 +252,14 @@ app/`
|
|
248
252
|
if (err) {
|
249
253
|
console.error(err);
|
250
254
|
} else {
|
251
|
-
console.log(
|
255
|
+
console.log();
|
252
256
|
console.log("Using:");
|
253
257
|
console.log(
|
254
258
|
Object.entries(pkgjson.devDependencies)
|
255
259
|
.map(([k, v]) => `${k}@${v}`)
|
256
260
|
.join("\n")
|
257
261
|
);
|
258
|
-
console.log(
|
262
|
+
console.log();
|
259
263
|
console.log(
|
260
264
|
"yarn dev # run dev build in watch mode with CLJS REPL"
|
261
265
|
);
|