create-uix-app 1.3.3 → 1.3.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +11 -1
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.3.3",
4
+ "version": "1.3.4",
5
5
  "author": {
6
6
  "name": "Roman Liutikov"
7
7
  },
package/src/index.js CHANGED
@@ -127,10 +127,20 @@ if (!projectName && !reactNative) {
127
127
  );
128
128
 
129
129
  fs.writeFileSync(
130
- path.join(process.cwd(), "src/app/core.cljs"),
130
+ path.join(process.cwd(), "index.js"),
131
131
  `import "./app/index.js";`
132
132
  );
133
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
+
134
144
  console.log("Done.");
135
145
  console.log("yarn cljs:dev # run dev build in watch mode");
136
146
  console.log("yarn cljs:release # build production bundle");