Skip to content

Commit

Permalink
Babel should compile ecma6 to "normal" JS before publishing the npm p…
Browse files Browse the repository at this point in the history
…ackage.
  • Loading branch information
hfreire committed Sep 23, 2016
1 parent f8b795b commit 09df41d
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["es2015"]
}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ node_modules
# Optional REPL history
.node_repl_history

bin
lib

.idea
*.iml
*.retry
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "virtualkanelbulle-oven",
"version": "1.0.1",
"version": "1.0.2",
"description": "",
"main": "lib/index.js",
"repository": {
Expand All @@ -23,13 +23,18 @@
},
"scripts": {
"start": "node lib/index.js",
"test": "node_modules/.bin/eslint ."
"test": "node_modules/.bin/eslint src",
"clean": "rm -rf {bin,lib}",
"compile": "mkdir -p {bin,lib} && ./node_modules/.bin/babel -o bin/virtualkanelbulle-oven.js src/index.js && ./node_modules/.bin/babel -o lib/index.js src/virtualkanelbulle-oven.js",
"prepublish": "npm run compile"
},
"bin": {
"virtualkanelbulle-oven": "./bin/virtualkanelbulle-oven.js"
},
"devDependencies": {
"babel-cli": "^6.14.0",
"babel-eslint": "^6.1.2",
"babel-preset-es2015": "^6.14.0",
"eslint": "^3.5.0",
"eslint-config-standard": "^6.0.1",
"standard": "^8.1.0"
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 09df41d

Please sign in to comment.