Skip to content

Commit

Permalink
Merge pull request #108 from taion/remove-es
Browse files Browse the repository at this point in the history
Remove ES module build
  • Loading branch information
taion authored Nov 5, 2016
2 parents aee5f24 + 52d0f43 commit 927fc2d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 34 deletions.
9 changes: 4 additions & 5 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
{
"presets": [
"./tools/latestPreset",
["latest", {
"es2015": { "loose": true }
}],
"stage-2"
],
"plugins": ["dev-expression"],
"plugins": ["dev-expression", "add-module-exports"],

"env": {
"cjs": {
"plugins": ["add-module-exports"]
},
"test": {
"plugins": ["istanbul"]
}
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,4 @@ build/Release
node_modules

# Transpiled code
/es
/lib
9 changes: 2 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,12 @@
"version": "0.9.0",
"description": "Pluggable browser scroll management",
"files": [
"es",
"lib"
],
"main": "lib/index.js",
"module": "es/index.js",
"jsnext:main": "es/index.js",
"scripts": {
"build": "npm run build-cjs && npm run build-es",
"build-cjs": "rimraf lib && cross-env BABEL_ENV=cjs babel src -d lib",
"build-es": "rimraf es && cross-env BABEL_ENV=es babel src -d es",
"lint": "eslint src test tools *.js",
"build": "rimraf lib && babel src -d lib",
"lint": "eslint src test *.js",
"prepublish": "npm run build",
"tdd": "cross-env NODE_ENV=test karma start",
"test": "npm run lint && npm run testonly",
Expand Down
7 changes: 0 additions & 7 deletions tools/.eslintrc

This file was deleted.

14 changes: 0 additions & 14 deletions tools/latestPreset.js

This file was deleted.

0 comments on commit 927fc2d

Please sign in to comment.