Skip to content

Commit a25d1b8

Browse files
committed
@reason-react-native/template @ 0.61.0
1 parent f3c4375 commit a25d1b8

File tree

6 files changed

+41
-19
lines changed

6 files changed

+41
-19
lines changed

CHANGELOG.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
# reason-react-native-template CHANGELOG
1+
# Changelog of `@reason-react-native/template`
2+
3+
## 0.61.0 - 2019-06-17
4+
5+
- Rename `reason-react-native-template` to `@reason-react-native/template`
6+
27

38
## 0.1.0 - 2019-06-17
49

README.md

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
# Reason React Native HelloWorld
1+
# `@reason-react-native/template`
22

3-
> This is a React Native application developed in Reason.
3+
[![Version](https://img.shields.io/npm/v/@reason-react-native/template.svg)](https://www.npmjs.com/@reason-react-native/template)
4+
[![Chat](https://img.shields.io/discord/235176658175262720.svg?logo=discord&colorb=blue)](https://reason-react-native.github.io/discord/)
5+
6+
> React Native template for application developed in Reason.
47
58
Please carefully read instructions below in order to enjoy ReasonML development
69
experience.
@@ -10,7 +13,7 @@ experience.
1013
## Start a Reason React Native project with this template
1114

1215
```console
13-
npx react-native init MyApp --template reason-react-native-template
16+
npx react-native init MyApp --template @reason-react-native/template
1417
cd MyApp
1518
```
1619

@@ -26,4 +29,4 @@ yarn global remove react-native-cli
2629
```
2730

2831
Now that you are ready to go, you can check our documentation on
29-
[how to use Reason React Native](https://reasonml-community.github.io/reason-react-native/en/docs/usage/).
32+
[how to use Reason React Native](https://reason-react-native.github.io/en/docs/usage/).

package.json

+16-12
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
2-
"name": "reason-react-native-template",
3-
"version": "0.1.0-beta.3",
2+
"name": "@reason-react-native/template",
3+
"version": "0.61.0",
4+
"publishConfig": {
5+
"access": "public"
6+
},
47
"license": "MIT",
58
"keywords": [
69
"reason",
@@ -21,28 +24,28 @@
2124
"!template/lib/ocaml"
2225
],
2326
"devDependencies": {
24-
"bs-platform": "^5.0.4",
25-
"husky": "^1.3.1",
26-
"lerna": "^3.4.0",
27-
"lint-staged": "^8.1.5",
28-
"npm-run-all": "^3.0.0",
29-
"prettier": "^1.16.4"
27+
"bs-platform": "^7.0.0",
28+
"husky": "^1.3.0",
29+
"lint-staged": "^8.1.0",
30+
"npmpub": "^5.0.0",
31+
"prettier": "^1.18.0"
3032
},
3133
"scripts": {
34+
"prepare": "cd template && yarn",
35+
"test": "cd template && yarn re:build && yarn test",
3236
"format:most": "prettier --write \"**/*.{md,json,js,css}\"",
3337
"format:re": "find . -name \"*.re\" -or -name \"*.rei\" | grep -v \"node_modules\" | xargs bsrefmt --in-place",
3438
"format": "yarn format:most && yarn format:re",
35-
"test": "cd template && yarn test",
36-
"#prepublishOnly": "this is to include debug.keystore for android. Using files here doesn't work as .gitignore of the other folder seems to be *stronger*",
37-
"prepublishOnly": "rm -f template/.npmignore && grep -w -v \"*.keystore\" template/.gitignore > template/.npmignore"
39+
"release": "npmpub"
3840
},
3941
"prettier": {
4042
"trailingComma": "all",
4143
"proseWrap": "always"
4244
},
4345
"lint-staged": {
4446
"*.{md,json,js,css}": [
45-
"prettier --write"
47+
"prettier --write",
48+
"git add"
4649
],
4750
"*.{re,rei}": [
4851
"bsrefmt --in-place",
@@ -55,3 +58,4 @@
5558
}
5659
}
5760
}
61+

template/ios/ProjectNameTests/ProjectNameTests.m

+2
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,11 @@ - (void)testRendersWelcomeScreen
5959
return NO;
6060
}];
6161
}
62+
6263
#ifdef DEBUG
6364
RCTSetLogFunction(RCTDefaultLogFunction);
6465
#endif
66+
6567
XCTAssertNil(redboxError, @"RedBox error: %@", redboxError);
6668
XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS);
6769
}

template/package.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,16 @@
2222
"@babel/runtime": "^7.6.2",
2323
"@react-native-community/eslint-config": "^0.0.5",
2424
"babel-jest": "^24.9.0",
25-
"bs-platform": "^5.0.4",
25+
"bs-platform": "^7.0.0",
2626
"eslint": "^6.5.1",
2727
"jest": "^24.9.0",
2828
"metro-react-native-babel-preset": "^0.56.0",
2929
"react-test-renderer": "16.9.0"
3030
},
3131
"jest": {
32-
"preset": "react-native"
32+
"preset": "react-native",
33+
"transformIgnorePatterns": [
34+
"node_modules/(?!(jest-)?react-native|react-(native|universal|navigation)-(.*)|@react-native-community/(.*)|@react-navigation/(.*)|bs-platform)"
35+
]
3336
}
3437
}

yarn.lock

+5
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,11 @@ braces@^2.3.1:
173173
split-string "^3.0.2"
174174
to-regex "^3.0.1"
175175

176+
bs-platform@^7.0.0:
177+
version "7.0.1"
178+
resolved "https://registry.yarnpkg.com/bs-platform/-/bs-platform-7.0.1.tgz#1d7b0ef6088b998dceee5db74a7cd8f01c20a3bd"
179+
integrity sha512-UjStdtHhbtC/l6vKJ1XRDqrPk7rFf5PLYHtRX3akDXEYVnTbN36z0g4DEr5mU8S0N945e33HYts9x+i7hKKpZQ==
180+
176181
cache-base@^1.0.1:
177182
version "1.0.1"
178183
resolved "https://registry.yarnpkg.com/cache-base/-/cache-base-1.0.1.tgz#0a7f46416831c8b662ee36fe4e7c59d76f666ab2"

0 commit comments

Comments
 (0)