Skip to content

Commit

Permalink
feat(DEV-45): remove twa-manifest.json in a new project
Browse files Browse the repository at this point in the history
  • Loading branch information
hhimanshu committed Jul 29, 2021
1 parent d54949a commit 21a8d1c
Show file tree
Hide file tree
Showing 2 changed files with 2,107 additions and 63 deletions.
6 changes: 5 additions & 1 deletion bin/setup-project.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ if (!repoName) {
const COMMANDS = {
gitCheckoutCommand: `git clone --depth 1 [email protected]:hhimanshu/create-pwa-app.git ${repoName}`,
installDepsCommand: `cd ${repoName} && yarn install`,
initializeGit: `cd ${repoName} && rm -rf .git && git init && git add . && git commit -m "initial commit"`
initializeGit: `cd ${repoName} && rm -rf .git && git init && git add . && git commit -q -m "initial commit"`,
removeFiles: `cd ${repoName} && rm -f pwa/twa-manifest.json`
};

console.log(`Cloning the repository with name ${repoName}`);
Expand All @@ -32,6 +33,9 @@ console.log(`Installing dependencies for ${repoName}`);
const installedDeps = runCommand(COMMANDS.installDepsCommand);
if (!installedDeps) process.exit(-1);

const projectSetup = runCommand(COMMANDS.removeFiles)
if (!projectSetup) process.exit(-1);

console.log(`Initializing git for ${repoName}`);
const initializedGit = runCommand(COMMANDS.initializeGit);
if (!initializedGit) process.exit(-1);
Expand Down
Loading

0 comments on commit 21a8d1c

Please sign in to comment.