1
1
mirror of https://github.com/primer/css.git synced 2024-11-24 13:15:00 +03:00
css/docs/script/sync
2018-12-17 15:26:50 -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
})