Skip to content

Commit 770da3a

Browse files
Esemesekfacebook-github-bot
authored andcommitted
Improvement: Adjust template to match new init command (#24138)
Summary: Adjusting template to new init command (react-native-community/cli#241). PR with new init command needs to be merged before we land this. [General] [Changed] - Adjust template to match new init command Pull Request resolved: #24138 Differential Revision: D14617568 Pulled By: cpojer fbshipit-source-id: f4b90920d47d3e0d2b08470e0eaad1abd733e4cc
1 parent 9834c58 commit 770da3a

File tree

3 files changed

+31
-1
lines changed

3 files changed

+31
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@
5151
"README.md",
5252
"third-party-podspecs",
5353
"template",
54-
"local-cli"
54+
"local-cli",
55+
"template.config.js"
5556
],
5657
"scripts": {
5758
"start": "react-native start --reactNativePath .",

template.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
placeholderName: 'HelloWorld',
3+
templateDir: './template',
4+
};

template/package.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "HelloWorld",
3+
"version": "0.0.1",
4+
"private": true,
5+
"scripts": {
6+
"start": "react-native start",
7+
"test": "jest"
8+
},
9+
"dependencies": {
10+
"react": "16.8.1",
11+
"react-native": "0.59.3"
12+
},
13+
"devDependencies": {
14+
"@babel/core": "^7.3.3",
15+
"@babel/runtime": "^7.3.1",
16+
"@react-native-community/eslint-config": "^0.0.3",
17+
"babel-jest": "^24.1.0",
18+
"jest": "^24.1.0",
19+
"metro-react-native-babel-preset": "^0.51.1",
20+
"react-test-renderer": "16.8.1"
21+
},
22+
"jest": {
23+
"preset": "react-native"
24+
}
25+
}

0 commit comments

Comments
 (0)