mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-25 01:45:15 +00:00
33 lines
853 B
JavaScript
33 lines
853 B
JavaScript
const npsUtils = require('nps-utils');
|
|
const series = npsUtils.series;
|
|
const rimraf = npsUtils.rimraf;
|
|
const concurrent = npsUtils.concurrent;
|
|
|
|
module.exports = {
|
|
scripts: {
|
|
build: {
|
|
description: 'clean dist directory and run all builds',
|
|
default: series(
|
|
rimraf('dist'),
|
|
rimraf('lib'),
|
|
concurrent.nps('build.rollup', 'build.babel')
|
|
),
|
|
rollup: 'rollup --config',
|
|
babel: 'babel src -d lib',
|
|
},
|
|
examples: {
|
|
default: series(
|
|
rimraf('examples/dist'),
|
|
'mkdir examples/dist',
|
|
concurrent.nps('examples.webpack', 'examples.standalone'),
|
|
'cp examples/src/.gitignore examples/dist/.gitignore'
|
|
),
|
|
webpack: 'webpack --progress -p',
|
|
standalone: series(
|
|
'cp examples/src/standalone.html examples/dist/standalone.html',
|
|
'lessc examples/src/example.less examples/dist/example.css'
|
|
),
|
|
},
|
|
},
|
|
};
|