create-uix-app 1.4.1-rc1 → 1.4.1-rc3

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +5 -5
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-uix-app",
3
3
  "description": "Creates a starter project for UIx web app",
4
- "version": "1.4.1-rc1",
4
+ "version": "1.4.1-rc3",
5
5
  "author": {
6
6
  "name": "Roman Liutikov"
7
7
  },
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,12 @@ if (!projectName && !reFrame && !reactNative && !expo) {
125
129
  if (err) {
126
130
  console.error(err);
127
131
  } else {
128
- console.log("\n");
129
132
  console.log("Using:");
130
133
  console.log(
131
134
  Object.entries(pkgjson.dependencies)
132
135
  .map(([k, v]) => `${k}@${v}`)
133
136
  .join("\n")
134
137
  );
135
- console.log("\n");
136
138
  console.log(
137
139
  "yarn dev # run dev build with Expo and cljs build in watch mode"
138
140
  );
@@ -248,14 +250,12 @@ app/`
248
250
  if (err) {
249
251
  console.error(err);
250
252
  } else {
251
- console.log("\n");
252
253
  console.log("Using:");
253
254
  console.log(
254
255
  Object.entries(pkgjson.devDependencies)
255
256
  .map(([k, v]) => `${k}@${v}`)
256
257
  .join("\n")
257
258
  );
258
- console.log("\n");
259
259
  console.log(
260
260
  "yarn dev # run dev build in watch mode with CLJS REPL"
261
261
  );