mirror of
https://github.com/primer/css.git
synced 2024-12-02 07:53:06 +03:00
22 lines
452 B
Plaintext
22 lines
452 B
Plaintext
|
#!/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
|
||
|
})
|