Skip to content

Commit 896bb8a

Browse files
cpojerfacebook-github-bot
authored andcommitted
Move react-native template
Summary: This diff moves the React Native template from `local-cli/templates/HelloWorld` to `template`. Keeping it in the react-native repo will allow us to make changes to the template and version it together with react-native, instead of moving it out into a separate repo and trying to keep the template in sync with RN. Reviewed By: TheSavior Differential Revision: D13372949 fbshipit-source-id: e68e267b4dcf6384535d7b48fc11e297a12e9676
1 parent 9d3f598 commit 896bb8a

57 files changed

Lines changed: 8 additions & 8 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.flowconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
.*/*[.]android.js
44

55
; Ignore templates for 'react-native init'
6-
.*/local-cli/templates/.*
6+
<PROJECT_ROOT>/template/.*
77

88
; Ignore the Dangerfile
99
<PROJECT_ROOT>/bots/dangerfile.js

.flowconfig.android

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
.*/*[.]ios.js
44

55
; Ignore templates for 'react-native init'
6-
.*/local-cli/templates/.*
6+
<PROJECT_ROOT>/template/.*
77

88
; Ignore the Dangerfile
99
<PROJECT_ROOT>/bots/dangerfile.js

ContainerShip/scripts/run-ci-e2e-tests.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ function e2e_suite() {
9595
# To make sure we actually installed the local version
9696
# of react-native, we will create a temp file inside the template
9797
# and check that it exists after `react-native init
98-
IOS_MARKER="$(mktemp "$ROOT"/local-cli/templates/HelloWorld/ios/HelloWorld/XXXXXXXX)"
99-
ANDROID_MARKER="$(mktemp "$ROOT"/local-cli/templates/HelloWorld/android/XXXXXXXX)"
98+
IOS_MARKER="$(mktemp "$ROOT"/template/ios/HelloWorld/XXXXXXXX)"
99+
ANDROID_MARKER="$(mktemp "$ROOT"/template/android/XXXXXXXX)"
100100

101101
# install CLI
102102
cd react-native-cli

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
},
3333
"testRegex": "/__tests__/.*-test\\.js$",
3434
"testPathIgnorePatterns": [
35-
"Libraries/Renderer",
3635
"/node_modules/",
37-
"local-cli/templates/",
36+
"<rootDir>/template",
37+
"Libraries/Renderer",
3838
"RNTester/e2e"
3939
],
4040
"haste": {

scripts/run-ci-e2e-tests.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ const TEMP = exec('mktemp -d /tmp/react-native-XXXXXXXX').stdout.trim();
3535
// of react-native, we will create a temp file inside the template
3636
// and check that it exists after `react-native init
3737
const MARKER_IOS = exec(
38-
`mktemp ${ROOT}/local-cli/templates/HelloWorld/ios/HelloWorld/XXXXXXXX`,
38+
`mktemp ${ROOT}/template/ios/HelloWorld/XXXXXXXX`,
3939
).stdout.trim();
4040
const MARKER_ANDROID = exec(
41-
`mktemp ${ROOT}/local-cli/templates/HelloWorld/android/XXXXXXXX`,
41+
`mktemp ${ROOT}/template/android/XXXXXXXX`,
4242
).stdout.trim();
4343
const numberOfRetries = argv.retries || 1;
4444
let SERVER_PID;

local-cli/templates/HelloWorld/__tests__/App-test.js renamed to template/__tests__/App-test.js

File renamed without changes.

local-cli/templates/HelloWorld/_buckconfig renamed to template/_buckconfig

File renamed without changes.

local-cli/templates/HelloWorld/_flowconfig renamed to template/_flowconfig

File renamed without changes.

0 commit comments

Comments
 (0)