1
1
mirror of https://github.com/primer/css.git synced 2024-11-23 11:27:26 +03:00
css/script/sync
2019-02-04 12:55:18 -08:00

22 lines
452 B
JavaScript
Executable File

#!/usr/bin/env node
const sync = require('../lib/sync')
const args = process.argv.slice(2)
const options = {
debug: !args.includes('--quiet'),
watch: args.includes('--watch')
}
sync(options)
.then(files => {
const built = Object.keys(files)
console.warn(`built ${built.length} files:`)
for (const file of built) {
console.warn(`- ${file}`)
}
})
.catch(error => {
console.error(error)
process.exitCode = 1
})