1 |
|
2 |
|
3 |
|
4 |
|
5 | var help = [
|
6 | 'USE: build',
|
7 | 'see https://github.com/bahmutov/compiled for help'
|
8 | ].join('\n')
|
9 |
|
10 | require('simple-bin-help')({
|
11 | minArguments: 2,
|
12 | packagePath: __dirname + '/../package.json',
|
13 | help: help
|
14 | })
|
15 |
|
16 | var build = require('..').build
|
17 |
|
18 | build()
|
19 | .catch(function (err) {
|
20 | console.error('problem building bundles')
|
21 | console.error(err.message)
|
22 | console.error(err.stack)
|
23 | process.exit(-1)
|
24 | })
|