Skip to content

Commit

Permalink
chore: updated post init script
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaykumar97 committed Jun 19, 2024
1 parent e565bb6 commit 5182eff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ npm uninstall -g react-native-cli
Generate a new React Native(**v0.74**) app using the **@ajaysidhu/react-native-template**:

```shell
npx react-native init myapp --template @ajaysidhu/react-native-template --skip-install
npx react-native init myapp --template @ajaysidhu/react-native-template --skip-install --pm npm --skip-git-init
```

You might also be prompted to confirm the installation for the packages `react-native` and `husky`. Simply hit `enter` to proceed.
Expand Down
5 changes: 4 additions & 1 deletion post-init.script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
echo "\nInitializing git repository\n"
git init

echo "\nInitializing husky (if asked, please hit return/enter key for the next prompt)\n"
echo "\nInitializing husky (if prompted, please hit return/enter key for the next prompt)\n"
npx husky-init

echo "\nInstalling node_modules\n"
Expand All @@ -12,6 +12,9 @@ npm install
echo "\nInitializing husky hooks\n"
npx husky set .husky/pre-commit "npm run test && npm run lint"

git add .
git commit -m "initial commit"

echo 'ENV=development' > .env.development
echo 'ENV=testing' > .env.testing
echo 'ENV=staging' > .env.staging
Expand Down

0 comments on commit 5182eff

Please sign in to comment.