Skip to content

Commit aaed0ae

Browse files
author
Ahmed Elshaabany
committed
Change package name to to be without organisation,
Change app name to be HelloTDD, Fix detox config
1 parent ea984fd commit aaed0ae

File tree

7 files changed

+35
-8
lines changed

7 files changed

+35
-8
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,22 @@ This template is a react-native boilerplate project template to start with for n
1010

1111
### Installation
1212
In the desired folder where you want to create the project, open command line and type:
13+
14+
>`npx react-native init {PROJECT_NAME} --template react-native-template-typescript-tdd`
15+
or if you want to install it from Github directly, type:
1316
>`react-native init {PROJECT_NAME} --template https://github.com/zaprogrammer/react-native-template-typescript-tdd.git`
1417
1518

1619
Official documentation for creating custom project templates can be found [here](https://github.com/react-native-community/cli/blob/master/docs/init.md#creating-custom-template
1720
).
21+
22+
23+
24+
25+
* Beside the app configurations, command lines commands:
26+
1- npm login/adduser: Username, password, email
27+
2- Your account should be Org, and login with Org name
28+
3- Add members to the team
29+
4- Go to cmd, then
30+
>`npm publish --access public`
31+

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "@zaprogrammer/react-native-template-typescript-tdd",
3-
"version": "1.0.0",
2+
"name": "react-native-template-typescript-tdd",
3+
"version": "1.0.3",
44
"description": "A react native template, with support for TDD and typescript out of the box.",
55
"repository": "git+https://github.com/zaprogrammer/react-native-template-typescript-tdd.git",
66
"author": "Ahmed Elshaabany",

template.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
22
// Placeholder name that will be replaced in package.json, index.json, android/, ios/ for a project name.
3-
placeholderName: 'HelloWorld',
3+
placeholderName: 'HelloTDD',
44

55
// Placeholder title that will be replaced in values.xml and Info.plist with title provided by the user.
66
// We default this value to 'Hello App Display Name', which is default placeholder in react-native template.

template/.detoxrc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"configurations": {
55
"ios": {
66
"type": "ios.simulator",
7-
"binaryPath": "ios/build/Build/Products/Debug-iphonesimulator/logmein.app",
8-
"build": "xcodebuild -workspace ios/logmein.xcworkspace -scheme logmein -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build",
7+
"binaryPath": "ios/build/Build/Products/Debug-iphonesimulator/{PROJECT_NAME}.app",
8+
"build": "xcodebuild -workspace ios/{PROJECT_NAME}.xcworkspace -scheme {PROJECT_NAME} -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build",
99
"device": {
1010
"type": "iPhone 11"
1111
}

template/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,21 @@ This template is a react-native boilerplate project template to start with for n
1010

1111
### Installation
1212
In the desired folder where you want to create the project, open command line and type:
13+
14+
>`npx react-native init {PROJECT_NAME} --template react-native-template-typescript-tdd`
15+
or if you want to install it from Github directly, type:
1316
>`react-native init {PROJECT_NAME} --template https://github.com/zaprogrammer/react-native-template-typescript-tdd.git`
1417
1518

1619
Official documentation for creating custom project templates can be found [here](https://github.com/react-native-community/cli/blob/master/docs/init.md#creating-custom-template
1720
).
21+
22+
23+
24+
25+
* Beside the app configurations, command lines commands:
26+
1- npm login/adduser: Username, password, email
27+
2- Your account should be Org, and login with Org name
28+
3- Add members to the team
29+
4- Go to cmd, then
30+
>`npm publish --access public`

template/app.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"name": "HelloWorld",
3-
"displayName": "HelloWorld"
2+
"name": "HelloTDD",
3+
"displayName": "HelloTDD"
44
}

template/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "logmein",
2+
"name": "HelloTDD",
33
"version": "0.0.1",
44
"private": true,
55
"scripts": {

0 commit comments

Comments
 (0)