Files: 4c58f1c6c3ddb86a97f27f0c84681d201ef1f75f / lib / help.js
1391 bytesRaw
1 | import chalk from 'chalk'; |
2 | |
3 | export default function help () { |
4 | console.log(` |
5 | ${chalk.bold('pkg')} [options] <input> |
6 | |
7 | ${chalk.dim('Options:')} |
8 | |
9 | -h, --help output usage information |
10 | -v, --version output pkg version |
11 | -t, --targets comma-separated list of targets (see examples) |
12 | -c, --config package.json or any json file with top-level config |
13 | --options bake v8 options into executable to run with them on |
14 | -o, --output output file name |
15 | -d, --debug show more information during packaging process [off] |
16 | -b, --build don't download prebuilt base binaries, build them |
17 | --public speed up and disclose the sources of top-level project |
18 | --bin-name name of binary to install |
19 | |
20 | ${chalk.dim('Examples:')} |
21 | |
22 | ${chalk.gray('–')} Makes executables for Linux, macOS and Windows |
23 | ${chalk.cyan('$ pkg index.js')} |
24 | ${chalk.gray('–')} Takes package.json from cwd and follows 'bin' entry |
25 | ${chalk.cyan('$ pkg .')} |
26 | ${chalk.gray('–')} Makes executable for particular target machine |
27 | ${chalk.cyan('$ pkg -t node6-alpine-x64 index.js')} |
28 | ${chalk.gray('–')} Makes executables for target machines of your choice |
29 | ${chalk.cyan('$ pkg -t node4-linux,node6-linux,node6-win index.js')} |
30 | ${chalk.gray('–')} Bakes '--expose-gc' into executable |
31 | ${chalk.cyan('$ pkg --options expose-gc index.js')} |
32 | |
33 | `); |
34 | } |
35 |
Built with git-ssb-web