Skip to content

Commit 1fc8e36

Browse files
author
Matthieu Napoli
committed
Allow to rename the project
When cloning the repository the project will be named "Boilerplate". With the new `npm run rename` command users will be able to rename the project after cloning it. Fix #8
1 parent 9b74663 commit 1fc8e36

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ Make sure you have installed [everything needed to run React Native](https://fac
1313

1414
- clone this repository
1515
- remove the previous git history: `rm -rf .git/`
16-
- rename the React Native project: `npm rename-project <YourProjectName>`
16+
- rename the React Native project to your own project name: `npm run rename -- <YourProjectName>` (the default name is `Boilerplate`)
1717

1818
You can now start the application, for example with `react-native run-android`.

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"prettier-fix": "prettier --write **/*.js",
99
"prettier-check": "prettier --list-different **/*.js",
1010
"lint-fix": "eslint --fix .",
11-
"lint-check": "eslint ."
11+
"lint-check": "eslint .",
12+
"rename": "react-native-rename"
1213
},
1314
"dependencies": {
1415
"react": "16.3.1",
@@ -29,9 +30,10 @@
2930
"eslint-plugin-standard": "^3.0.1",
3031
"jest": "23.3.0",
3132
"prettier": "^1.11.1",
33+
"react-native-rename": "^2.2.2",
3234
"react-test-renderer": "16.3.1"
3335
},
3436
"jest": {
3537
"preset": "react-native"
3638
}
37-
}
39+
}

0 commit comments

Comments
 (0)