File tree Expand file tree Collapse file tree 4 files changed +419
-397
lines changed Expand file tree Collapse file tree 4 files changed +419
-397
lines changed Original file line number Diff line number Diff line change @@ -4,3 +4,4 @@ node_modules
4
4
* .log
5
5
6
6
test /tmp
7
+ lib
Original file line number Diff line number Diff line change
1
+ node_modules
2
+ .DS_Store
3
+
4
+ * .log
5
+
6
+ test /tmp
Original file line number Diff line number Diff line change 6
6
" zlib" ,
7
7
" browserify"
8
8
],
9
- "main" : " src /index.js" ,
9
+ "main" : " lib /index.js" ,
10
10
"directories" : {
11
11
"test" : " test"
12
12
},
13
13
"dependencies" : {
14
14
"pako" : " ~1.0.1"
15
15
},
16
16
"devDependencies" : {
17
+ "babel-cli" : " ^6.11.4" ,
18
+ "babel-preset-es2015" : " ^6.13.2" ,
17
19
"brfs" : " ^1.0.1" ,
18
20
"karma" : " ^1.1.0" ,
19
21
"karma-browserify" : " ^5.0.3" ,
28
30
"watchify" : " ^3.7.0"
29
31
},
30
32
"scripts" : {
31
- "lint" : " standard" ,
33
+ "build" : " babel src --out-dir lib" ,
34
+ "lint" : " standard \" src/binding.js\" \" test/**/*.js\" " ,
35
+ "pretest" : " npm run build" ,
32
36
"test" : " npm run test:node && npm run test:browser" ,
33
37
"test:browser" : " karma start --single-run=true karma.conf.js" ,
34
38
"test:node" : " mocha test/test-*"
35
39
},
40
+ "babel" : {
41
+ "presets" : [
42
+ " es2015"
43
+ ]
44
+ },
36
45
"author" :
" Devon Govett <[email protected] >" ,
37
46
"license" : " MIT" ,
38
47
"repository" : {
You can’t perform that action at this time.
0 commit comments