UNPKG

671 BJavaScriptView Raw
1#!/usr/bin/env node
2'use strict'
3
4const {command, start} = require('sergeant')('css')
5const action = require('./index')
6
7command({
8 signature: ['input', 'output'],
9 options: {
10 watch: {
11 description: 'watch for changes'
12 },
13 w: 'watch',
14 input: {
15 description: 'what the input js file is named',
16 required: true,
17 parameter: true
18 },
19 i: 'input',
20 output: {
21 description: 'what the output css and js files will be named without extension',
22 required: true,
23 parameter: true
24 },
25 o: 'output',
26 dev: {
27 description: 'run in dev mode'
28 },
29 d: 'dev'
30 },
31 action
32})
33
34start(process.argv.slice(2))