Skip to content

Commit fcd7158

Browse files
authored
Merge pull request #45 from Quramy/remove-gulp-mocha
remove gulp and mocha
2 parents 3941e6f + 4fef24e commit fcd7158

File tree

7 files changed

+2491
-907
lines changed

7 files changed

+2491
-907
lines changed

.babelrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"presets": [
3+
["env", {
4+
"targets": {
5+
"node": "6.10"
6+
}
7+
}]
8+
]
9+
}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ example/bundle.css
77
*.swp
88
*.swo
99
lib/
10+
coverage/

.travis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ language: node_js
88
node_js:
99
- 6
1010
- 8
11+
- 9
12+
13+
before_script:
14+
- yarn install --frozen-lockfile
15+
16+
script:
17+
- yarn test:ci
18+
1119
deploy:
1220
provider: npm
1321
email: yosuke.kurami@gmail.com

gulpfile.js

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

package.json

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
"description": "Creates .d.ts files from CSS Modules .css files",
55
"main": "index.js",
66
"scripts": {
7-
"build": "gulp compile",
8-
"watch": "gulp watch",
9-
"test": "npm run build && gulp test",
7+
"build": "babel -d lib src",
8+
"test": "jest",
9+
"test:watch": "jest --watch",
10+
"test:ci": "jest --coverage",
1011
"prepublish": "npm run build"
1112
},
1213
"bin": {
@@ -33,12 +34,14 @@
3334
"yargs": "^8.0.2"
3435
},
3536
"devDependencies": {
36-
"assert": "^1.3.0",
37-
"babel-core": "^6.25.0",
38-
"babel-preset-es2015": "^6.24.1",
39-
"gulp": "^3.9.0",
40-
"gulp-babel": "^7.0.0",
41-
"gulp-mocha": "^4.3.1",
42-
"gulp-plumber": "^1.0.1"
37+
"babel-cli": "^6.26.0",
38+
"babel-core": "^6.26.0",
39+
"babel-env": "^2.4.1",
40+
"babel-jest": "^22.4.3",
41+
"jest": "^22.4.3",
42+
"regenerator-runtime": "^0.11.1"
43+
},
44+
"jest": {
45+
"transform": {}
4346
}
4447
}

src/cli.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/usr/bin/env node
22

3-
'use strict';
4-
53
import path from 'path';
64
import chokidar from 'chokidar';
75
import glob from 'glob';

0 commit comments

Comments
 (0)