UNPKG

292 BPlain TextView Raw
1#!/usr/bin/env node
2var startServer = require('../lib').server;
3var build = require('../lib').build;
4const path = require('path');
5
6if (process.argv[2] ==="build"){
7 build(path.resolve(process.argv[3] || process.cwd()))
8}
9else{
10 startServer(path.resolve(process.argv[2] || process.cwd()))
11}
\No newline at end of file