Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 65da67e

Browse files
authored
Merge pull request #51 from aminya/update-deps
Update devDependencies
2 parents 470fc3f + 6a21106 commit 65da67e

6 files changed

Lines changed: 33 additions & 11 deletions

File tree

.npmignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
spec
22
script
33
src
4-
lib
54
.npmignore
65
.DS_Store
76
npm-debug.log

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ notifications:
77
on_failure: change
88

99
node_js:
10-
- 8
10+
- 10
11+
- 12
12+
- 14
1113

1214
git:
1315
depth: 10

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,9 @@ const {Disposable} = require('event-kit')
7474

7575
const disposable = new Disposable(() => this.destroyResource())
7676
```
77+
78+
### Using ES6 Code
79+
You can use the ES6 style classes from `lib` directory.
80+
```
81+
const {Disposable} = require('event-kit/lib/event-kit')
82+
```

appveyor.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
environment:
2-
nodejs_version: "6"
2+
matrix:
3+
- nodejs_version: "10"
4+
- nodejs_version: "12"
5+
- nodejs_version: "14"
36

47
platform:
58
- x64
69
- x86
710

811
install:
12+
- SET PATH=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\bin;%PATH%
913
- ps: Install-Product node $env:nodejs_version
1014
- npm install
1115

babel.config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
let presets = ["babel-preset-atomic"];
2+
3+
let plugins = ["@babel/plugin-transform-classes"] // this is needed so Disposabale can be extended by ES5-style classes
4+
5+
module.exports = {
6+
presets: presets,
7+
plugins: plugins,
8+
exclude: "node_modules/**",
9+
sourceMap: true,
10+
}

package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
"description": "Simple library for implementing and consuming evented APIs",
55
"main": "./dist/event-kit",
66
"scripts": {
7-
"prepublish": "babel lib --out-dir dist --presets @babel/env && joanna-tello -o api.json package.json lib",
7+
"build": "cross-env BABEL_KEEP_MODULES=false babel lib --out-dir dist --delete-dir-on-start",
8+
"docs": "joanna-tello -o api.json package.json lib",
9+
"prepublish": "npm run build && npm run docs",
810
"test": "jasmine-focused --captureExceptions --forceexit spec"
911
},
1012
"repository": {
@@ -16,12 +18,11 @@
1618
},
1719
"license": "MIT",
1820
"devDependencies": {
19-
"@babel/cli": "^7.1.2",
20-
"@babel/core": "^7.1.2",
21-
"@babel/preset-env": "^7.1.0",
22-
"jasmine-focused": "^1.0.4",
23-
"joanna": "0.0.11",
24-
"rimraf": "^2.2.2",
25-
"temp": "^0.6.0"
21+
"@babel/cli": "^7.12.10",
22+
"@babel/core": "^7.12.10",
23+
"babel-preset-atomic": "^3.0.1",
24+
"cross-env": "^7.0.3",
25+
"jasmine-focused": "^1.0.7",
26+
"joanna": "https://github.com/aminya/joanna"
2627
}
2728
}

0 commit comments

Comments
 (0)