Skip to content

Commit

Permalink
feat: split build into production and development
Browse files Browse the repository at this point in the history
Closes #26
  • Loading branch information
Ilya_Kuznetsov authored and Ilya_Kuznetsov committed Oct 10, 2018
1 parent fb5765f commit d3e20b2
Show file tree
Hide file tree
Showing 17 changed files with 392 additions and 179 deletions.
6 changes: 0 additions & 6 deletions .eslintrc

This file was deleted.

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.vscode
/node_modules
/lib
/build
/coverage
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ install:
- npm install react-dom@$REACT_VERSION --save-dev

script:
- npm test
- npm run build
- npm run docs

after_success:
- cat ./coverage/lcov.info | ./node_modules/codecov/bin/codecov
Expand Down
7 changes: 7 additions & 0 deletions npm/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
'use strict'

if (process.env.NODE_ENV === 'production') {
module.exports = require('./cjs/react-async-call.production.min.js')
} else {
module.exports = require('./cjs/react-async-call.development.js')
}
195 changes: 124 additions & 71 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d3e20b2

Please sign in to comment.