From 770da3ac677556151209c47d59ec76a1fa050ce7 Mon Sep 17 00:00:00 2001 From: Kacper Wiszczuk Date: Mon, 1 Apr 2019 16:21:15 -0700 Subject: [PATCH] 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 --- package.json | 3 ++- template.config.js | 4 ++++ template/package.json | 25 +++++++++++++++++++++++++ 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 template.config.js create mode 100644 template/package.json diff --git a/package.json b/package.json index 56fbe4d00..71ebb4a3a 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,8 @@ "README.md", "third-party-podspecs", "template", - "local-cli" + "local-cli", + "template.config.js" ], "scripts": { "start": "react-native start --reactNativePath .", diff --git a/template.config.js b/template.config.js new file mode 100644 index 000000000..7e251cd17 --- /dev/null +++ b/template.config.js @@ -0,0 +1,4 @@ +module.exports = { + placeholderName: 'HelloWorld', + templateDir: './template', +}; diff --git a/template/package.json b/template/package.json new file mode 100644 index 000000000..5f597210f --- /dev/null +++ b/template/package.json @@ -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" + } +}