Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ae86464

Browse files
committed
Meta file updates
- Switch from Travis to CircleCI - Switch from Surge to Now
1 parent 18da5d2 commit ae86464

File tree

7 files changed

+54
-47
lines changed

7 files changed

+54
-47
lines changed

.circleci/config.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
version: 2
2+
jobs:
3+
build:
4+
docker:
5+
- image: circleci/node:10
6+
steps:
7+
- checkout
8+
9+
- restore_cache:
10+
name: Restore node_modules cache
11+
keys:
12+
- v1-node-{{ arch }}-{{ .Branch }}-{{ checksum "yarn.lock" }}
13+
- v1-node-{{ arch }}-{{ .Branch }}-
14+
- v1-node-{{ arch }}-
15+
16+
- run:
17+
name: Nodejs Version
18+
command: node --version
19+
20+
- run:
21+
name: Yarn Version
22+
command: yarn --version
23+
24+
- run:
25+
name: Install Packages
26+
command: yarn install --frozen-lockfile
27+
28+
- run:
29+
name: Run Tests
30+
command: yarn test --maxWorkers=2
31+
32+
- save_cache:
33+
name: Save node_modules cache
34+
key: v1-node-{{ arch }}-{{ .Branch }}-{{ checksum "yarn.lock" }}
35+
paths:
36+
- node_modules

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
* text=auto
22
*.js text eol=lf
3+
*.re linguist-language=OCaml

.travis.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

license

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,9 @@
1-
The MIT License (MIT)
1+
MIT License
22

33
Copyright (c) Neil Kistner <[email protected]> (neilkistner.com)
44

5-
Permission is hereby granted, free of charge, to any person obtaining a copy
6-
of this software and associated documentation files (the "Software"), to deal
7-
in the Software without restriction, including without limitation the rights
8-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
copies of the Software, and to permit persons to whom the Software is
10-
furnished to do so, subject to the following conditions:
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
116

12-
The above copyright notice and this permission notice shall be included in
13-
all copies or substantial portions of the Software.
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
148

15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21-
THE SOFTWARE.
9+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

now.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"alias": "reason-calculator",
3+
"builds": [{ "src": "package.json", "use": "@now/static-build" }],
4+
"version": 2
5+
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"clean:bsb": "bsb -clean-world",
1818
"clean:parcel": "rimraf dist lib .merlin",
1919
"pretest": "bsb -make-world",
20+
"now-build": "yarn build",
2021
"start": "run-p start:*",
2122
"start:bsb": "bsb -make-world -w",
2223
"start:parcel": "parcel public/index.html",

readme.md

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
1-
# reason-calculator
1+
# reason-calculator &middot; [![Website][website-image]][website-url] [![Build Status][circleci-image]][circleci-url]
22

3-
[![Website][website-image]][website-url]
4-
[![Build Status][travis-image]][travis-url]
5-
[![dependencies][deps-image]][deps-url]
6-
[![devDependencies][depsdev-image]][depsdev-url]
7-
8-
> A calculator built with [Reason](https://github.com/facebook/reason) and [reason-react](https://github.com/reasonml/reason-react).
3+
> A calculator built with [Reason](//github.com/facebook/reason) and [reason-react](//github.com/reasonml/reason-react).
94
105
## Live Demo
116

12-
https://reason-calculator.surge.sh
7+
https://reason-calculator.now.sh
138

149
## Setup
1510

@@ -45,15 +40,8 @@ $ npm run build
4540

4641
MIT © [Neil Kistner](https://neilkistner.com)
4742

48-
[website-image]: https://img.shields.io/website-up-down-green-red/https/reason-calculator.surge.sh.svg?style=flat-square
49-
[website-url]: https://reason-calculator.surge.sh
50-
51-
[travis-image]: https://img.shields.io/travis/wyze/reason-calculator.svg?style=flat-square
52-
[travis-url]: https://travis-ci.org/wyze/reason-calculator
53-
54-
55-
[deps-image]: https://img.shields.io/david/wyze/reason-calculator.svg?style=flat-square
56-
[deps-url]: https://david-dm.org/wyze/reason-calculator
43+
[circleci-image]: https://img.shields.io/circleci/project/github/wyze/reason-calculator.svg?style=flat-square
44+
[circleci-url]: https://circleci.com/gh/wyze/reason-calculator
5745

58-
[depsdev-image]: https://img.shields.io/david/dev/wyze/reason-calculator.svg?style=flat-square
59-
[depsdev-url]: https://david-dm.org/wyze/reason-calculator?type=dev
46+
[website-image]: https://img.shields.io/website-up-down-green-red/https/reason-calculator.now.sh.svg?style=flat-square
47+
[website-url]: https://reason-calculator.now.sh

0 commit comments

Comments
 (0)