Skip to content
This repository was archived by the owner on Feb 23, 2019. It is now read-only.

Commit 69a2258

Browse files
committed
fix: signature.sh is not found. Add README.md file for user. Install missing package 'tslib'. Remove unnecessary package 'copy-dir'
1 parent 32f9c7e commit 69a2258

6 files changed

Lines changed: 85 additions & 155 deletions

File tree

README.md

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
## What can I do
2+
##### 1、Create project based on react-native-cli.
3+
##### 2、Download android sdk automatically without android studio.
4+
##### 3、Create android emulator automatically without android studio.
5+
##### 4、Run `npm start` or `yarn start` can launch android & ios simulator automatically.
6+
##### 5、Build android & ios app by shell script automatically.
7+
##### 6、Upload ios app to app-store by shell script automatically.
8+
##### 7、You don't need to care about how to install any more, just focus to write javascript code.
9+
10+
## Requirements
11+
12+
- macos
13+
- Install xcode 9.4+
14+
- Install node 8.3+
15+
- Install JDK 8
16+
17+
Android Studio is not required. We will use shell script to install sdk-platforms and sdk-tools.
18+
19+
You'd better install jdk8, not jdk10. Because jdk10 may make your app crash.
20+
21+
## Install
22+
23+
```bash
24+
npm install -g react-native-init@latest
25+
```
26+
27+
OR
28+
29+
```bash
30+
yrn global add react-native-init@latest
31+
```
32+
33+
## Create project
34+
Open terminal and type script:
35+
```bash
36+
react-native-init YourProjectName
37+
```
38+
And then run your project:
39+
```bash
40+
cd YourProjectName
41+
42+
# For first time initialize.
43+
node scripts/init
44+
45+
# Or yarn start
46+
npm start
47+
```
48+
49+
## Options
50+
51+
### npm {boolean}
52+
Using npm to install package whatever.
53+
```bash
54+
react-native-init YourProjectName --npm
55+
```
56+
If you don't append this parameter, we will check **yarn** at first, and then check **npm** when yarn is not installed.
57+
58+
## Supported version
59+
<table>
60+
<tr>
61+
<th>react-native-init</th>
62+
<th>react-native</th>
63+
</tr>
64+
<tr>
65+
<td>< 0.58</td>
66+
<td>0.54.* - 0.56.*</td>
67+
</tr>
68+
<tr>
69+
<td>0.58.*</td>
70+
<td>0.58.*</td>
71+
</tr>
72+
</table>
73+

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-init",
3-
"version": "0.58.3",
3+
"version": "0.58.7",
44
"description": "Create react native projects with native code based on react-native-cli",
55
"main": "lib/index.js",
66
"repository": "https://github.com/fwh1990/react-native-init",
@@ -15,12 +15,12 @@
1515
},
1616
"dependencies": {
1717
"colors": "^1.3.3",
18-
"copy-dir": "^0.4.0",
1918
"fs-extra": "^7.0.1",
2019
"minimist": "^1.2.0",
2120
"mkdirp": "^0.5.1",
2221
"react-native-cli": "^2.0.1",
23-
"semver": "^5.6.0"
22+
"semver": "^5.6.0",
23+
"tslib": "^1.9.3"
2424
},
2525
"devDependencies": {
2626
"@types/fs-extra": "^5.0.4",
@@ -29,7 +29,6 @@
2929
"@types/node": "^10.12.20",
3030
"@types/semver": "^5.5.0",
3131
"ts-node": "^8.0.2",
32-
"tslint": "^5.12.1",
3332
"typescript": "^3.2.4"
3433
}
3534
}

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ process.chdir(projectPath);
6464
}
6565

6666
packageData.scripts.start = 'node scripts/start --port=8081';
67+
packageData.license = packageData.license || 'UNLICENSED';
6768
fs.writeFileSync(packageFilePath, JSON.stringify(packageData, null, 2));
6869
})();
6970

@@ -149,7 +150,7 @@ replacePlaceholder('scripts/build/archive.sh', [
149150
}
150151
]);
151152

152-
replacePlaceholder('scripts/build/signature.sh', [
153+
replacePlaceholder('scripts/build/android-signature.sh', [
153154
{
154155
pattern: /:project_name:/g,
155156
value: projectName,

templates/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ We have prepared everything for you. You just need run script below:
1313
## Build app
1414
Before build app, you should create signature for android
1515
```bash
16-
sh scripts/build/signature.sh
16+
sh scripts/build/android-signature.sh
1717
```
1818
Before build app, you should create personal certificate and upload to [apple developer](https://developer.apple.com/account/ios/certificate). Or create by xcode automatically.
1919

File renamed without changes.

0 commit comments

Comments
 (0)