create-expo-stack 2.10.4 → 2.10.5-next.08640a3
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/README.md +50 -50
- package/build/cli.js +21 -51
- package/build/commands/create-expo-stack.js +320 -364
- package/build/templates/base/components/Button.tsx.ejs +2 -3
- package/build/templates/packages/nativewind/components/Button.tsx.ejs +4 -5
- package/build/templates/packages/nativewindui/components/Button.tsx.ejs +2 -3
- package/build/templates/packages/restyle/components/Button.tsx.ejs +7 -3
- package/build/templates/packages/tamagui/components/Button.tsx.ejs +11 -5
- package/build/templates/packages/tamagui/tamagui.config.ts.ejs +24 -25
- package/build/templates/packages/unistyles/components/Button.tsx.ejs +8 -3
- package/build/types/utilities/configAnalytics.d.ts +17 -0
- package/build/utilities/bumpVersion.js +6 -6
- package/build/utilities/clearNavigationPackages.js +2 -2
- package/build/utilities/clearStylingPackages.js +2 -2
- package/build/utilities/configAnalytics.js +70 -0
- package/build/utilities/configStorage.js +31 -88
- package/build/utilities/configureProjectFiles.js +98 -83
- package/build/utilities/copyBaseAssets.js +4 -36
- package/build/utilities/generateProjectFiles.js +16 -16
- package/build/utilities/getPackageManager.js +7 -7
- package/build/utilities/printOutput.js +156 -211
- package/build/utilities/renderTitle.js +22 -62
- package/build/utilities/runCLI.js +334 -393
- package/build/utilities/runEasConfigure.js +61 -106
- package/build/utilities/runIgnite.js +9 -45
- package/build/utilities/systemCommand.js +11 -48
- package/build/utilities/usePackage.js +2 -2
- package/build/utilities/validateProjectName.js +27 -64
- package/package.json +70 -69
package/README.md
CHANGED
|
@@ -122,32 +122,32 @@ Thanks go to these wonderful people:
|
|
|
122
122
|
</a>
|
|
123
123
|
</td>
|
|
124
124
|
<td align="center">
|
|
125
|
-
<a href="https://github.com/
|
|
126
|
-
<img src="https://avatars.githubusercontent.com/u/
|
|
125
|
+
<a href="https://github.com/dannyhw">
|
|
126
|
+
<img src="https://avatars.githubusercontent.com/u/3481514?v=4" width="100;" alt="dannyhw"/>
|
|
127
127
|
<br />
|
|
128
|
-
<sub><b>
|
|
128
|
+
<sub><b>Daniel Williams</b></sub>
|
|
129
129
|
</a>
|
|
130
130
|
</td>
|
|
131
131
|
<td align="center">
|
|
132
|
-
<a href="https://github.com/
|
|
133
|
-
<img src="https://avatars.githubusercontent.com/u/
|
|
132
|
+
<a href="https://github.com/PickleNik">
|
|
133
|
+
<img src="https://avatars.githubusercontent.com/u/31113245?v=4" width="100;" alt="PickleNik"/>
|
|
134
134
|
<br />
|
|
135
|
-
<sub><b>
|
|
135
|
+
<sub><b>Null</b></sub>
|
|
136
136
|
</a>
|
|
137
137
|
</td></tr>
|
|
138
138
|
<tr>
|
|
139
139
|
<td align="center">
|
|
140
|
-
<a href="https://github.com/
|
|
141
|
-
<img src="https://avatars.githubusercontent.com/u/
|
|
140
|
+
<a href="https://github.com/frankcalise">
|
|
141
|
+
<img src="https://avatars.githubusercontent.com/u/374022?v=4" width="100;" alt="frankcalise"/>
|
|
142
142
|
<br />
|
|
143
|
-
<sub><b>
|
|
143
|
+
<sub><b>Frank Calise</b></sub>
|
|
144
144
|
</a>
|
|
145
145
|
</td>
|
|
146
146
|
<td align="center">
|
|
147
|
-
<a href="https://github.com/
|
|
148
|
-
<img src="https://avatars.githubusercontent.com/u/
|
|
147
|
+
<a href="https://github.com/ludwig-pro">
|
|
148
|
+
<img src="https://avatars.githubusercontent.com/u/62896243?v=4" width="100;" alt="ludwig-pro"/>
|
|
149
149
|
<br />
|
|
150
|
-
<sub><b>
|
|
150
|
+
<sub><b>Ludwig</b></sub>
|
|
151
151
|
</a>
|
|
152
152
|
</td>
|
|
153
153
|
<td align="center">
|
|
@@ -207,21 +207,28 @@ Thanks go to these wonderful people:
|
|
|
207
207
|
<sub><b>Null</b></sub>
|
|
208
208
|
</a>
|
|
209
209
|
</td>
|
|
210
|
+
<td align="center">
|
|
211
|
+
<a href="https://github.com/Savinvadim1312">
|
|
212
|
+
<img src="https://avatars.githubusercontent.com/u/16936043?v=4" width="100;" alt="Savinvadim1312"/>
|
|
213
|
+
<br />
|
|
214
|
+
<sub><b>Savin Vadim</b></sub>
|
|
215
|
+
</a>
|
|
216
|
+
</td>
|
|
210
217
|
<td align="center">
|
|
211
218
|
<a href="https://github.com/coyksdev">
|
|
212
219
|
<img src="https://avatars.githubusercontent.com/u/19565694?v=4" width="100;" alt="coyksdev"/>
|
|
213
220
|
<br />
|
|
214
221
|
<sub><b>Gerald</b></sub>
|
|
215
222
|
</a>
|
|
216
|
-
</td>
|
|
223
|
+
</td></tr>
|
|
224
|
+
<tr>
|
|
217
225
|
<td align="center">
|
|
218
226
|
<a href="https://github.com/andrew-levy">
|
|
219
227
|
<img src="https://avatars.githubusercontent.com/u/29075740?v=4" width="100;" alt="andrew-levy"/>
|
|
220
228
|
<br />
|
|
221
229
|
<sub><b>Andrew Levy</b></sub>
|
|
222
230
|
</a>
|
|
223
|
-
</td
|
|
224
|
-
<tr>
|
|
231
|
+
</td>
|
|
225
232
|
<td align="center">
|
|
226
233
|
<a href="https://github.com/gialencar">
|
|
227
234
|
<img src="https://avatars.githubusercontent.com/u/11895696?v=4" width="100;" alt="gialencar"/>
|
|
@@ -244,82 +251,75 @@ Thanks go to these wonderful people:
|
|
|
244
251
|
</a>
|
|
245
252
|
</td>
|
|
246
253
|
<td align="center">
|
|
247
|
-
<a href="https://github.com/
|
|
248
|
-
<img src="https://avatars.githubusercontent.com/u/
|
|
254
|
+
<a href="https://github.com/claudesortwell">
|
|
255
|
+
<img src="https://avatars.githubusercontent.com/u/41422239?v=4" width="100;" alt="claudesortwell"/>
|
|
249
256
|
<br />
|
|
250
|
-
<sub><b>
|
|
257
|
+
<sub><b>Claude</b></sub>
|
|
251
258
|
</a>
|
|
252
259
|
</td>
|
|
253
260
|
<td align="center">
|
|
254
|
-
<a href="https://github.com/
|
|
255
|
-
<img src="https://avatars.githubusercontent.com/u/
|
|
261
|
+
<a href="https://github.com/gwenoleR">
|
|
262
|
+
<img src="https://avatars.githubusercontent.com/u/10418241?v=4" width="100;" alt="gwenoleR"/>
|
|
256
263
|
<br />
|
|
257
264
|
<sub><b>Null</b></sub>
|
|
258
265
|
</a>
|
|
259
|
-
</td>
|
|
260
|
-
<td align="center">
|
|
261
|
-
<a href="https://github.com/YounessHassoune">
|
|
262
|
-
<img src="https://avatars.githubusercontent.com/u/36106440?v=4" width="100;" alt="YounessHassoune"/>
|
|
263
|
-
<br />
|
|
264
|
-
<sub><b>YOUNESS HASSOUNE</b></sub>
|
|
265
|
-
</a>
|
|
266
266
|
</td></tr>
|
|
267
267
|
<tr>
|
|
268
268
|
<td align="center">
|
|
269
|
-
<a href="https://github.com/
|
|
270
|
-
<img src="https://avatars.githubusercontent.com/u/
|
|
269
|
+
<a href="https://github.com/boek">
|
|
270
|
+
<img src="https://avatars.githubusercontent.com/u/1250545?v=4" width="100;" alt="boek"/>
|
|
271
271
|
<br />
|
|
272
|
-
<sub><b>
|
|
272
|
+
<sub><b>Jeff Boek</b></sub>
|
|
273
273
|
</a>
|
|
274
274
|
</td>
|
|
275
275
|
<td align="center">
|
|
276
|
-
<a href="https://github.com/
|
|
277
|
-
<img src="https://avatars.githubusercontent.com/u/
|
|
276
|
+
<a href="https://github.com/zamplyy">
|
|
277
|
+
<img src="https://avatars.githubusercontent.com/u/26258710?v=4" width="100;" alt="zamplyy"/>
|
|
278
278
|
<br />
|
|
279
|
-
<sub><b>
|
|
279
|
+
<sub><b>Joar Karlsson</b></sub>
|
|
280
280
|
</a>
|
|
281
281
|
</td>
|
|
282
282
|
<td align="center">
|
|
283
|
-
<a href="https://github.com/
|
|
284
|
-
<img src="https://avatars.githubusercontent.com/u/
|
|
283
|
+
<a href="https://github.com/Joehoel">
|
|
284
|
+
<img src="https://avatars.githubusercontent.com/u/31251240?v=4" width="100;" alt="Joehoel"/>
|
|
285
285
|
<br />
|
|
286
|
-
<sub><b>
|
|
286
|
+
<sub><b>Joël Kuijper</b></sub>
|
|
287
287
|
</a>
|
|
288
288
|
</td>
|
|
289
289
|
<td align="center">
|
|
290
|
-
<a href="https://github.com/
|
|
291
|
-
<img src="https://avatars.githubusercontent.com/u/
|
|
290
|
+
<a href="https://github.com/asapMaki">
|
|
291
|
+
<img src="https://avatars.githubusercontent.com/u/30200380?v=4" width="100;" alt="asapMaki"/>
|
|
292
292
|
<br />
|
|
293
|
-
<sub><b>
|
|
293
|
+
<sub><b>Mahir Kadić</b></sub>
|
|
294
294
|
</a>
|
|
295
295
|
</td>
|
|
296
296
|
<td align="center">
|
|
297
|
-
<a href="https://github.com/
|
|
298
|
-
<img src="https://avatars.githubusercontent.com/u/
|
|
297
|
+
<a href="https://github.com/Hacksore">
|
|
298
|
+
<img src="https://avatars.githubusercontent.com/u/996134?v=4" width="100;" alt="Hacksore"/>
|
|
299
299
|
<br />
|
|
300
|
-
<sub><b>
|
|
300
|
+
<sub><b>Sean Boult</b></sub>
|
|
301
301
|
</a>
|
|
302
302
|
</td>
|
|
303
303
|
<td align="center">
|
|
304
|
-
<a href="https://github.com/
|
|
305
|
-
<img src="https://avatars.githubusercontent.com/u/
|
|
304
|
+
<a href="https://github.com/YounessHassoune">
|
|
305
|
+
<img src="https://avatars.githubusercontent.com/u/36106440?v=4" width="100;" alt="YounessHassoune"/>
|
|
306
306
|
<br />
|
|
307
|
-
<sub><b>
|
|
307
|
+
<sub><b>YOUNESS HASSOUNE</b></sub>
|
|
308
308
|
</a>
|
|
309
309
|
</td></tr>
|
|
310
310
|
<tr>
|
|
311
311
|
<td align="center">
|
|
312
|
-
<a href="https://github.com/
|
|
313
|
-
<img src="https://avatars.githubusercontent.com/u/
|
|
312
|
+
<a href="https://github.com/bautistaaa">
|
|
313
|
+
<img src="https://avatars.githubusercontent.com/u/3660667?v=4" width="100;" alt="bautistaaa"/>
|
|
314
314
|
<br />
|
|
315
315
|
<sub><b>Null</b></sub>
|
|
316
316
|
</a>
|
|
317
317
|
</td>
|
|
318
318
|
<td align="center">
|
|
319
|
-
<a href="https://github.com/
|
|
320
|
-
<img src="https://avatars.githubusercontent.com/u/
|
|
319
|
+
<a href="https://github.com/debugtheworldbot">
|
|
320
|
+
<img src="https://avatars.githubusercontent.com/u/62830430?v=4" width="100;" alt="debugtheworldbot"/>
|
|
321
321
|
<br />
|
|
322
|
-
<sub><b>
|
|
322
|
+
<sub><b>Pipizhu</b></sub>
|
|
323
323
|
</a>
|
|
324
324
|
</td></tr>
|
|
325
325
|
</table>
|
package/build/cli.js
CHANGED
|
@@ -8,63 +8,33 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
12
|
exports.run = void 0;
|
|
40
|
-
|
|
13
|
+
const gluegun_1 = require("gluegun");
|
|
41
14
|
/**
|
|
42
15
|
* Create the cli and kick it off
|
|
43
16
|
*/
|
|
44
17
|
function run() {
|
|
45
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
return [2 /*return*/, toolbox];
|
|
65
|
-
}
|
|
66
|
-
});
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
const argv = process.env.argv;
|
|
20
|
+
// create a CLI runtime
|
|
21
|
+
const cli = (0, gluegun_1.build)()
|
|
22
|
+
.brand('create-expo-stack')
|
|
23
|
+
.src(__dirname)
|
|
24
|
+
.plugins('./node_modules', {
|
|
25
|
+
matching: 'create-expo-stack-*',
|
|
26
|
+
hidden: true
|
|
27
|
+
})
|
|
28
|
+
.version() // provides default for version, v, --version, -v
|
|
29
|
+
.create();
|
|
30
|
+
// enable the following method if you'd like to skip loading one of these core extensions
|
|
31
|
+
// this can improve performance if they're not necessary for your project:
|
|
32
|
+
// .exclude(['meta', 'strings', 'print', 'filesystem', 'semver', 'system', 'prompt', 'http', 'template', 'patching', 'package-manager'])
|
|
33
|
+
// and run it
|
|
34
|
+
const toolbox = yield cli.run(argv);
|
|
35
|
+
// send it back (for testing, mostly)
|
|
36
|
+
return toolbox;
|
|
67
37
|
});
|
|
68
38
|
}
|
|
69
39
|
exports.run = run;
|
|
70
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
40
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xpLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2NsaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFBQSxxQ0FBZ0M7QUFFaEM7O0dBRUc7QUFDSCxTQUFzQixHQUFHOztRQUN2QixNQUFNLElBQUksR0FBRyxPQUFPLENBQUMsR0FBRyxDQUFDLElBQUksQ0FBQztRQUM5Qix1QkFBdUI7UUFDdkIsTUFBTSxHQUFHLEdBQUcsSUFBQSxlQUFLLEdBQUU7YUFDaEIsS0FBSyxDQUFDLG1CQUFtQixDQUFDO2FBQzFCLEdBQUcsQ0FBQyxTQUFTLENBQUM7YUFDZCxPQUFPLENBQUMsZ0JBQWdCLEVBQUU7WUFDekIsUUFBUSxFQUFFLHFCQUFxQjtZQUMvQixNQUFNLEVBQUUsSUFBSTtTQUNiLENBQUM7YUFDRCxPQUFPLEVBQUUsQ0FBQyxpREFBaUQ7YUFDM0QsTUFBTSxFQUFFLENBQUM7UUFDWix5RkFBeUY7UUFDekYsMEVBQTBFO1FBQzFFLHdJQUF3STtRQUN4SSxhQUFhO1FBQ2IsTUFBTSxPQUFPLEdBQUcsTUFBTSxHQUFHLENBQUMsR0FBRyxDQUFDLElBQUksQ0FBQyxDQUFDO1FBRXBDLHFDQUFxQztRQUNyQyxPQUFPLE9BQU8sQ0FBQztJQUNqQixDQUFDO0NBQUE7QUFwQkQsa0JBb0JDIn0=
|