Skip to content

Commit

Permalink
Add Babel to compile ES 2015 features
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Burtchaell committed Dec 31, 2017
1 parent 8bfaa89 commit 668e4a4
Show file tree
Hide file tree
Showing 7 changed files with 518 additions and 10 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["env"]
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules/
dist/
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
src/
.babelrc
.npmignore
.gitignore
.travis.yml
index.spec.js
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
"name": "shader",
"version": "1.0.0",
"description": "Create a darker or lighter shade of a hex color.",
"main": "index.js",
"main": "dist/index.js",
"scripts": {
"build": "rm -rf dist && mkdir dist && `npm bin`/babel src/index.js -o dist/index.js",
"prebuild": "echo 'Running prebuild tests...' && npm test",
"test": "`npm bin`/jest",
"precommit": "echo 'Running pre-commit hooks...' && npm run test"
},
Expand Down Expand Up @@ -33,6 +35,8 @@
"url": "https://github.com/pburtchaell/shader/issues"
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-preset-env": "^1.6.1",
"jest": "^22.0.4",
"pre-commit": "^1.2.2"
}
Expand Down
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 668e4a4

Please sign in to comment.