|
12 | 12 | "prepublish": "npm run lint && npm run test && npm run compile", |
13 | 13 | "lint": "eslint 'src/**/*.js' 'test/*.js'", |
14 | 14 | "lint:fix": "npm run lint -- --fix", |
15 | | - "test": "nyc --reporter=html --reporter=text mocha --require babel-polyfill test/setup.js --sort 'src/**/*.spec.js' --compilers js:babel-core/register --timeout 30000", |
| 15 | + "test": "nyc --reporter=html --reporter=text mocha test/setup.js --sort 'src/**/*.spec.js' --compilers js:babel-core/register --timeout 30000", |
16 | 16 | "test:watch": "npm run test -- --watch", |
17 | 17 | "doc": "DEBUG=gulp-jsdoc3 gulp doc" |
18 | 18 | }, |
|
41 | 41 | }, |
42 | 42 | "homepage": "https://github.com/gerardobort/node-corenlp#readme", |
43 | 43 | "runkitExampleFilename": "examples/runkit.js", |
| 44 | + "engines": { |
| 45 | + "node": ">= 6" |
| 46 | + }, |
44 | 47 | "babel": { |
45 | 48 | "plugins": [ |
46 | | - "transform-object-rest-spread" |
| 49 | + "transform-object-rest-spread", |
| 50 | + [ |
| 51 | + "fast-async", |
| 52 | + { |
| 53 | + "spec": true |
| 54 | + } |
| 55 | + ] |
47 | 56 | ], |
48 | 57 | "presets": [ |
49 | | - "es2015", |
50 | | - "es2017" |
| 58 | + [ |
| 59 | + "env", |
| 60 | + { |
| 61 | + "targets": { |
| 62 | + "node": "6" |
| 63 | + }, |
| 64 | + "exclude": [ |
| 65 | + "transform-regenerator" |
| 66 | + ] |
| 67 | + } |
| 68 | + ] |
51 | 69 | ] |
52 | 70 | }, |
53 | 71 | "devDependencies": { |
54 | 72 | "babel-core": "^6.25.0", |
55 | 73 | "babel-plugin-transform-object-rest-spread": "^6.26.0", |
56 | | - "babel-polyfill": "^6.23.0", |
57 | | - "babel-preset-env": "^1.6.0", |
58 | | - "babel-preset-es2015": "^6.24.1", |
59 | | - "babel-preset-es2017": "^6.24.1", |
| 74 | + "babel-preset-env": "^1.6.1", |
60 | 75 | "chai": "^4.1.1", |
61 | 76 | "cz-conventional-changelog": "^2.0.0", |
62 | 77 | "docdash": "^0.4.0", |
63 | 78 | "eslint": "^4.5.0", |
64 | 79 | "eslint-config-airbnb-base": "^11.3.1", |
65 | 80 | "eslint-plugin-import": "^2.7.0", |
| 81 | + "fast-async": "^6.3.0", |
66 | 82 | "gulp": "^3.9.1", |
67 | 83 | "gulp-babel": "^7.0.0", |
68 | 84 | "gulp-clean": "^0.3.2", |
|
0 commit comments