m3u8-parser/scripts/m3u8.js
Gary Katsevman 47ef11f890 feat: Rollup (#24)
Update to use Rollup to generate the main and umd files.

BREAKING CHANGE: drop bower support.
2017-06-09 14:00:51 -04:00

22 lines
363 B
JavaScript

'use strict';
const m3u8 = require('./export-m3u8s.js');
const args = require('minimist')(process.argv.slice(2), {
boolean: ['watch', 'clean', 'build'],
default: {
build: true
},
alias: {
b: 'build',
c: 'clean',
w: 'watch'
}
});
if (args.w) {
m3u8.watch();
} else if (args.c) {
m3u8.clean();
} else if (args.b) {
m3u8.build();
}