1 | Bublé version <%= version %>
|
2 | =====================================
|
3 |
|
4 | Usage: buble [options] <entry file>
|
5 |
|
6 | Basic options:
|
7 |
|
8 | -v, --version Show version number
|
9 | -h, --help Show this help message
|
10 | -i, --input Input (alternative to <entry file>)
|
11 | -o, --output <output> Output (if absent, prints to stdout)
|
12 | -m, --sourcemap Generate sourcemap (`-m inline` for inline map)
|
13 | -t, --target Select compilation targets
|
14 | -y, --yes Transforms to always apply (overrides --target)
|
15 | -n, --no Transforms to always skip (overrides --target)
|
16 | --jsx Custom JSX pragma
|
17 | --objectAssign Specify Object.assign or equivalent polyfill
|
18 | --no-named-function-expr Don't output named function expressions
|
19 |
|
20 | Examples:
|
21 |
|
22 | # Compile input.js to output.js
|
23 | buble input.js > output.js
|
24 |
|
25 | # Compile input.js to output.js, write sourcemap to output.js.map
|
26 | buble input.js -o output.js -m
|
27 |
|
28 | # Compile input.js to output.js with inline sourcemap
|
29 | buble input.js -o output.js -m inline
|
30 |
|
31 | # Only use transforms necessary for output.js to run in FF43 and Node 5
|
32 | buble input.js -o output.js -t firefox:43,node:5
|
33 |
|
34 | # As above, but use arrow function and destructuring transforms
|
35 | buble input.js -o output.js -t firefox:43,node:5 -y arrow,destructuring
|
36 |
|
37 | # Compile all the files in src/ to dest/
|
38 | buble src -o dest
|
39 |
|
40 | Notes:
|
41 |
|
42 | * When piping to stdout, only inline sourcemaps are permitted
|
43 |
|
44 | For more information visit http://buble.surge.sh/guide
|