This repository was archived by the owner on Dec 15, 2022. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11spec
22script
33src
4- lib
54.npmignore
65.DS_Store
76npm-debug.log
Original file line number Diff line number Diff line change @@ -7,7 +7,9 @@ notifications:
77 on_failure : change
88
99node_js :
10- - 8
10+ - 10
11+ - 12
12+ - 14
1113
1214git :
1315 depth : 10
Original file line number Diff line number Diff line change @@ -74,3 +74,9 @@ const {Disposable} = require('event-kit')
7474
7575const 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+ ` ` `
Original file line number Diff line number Diff line change 11environment :
2- nodejs_version : " 6"
2+ matrix :
3+ - nodejs_version : " 10"
4+ - nodejs_version : " 12"
5+ - nodejs_version : " 14"
36
47platform :
58 - x64
69 - x86
710
811install :
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
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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" : {
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}
You can’t perform that action at this time.
0 commit comments