Skip to content

Commit

Permalink
add compile script
Browse files Browse the repository at this point in the history
  • Loading branch information
staylor committed Jan 2, 2018
1 parent 14bc312 commit f4224ad
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
es
lib
node_modules
6 changes: 6 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.babelrc
.eslintrc.json
jest.setup.js
node_modules
src
__tests__
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@
"react-dom": "^16.2.0"
},
"scripts": {
"test": "jest"
"test": "jest",
"compile": "npm run compile:commonjs && npm run compile:es",
"compile:commonjs": "babel src --out-dir lib",
"compile:es": "babel src --out-dir es",
"prepublish": "npm run compile"
},
"jest": {
"setupTestFrameworkScriptFile": "<rootDir>/jest.setup.js",
Expand Down

0 comments on commit f4224ad

Please sign in to comment.