Improvement: Adjust template to match new init command (#24138)

Summary:
Adjusting template to new init command (https://github.com/react-native-community/react-native-cli/pull/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: https://github.com/facebook/react-native/pull/24138

Differential Revision: D14617568

Pulled By: cpojer

fbshipit-source-id: f4b90920d47d3e0d2b08470e0eaad1abd733e4cc
This commit is contained in:
Kacper Wiszczuk
2019-04-01 16:21:15 -07:00
committed by Facebook Github Bot
parent 9834c580af
commit 770da3ac67
3 changed files with 31 additions and 1 deletions

View File

@@ -51,7 +51,8 @@
"README.md",
"third-party-podspecs",
"template",
"local-cli"
"local-cli",
"template.config.js"
],
"scripts": {
"start": "react-native start --reactNativePath .",

4
template.config.js Normal file
View File

@@ -0,0 +1,4 @@
module.exports = {
placeholderName: 'HelloWorld',
templateDir: './template',
};

25
template/package.json Normal file
View File

@@ -0,0 +1,25 @@
{
"name": "HelloWorld",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "react-native start",
"test": "jest"
},
"dependencies": {
"react": "16.8.1",
"react-native": "0.59.3"
},
"devDependencies": {
"@babel/core": "^7.3.3",
"@babel/runtime": "^7.3.1",
"@react-native-community/eslint-config": "^0.0.3",
"babel-jest": "^24.1.0",
"jest": "^24.1.0",
"metro-react-native-babel-preset": "^0.51.1",
"react-test-renderer": "16.8.1"
},
"jest": {
"preset": "react-native"
}
}