1 import yargs from "yargs/yargs";
2 import { build } from "./tasks/build.js";
3 import slimExclude from "./tasks/lib/slim-exclude.js";
5 const argv = yargs( process.argv.slice( 2 ) )
9 describe: "Build a jQuery bundle"
11 .option( "filename", {
15 "Set the filename of the built file. Defaults to jquery.js."
21 "Set the dir to which to output the built file. Defaults to /dist."
27 "Set the version to include in the built file. " +
28 "Defaults to the version in package.json plus the " +
29 "short commit SHA and any excluded modules."
35 "Watch the source files and rebuild when they change."
41 "Modules to exclude from the build. " +
42 "Specifying this option will cause the " +
43 "specified modules to be excluded from the build."
49 "Modules to include in the build. " +
50 "Specifying this option will override the " +
51 "default included modules and only include these modules."
56 "Build an ES module (ESM) bundle. " +
57 "By default, a UMD bundle is built."
62 "Build the factory bundle. " +
63 "By default, a UMD bundle is built."
68 description: "Build a slim bundle, which excludes " +
69 slimExclude.join( ", " )
74 "Set the name of the AMD module. Leave blank to make an anonymous module."