3 const { build } = require( "./tasks/build" );
4 const yargs = require( "yargs/yargs" );
5 const slimExclude = require( "./tasks/lib/slim-exclude" );
7 const argv = yargs( process.argv.slice( 2 ) )
11 describe: "Build a jQuery bundle"
13 .option( "filename", {
17 "Set the filename of the built file. Defaults to jquery.js."
23 "Set the dir to which to output the built file. Defaults to /dist."
29 "Set the version to include in the built file. " +
30 "Defaults to the version in package.json plus the " +
31 "short commit SHA and any excluded modules."
37 "Watch the source files and rebuild when they change."
43 "Modules to exclude from the build. " +
44 "Specifying this option will cause the " +
45 "specified modules to be excluded from the build."
51 "Modules to include in the build. " +
52 "Specifying this option will override the " +
53 "default included modules and only include these modules."
58 "Build an ES module (ESM) bundle. " +
59 "By default, a UMD bundle is built."
64 "Build the factory bundle. " +
65 "By default, a UMD bundle is built."
70 description: "Build a slim bundle, which excludes " +
71 slimExclude.join( ", " )
76 "Set the name of the AMD module. Leave blank to make an anonymous module."