Skip to content

Commit

Permalink
Improvement: Adjust template to match new init command (#24138)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Esemesek authored and facebook-github-bot committed Apr 1, 2019
1 parent 9834c58 commit 770da3a
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
"README.md",
"third-party-podspecs",
"template",
"local-cli"
"local-cli",
"template.config.js"
],
"scripts": {
"start": "react-native start --reactNativePath .",
Expand Down
4 changes: 4 additions & 0 deletions template.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
placeholderName: 'HelloWorld',
templateDir: './template',
};
25 changes: 25 additions & 0 deletions template/package.json
Original file line number Diff line number Diff line change
@@ -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"
}
}

0 comments on commit 770da3a

Please sign in to comment.