Skip to content

Commit

Permalink
use babel-cli to build src/ into lib/ for npm distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
brandly committed Dec 6, 2016
1 parent 4f36ff9 commit 56e7e00
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
node_modules
npm-debug.log
_book
lib/

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
"name": "react-inky",
"version": "0.1.0",
"description": "React components for Inky",
"main": "index.js",
"main": "lib/index.js",
"scripts": {
"build": "babel src/ -d lib/",
"docs:build": "gitbook build",
"docs:serve": "gitbook serve",
"test": "mocha --compilers js:babel-register \"src/**/__tests__/*.js\""
"test": "mocha --compilers js:babel-register \"src/**/__tests__/*.js\"",
"prepublish": "npm run build"
},
"repository": {
"type": "git",
Expand All @@ -29,6 +31,7 @@
"react-attrs-filter": "^0.1.2"
},
"devDependencies": {
"babel-cli": "6.18.0",
"babel-preset-latest": "^6.14.0",
"babel-preset-react": "^6.11.1",
"babel-register": "^6.14.0",
Expand Down

0 comments on commit 56e7e00

Please sign in to comment.