Skip to content

Commit

Permalink
Add scripts to config
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Reid committed Mar 6, 2018
1 parent 8a2b2d3 commit c16cfb5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 20 deletions.
19 changes: 0 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,25 +95,6 @@ yo react-native:reducer MyReducer

The default `react-native init` now comes with tvOS targets... These add un-needed cruft to the project. Best plan is to open the XCode project, remove the tvOS targets and then delete the files in the project themselves.

Add these scripts to your `package.json`, don't overwrite the "start" script that will already exist though.

```
"scripts": {
"version": "./bin/version-ios.sh",
"test": "jest --verbose",
"coverage": "jest --coverage",
"test:watch": "npm test -- --watch"
},
```

Add the following to the `[ignore]` section in the `.flowconfig`.

```
; Ignore libraries we don’t want checking
.*/node_modules/react-native-experimental-navigation/.*
.*/node_modules/react-static-container/.*
```

Add the following to your `.gitignore`.

```
Expand Down
6 changes: 5 additions & 1 deletion generators/base/templates/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"private": true,
"scripts": {
"prettier": "prettier --config ./node_modules/@simpleweb/configs/.prettierrc --write './App/**/*.js'"
"prettier": "prettier --config ./node_modules/@simpleweb/configs/.prettierrc --write './App/**/*.js'",
"version": "./bin/version-ios.sh",
"test": "jest --verbose",
"coverage": "jest --coverage",
"test:watch": "npm test -- --watch"
}
}

0 comments on commit c16cfb5

Please sign in to comment.