Skip to content
This repository was archived by the owner on May 10, 2018. It is now read-only.

Commit c7a40d1

Browse files
committed
chore: setup semantic-release, codeclimate and switch to Travis
1 parent 9658f3e commit c7a40d1

File tree

7 files changed

+65
-5
lines changed

7 files changed

+65
-5
lines changed

.circleci/config.yml

Whitespace-only changes.

.codeclimate.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
engines:
2+
tslint:
3+
enabled: true
4+
checks:
5+
semicolon:
6+
enabled: false

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ node_modules
22
dist
33
package-lock.json
44
yarn.lock
5-
.vscode
5+
.vscode
6+
.nyc_output
7+
coverage

.npmignore

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
src
22
.circleci
3+
.travis.yml
4+
renovate.json
5+
.codeclimate.yml
36
dist/test.*

.travis.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
env:
2+
global:
3+
- CC_TEST_REPORTER_ID=2a55fd16af882876f659ea436d6ca3f37f763e73453054d1fca47499ba630581
4+
language: node_js
5+
cache:
6+
directories:
7+
- ~/.npm
8+
notifications:
9+
email: false
10+
node_js:
11+
- '9'
12+
- '8'
13+
before_script:
14+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
15+
- chmod +x ./cc-test-reporter
16+
- ./cc-test-reporter before-build
17+
after_script:
18+
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
19+
after_success:
20+
- npm run semantic-release
21+
branches:
22+
except:
23+
- /^v\d+\.\d+\.\d+$/

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2017 SuperGraph
4+
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:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
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 THE
21+
SOFTWARE.

package.json

+9-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "graphql-static-binding",
3-
"version": "0.3.1",
3+
"version": "0.0.0",
44
"description": "Generate static binding files for a GraphQL schema",
55
"main": "dist/index.js",
66
"typings": "dist/index.d.ts",
77
"scripts": {
88
"prepublish": "npm run build",
9-
"start": "ts-node --inspect src/index.ts",
10-
"build": "rm -rf dist && tsc -d"
9+
"build": "rm -rf dist && tsc -d",
10+
"semantic-release": "semantic-release"
1111
},
1212
"keywords": [
1313
"graphql"
@@ -20,6 +20,11 @@
2020
"devDependencies": {
2121
"@types/node": "8.5.2",
2222
"ts-node": "4.1.0",
23-
"typescript": "2.6.2"
23+
"typescript": "2.6.2",
24+
"semantic-release": "^11.0.2"
25+
},
26+
"repository": {
27+
"type": "git",
28+
"url": "https://github.com/supergraphql/graphql-static-binding.git"
2429
}
2530
}

0 commit comments

Comments
 (0)