Skip to content

Commit 2f5f748

Browse files
author
Matthieu Napoli
committed
Merge branch '8-rename-project' into 'master'
Commande pour renommer le projet React Native Closes #8 See merge request tcm-projects/react-native-boilerplate!4
2 parents 783dff7 + 1fc8e36 commit 2f5f748

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
@@ -21,6 +21,6 @@ Make sure you have installed [everything needed to run React Native](https://fac
2121

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

2626
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)