Skip to content

Commit cba85de

Browse files
committed
fix(Travis): Fix travis
1 parent 23836f4 commit cba85de

10 files changed

+157
-260
lines changed

.gitignore

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@ pids
1111
# Directory for instrumented libs generated by jscoverage/JSCover
1212
lib-cov
1313

14-
# Coverage directory used by tools like istanbul
15-
coverage
16-
17-
# nyc test coverage
18-
.nyc_output
1914

2015
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
2116
.grunt
@@ -26,12 +21,26 @@ coverage
2621
# Compiled binary addons (http://nodejs.org/api/addons.html)
2722
build/Release
2823

29-
# Dependency directories
24+
# IntelliJ Files
25+
*.iml
26+
*.ipr
27+
*.iws
28+
/out/
29+
.idea/
30+
.idea_modules/
31+
32+
# Dependency directory
3033
node_modules
31-
jspm_packages
3234

3335
# Optional npm cache directory
3436
.npm
3537

3638
# Optional REPL history
3739
.node_repl_history
40+
41+
# Transpiled code
42+
/es
43+
/lib
44+
45+
coverage
46+
.nyc_output

.travis.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
sudo: false
2+
language: node_js
3+
services:
4+
- mongodb
5+
addons:
6+
apt:
7+
sources:
8+
- mongodb-3.0-precise
9+
packages:
10+
- mongodb-org-server
11+
cache:
12+
yarn: true
13+
directories:
14+
- node_modules
15+
notifications:
16+
email: false
17+
node_js:
18+
- '7'
19+
- '6'
20+
- '4'
21+
script:
22+
- yarn run coverage
23+
- yarn run build
24+
after_success:
25+
- npm run semantic-release
26+
branches:
27+
except:
28+
- /^v\d+\.\d+\.\d+$/

lib/composeWithDataLoader.js

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

lib/definitions.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

lib/index.js

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

lib/singleContinous.js

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

package.json

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
{
22
"name": "graphql-compose-dataloader",
3-
"version": "0.0.1",
3+
"version": "0.0.0-development",
44
"description": "Add DataLoader to graphql-composer resolvers.",
55
"main": "lib/index.js",
66
"jsnext:main": "es/index.js",
77
"scripts": {
88
"build": "npm run build-cjs && npm run build-es",
99
"build-cjs": "rimraf lib && babel src --ignore __tests__,__mocks__ -d lib",
10-
"build-es": "rimraf es && BABEL_ENV=es babel src --ignore __tests__,__mocks__ -d es",
10+
"build-es": "rimraf es && cross-env BABEL_ENV=es babel src --ignore __tests__,__mocks__ -d es",
11+
"coverage": "nyc npm run test",
1112
"link": "yarn link graphql-compose && yarn link",
1213
"unlink": "yarn unlink graphql-compose && yarn add graphql-compose",
13-
"test": "echo \"Error: no test specified\" && exit 1"
14+
"test": "mocha --compilers js:babel-core/register --reporter dot --timeout 20000 src/**/__tests__/**/*-test.js",
15+
"prepublish": "npm run build",
16+
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
1417
},
1518
"keywords": [
1619
"graphql",
@@ -22,7 +25,7 @@
2225
],
2326
"repository": {
2427
"type": "git",
25-
"url": "git+https://github.com/stoffern/graphql-compose-dataloader.git"
28+
"url": "https://github.com/stoffern/graphql-compose-dataloader.git"
2629
},
2730
"author": "stoffern",
2831
"license": "MIT",
@@ -49,10 +52,14 @@
4952
"babel-plugin-transform-regenerator": "^6.22.0",
5053
"babel-plugin-transform-runtime": "^6.22.0",
5154
"babel-preset-es2015": "^6.22.0",
55+
"chai": "^3.5.0",
56+
"cross-env": "^3.1.4",
57+
"cz-conventional-changelog": "^1.2.0",
5258
"graphql-compose": "^1.10.0",
59+
"mocha": "^3.2.0",
5360
"nyc": "^10.1.2",
54-
"rimraf": "2.5.4",
55-
"cz-conventional-changelog": "^1.2.0"
61+
"rimraf": "^2.5.4",
62+
"semantic-release": "^6.3.2"
5663
},
5764
"config": {
5865
"commitizen": {

0 commit comments

Comments
 (0)