Skip to content

Commit

Permalink
build: update dev config
Browse files Browse the repository at this point in the history
  • Loading branch information
oct16 committed Mar 12, 2020
1 parent 41601a9 commit 6aa9d4e
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions scripts/dev.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,8 @@
const execa = require('execa')
const args = require('minimist')(process.argv.slice(2))
const formats = args.formats || args.f
const commit = execa.sync('git', ['rev-parse', 'HEAD']).stdout.slice(0, 7)

execa(
'rollup',
[
'-c',
'rollup.config.dev.js',
'-w',
'--environment',
[`COMMIT:${commit}`, `FORMATS:${formats || 'global'}`, 'SOURCE_MAP:true'].filter(Boolean).join(',')
],
['-c', 'rollup.config.dev.js', '-w', '--environment', ['FORMATS:umd', 'SOURCE_MAP:true'].filter(Boolean).join(',')],
{
stdio: 'inherit'
}
Expand Down

0 comments on commit 6aa9d4e

Please sign in to comment.