create-expo-stack
Advanced tools
Comparing version 0.0.4 to 0.0.6
@@ -43,3 +43,3 @@ "use strict"; | ||
run: function (toolbox) { return __awaiter(void 0, void 0, void 0, function () { | ||
var print, parameters, system, prompt, projectName, askName, useTypescript, useExpoRouter, useNativewind, githubRepo, error_1; | ||
var print, parameters, system, prompt, projectName, askName, useTypescript, useExpoRouter, useNativewind, githubRepo, branch, error_1; | ||
return __generator(this, function (_a) { | ||
@@ -73,16 +73,16 @@ switch (_a.label) { | ||
useNativewind = _a.sent(); | ||
githubRepo = 'https://github.com/danstepanov/create-expo-stack/'; | ||
githubRepo = 'https://github.com/danstepanov/create-expo-stack.git'; | ||
branch = 'blank'; | ||
if (useTypescript && useExpoRouter && useNativewind) { | ||
githubRepo += | ||
'tree/main/templates/with-typescript-navigation-nativewind'; | ||
branch = 'with-typescript-navigation-nativewind'; | ||
} | ||
if (!useTypescript) { | ||
if (useExpoRouter && useNativewind) { | ||
githubRepo += 'tree/main/templates/with-navigation-nativewind'; | ||
branch = 'with-navigation-nativewind'; | ||
} | ||
else if (useExpoRouter) { | ||
githubRepo += 'tree/main/templates/with-navigation'; | ||
branch = 'with-navigation'; | ||
} | ||
else if (useNativewind) { | ||
githubRepo += 'tree/main/templates/with-nativewind'; | ||
branch = 'with-nativewind'; | ||
} | ||
@@ -92,19 +92,19 @@ } | ||
if (useNativewind) { | ||
githubRepo += 'tree/main/templates/with-typescript-nativewind'; | ||
branch = 'with-typescript-nativewind'; | ||
} | ||
else { | ||
githubRepo += 'tree/main/templates/with-typescript'; | ||
branch = 'with-typescript'; | ||
} | ||
} | ||
if (!useNativewind && useTypescript && useExpoRouter) { | ||
githubRepo += 'tree/main/templates/with-typescript-navigation'; | ||
branch = 'with-typescript-navigation'; | ||
} | ||
if (!useTypescript && !useExpoRouter && !useNativewind) { | ||
githubRepo += 'tree/main/templates/blank'; | ||
branch = 'blank'; | ||
} | ||
print.info("Cloning ".concat(githubRepo, "...")); | ||
return [4 /*yield*/, system.run("git clone ".concat(githubRepo, " ").concat(projectName))]; | ||
return [4 /*yield*/, system.run("git clone --single-branch --branch ".concat(branch, " ").concat(githubRepo, " ").concat(projectName, " && cd ").concat(projectName, " && git branch -m ").concat(projectName, " main && git remote remove origin"))]; | ||
case 7: | ||
_a.sent(); | ||
print.success("Cloned ".concat(githubRepo, " to ").concat(projectName, "! \uD83C\uDF89")); | ||
print.success("Success! Now, just run either \"yarn && yarn ios\" or \"npm i && npm run ios\" to start working on your project! \uD83C\uDF89"); | ||
return [3 /*break*/, 9]; | ||
@@ -121,2 +121,2 @@ case 8: | ||
module.exports = command; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3JlYXRlLWV4cG8tc3RhY2suanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvY29tbWFuZHMvY3JlYXRlLWV4cG8tc3RhY2sudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFFQSxJQUFNLE9BQU8sR0FBbUI7SUFDOUIsSUFBSSxFQUFFLG1CQUFtQjtJQUN6QixXQUFXLEVBQUUsb0NBQW9DO0lBQ2pELEdBQUcsRUFBRSxVQUFPLE9BQU87Ozs7O29CQUNULEtBQUssR0FBaUMsT0FBTyxNQUF4QyxFQUFFLFVBQVUsR0FBcUIsT0FBTyxXQUE1QixFQUFFLE1BQU0sR0FBYSxPQUFPLE9BQXBCLEVBQUUsTUFBTSxHQUFLLE9BQU8sT0FBWixDQUFZO29CQUVqRCxXQUFXLEdBQUcsVUFBVSxDQUFDLEtBQUssQ0FBQTs7Ozt5QkFHNUIsQ0FBQyxXQUFXLEVBQVosd0JBQVk7b0JBQ1IsT0FBTyxHQUFHO3dCQUNkLElBQUksRUFBRSxPQUFPO3dCQUNiLElBQUksRUFBRSxNQUFNO3dCQUNaLE9BQU8sRUFBRSw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