@fto-consult/expo-ui 7.4.10 → 7.4.12
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/bin/create-app.js +1 -34
- package/bin/gitignore.js +44 -0
- package/bin/init.js +9 -0
- package/electron/utils/paths.js +1 -1
- package/package.json +1 -1
package/bin/create-app.js
CHANGED
@@ -155,37 +155,4 @@ const createAPPJSONFile = (projectRoot,{name,version})=>{
|
|
155
155
|
return fs.existsSync(appJSONPath);
|
156
156
|
}
|
157
157
|
|
158
|
-
const gitignore =
|
159
|
-
node_modules/
|
160
|
-
|
161
|
-
# Expo
|
162
|
-
.expo/
|
163
|
-
dist/
|
164
|
-
web-build/
|
165
|
-
|
166
|
-
# Native
|
167
|
-
*.orig.*
|
168
|
-
*.jks
|
169
|
-
*.p8
|
170
|
-
*.p12
|
171
|
-
*.key
|
172
|
-
*.mobileprovision
|
173
|
-
|
174
|
-
# Metro
|
175
|
-
.metro-health-check*
|
176
|
-
|
177
|
-
# debug
|
178
|
-
npm-debug.*
|
179
|
-
yarn-debug.*
|
180
|
-
yarn-error.*
|
181
|
-
|
182
|
-
# macOS
|
183
|
-
.DS_Store
|
184
|
-
*.pem
|
185
|
-
|
186
|
-
# local env files
|
187
|
-
.env*.local
|
188
|
-
|
189
|
-
# typescript
|
190
|
-
*.tsbuildinfo
|
191
|
-
`
|
158
|
+
const gitignore = require("./gitignore");
|
package/bin/gitignore.js
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
module.exports = `
|
2
|
+
|
3
|
+
# dependencies
|
4
|
+
node_modules/
|
5
|
+
|
6
|
+
electron/node_modules/
|
7
|
+
|
8
|
+
/node_modules/
|
9
|
+
|
10
|
+
electron/dist
|
11
|
+
|
12
|
+
dist/
|
13
|
+
|
14
|
+
# Expo
|
15
|
+
.expo/
|
16
|
+
dist/
|
17
|
+
web-build/
|
18
|
+
|
19
|
+
# Native
|
20
|
+
*.orig.*
|
21
|
+
*.jks
|
22
|
+
*.p8
|
23
|
+
*.p12
|
24
|
+
*.key
|
25
|
+
*.mobileprovision
|
26
|
+
|
27
|
+
# Metro
|
28
|
+
.metro-health-check*
|
29
|
+
|
30
|
+
# debug
|
31
|
+
npm-debug.*
|
32
|
+
yarn-debug.*
|
33
|
+
yarn-error.*
|
34
|
+
|
35
|
+
# macOS
|
36
|
+
.DS_Store
|
37
|
+
*.pem
|
38
|
+
|
39
|
+
# local env files
|
40
|
+
.env*.local
|
41
|
+
|
42
|
+
# typescript
|
43
|
+
*.tsbuildinfo
|
44
|
+
`;
|
package/bin/init.js
CHANGED
@@ -70,6 +70,15 @@ module.exports = ({projectRoot,electronProjectRoot,paths,pathsJSON})=>{
|
|
70
70
|
copy(pathsJSON,destPathJSON);
|
71
71
|
} catch(e){}
|
72
72
|
}
|
73
|
+
const gP = path.resolve(electronProjectRoot,".gitignore") ;
|
74
|
+
if(!fs.existsSync(gP)){
|
75
|
+
try {
|
76
|
+
writeFile(gP,require("./gitignore"));
|
77
|
+
} catch{};
|
78
|
+
}
|
79
|
+
try {
|
80
|
+
|
81
|
+
} catch(e){}
|
73
82
|
console.log("installing package dependencies ...");
|
74
83
|
return exec({
|
75
84
|
cmd : "npm install",// --prefix "+electronProjectRoot,
|
package/electron/utils/paths.js
CHANGED
@@ -8,5 +8,5 @@ const path = require("path");
|
|
8
8
|
module.exports = (projectRoot)=>{
|
9
9
|
projectRoot = projectRoot && fs.existsSync(projectRoot) && projectRoot || process.cwd();
|
10
10
|
const mainPackage = require("../../package.json");
|
11
|
-
return path.resolve(projectRoot,"node_modules"
|
11
|
+
return path.resolve(projectRoot,"node_modules",`${mainPackage.name.toLowerCase().replace(/\s/g, '')}.paths.alias.json`);
|
12
12
|
}
|