Skip to content
This repository has been archived by the owner on Dec 25, 2021. It is now read-only.

Commit

Permalink
build(babel): fix build and remove unused deps
Browse files Browse the repository at this point in the history
use correct babelrc now that the library doesn't polyfill for older node versions and old browsers
  • Loading branch information
alivenotions committed Dec 12, 2019
1 parent 597374f commit a32518a
Show file tree
Hide file tree
Showing 3 changed files with 1,254 additions and 165 deletions.
16 changes: 9 additions & 7 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{
"presets": [
"@babel/preset-env"
],
"plugins": [
"@babel/plugin-proposal-async-generator-functions"
]
}
"env": {
"production": {
"presets": ["@babel/preset-env"]
},
"test": {
"plugins": ["@babel/plugin-transform-modules-commonjs"]
}
}
}
10 changes: 4 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"main": "dist/index.js",
"scripts": {
"prebuild": "rimraf dist",
"build": "npm-run-all build:*",
"build": "NODE_ENV=production npm-run-all build:*",
"build:main": "babel src --out-dir dist --ignore src/*.test.js",
"build:umd": "webpack --output-filename poll.umd.js -d",
"build:umd.min": "webpack --output-filename poll.umd.min.js -p",
"commit": "git cz",
"test": "mocha --require @babel/register src/*.test.js ",
"test": "jest src/*.test.js",
"test:watch": "npm t -- -w",
"semantic-release": "semantic-release",
"travis-deploy-once": "travis-deploy-once",
Expand Down Expand Up @@ -39,14 +39,12 @@
"homepage": "https://github.com/alivenotions/simple-poll#readme",
"devDependencies": {
"@babel/cli": "7.1.5",
"@babel/plugin-proposal-async-generator-functions": "7.1.0",
"@babel/plugin-transform-modules-commonjs": "7.7.5",
"@babel/preset-env": "7.1.5",
"@babel/register": "7.0.0",
"babel-loader": "8.0.4",
"chai": "4.2.0",
"commitizen": "3.0.5",
"cz-conventional-changelog": "2.1.0",
"mocha": "5.2.0",
"jest": "24.9.0",
"node-fetch": "2.2.0",
"npm-run-all": "4.1.5",
"nyc": "13.3.0",
Expand Down
Loading

0 comments on commit a32518a

Please sign in to comment.