Skip to content

Commit

Permalink
Simplify build using rollup-plugin-buble, rm temp build dir (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
briancavalier committed Jul 11, 2016
1 parent 008b3b9 commit e68d1d8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.idea/
experiments/
node_modules/
build/
coverage/
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@
"async"
],
"scripts": {
"compile": "npm run compile-src",
"compile-src": "mkdirp build/src && buble -m -i src -o build/src --no modules",
"build-dist": "npm run compile && mkdirp dist && rollup -c",
"build-dist": "mkdirp dist && rollup -c",
"build": "npm run build-dist && uglifyjs -c 'warnings=false' -m -o dist/creed.min.js -- dist/creed.js",
"preversion": "npm run build",
"check-coverage": "istanbul check-coverage --statements 100 --branches 100 --lines 100 --functions 100 coverage/coverage*.json",
Expand Down
4 changes: 3 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import buble from 'rollup-plugin-buble'
const pkg = require('./package.json')

export default {
entry: 'build/src/main.js',
entry: 'src/main.js',
plugins: [buble()],
targets: [
{
format: 'umd',
Expand Down

0 comments on commit e68d1d8

Please sign in to comment.