Command Line Options
Table of contents
- Bundle Analyzer
- Clean
- Config
- ESLint Validation
- Maven
- Mode: Development
- Mode: Production
- Project
- Stylelint Validation
- Watch (Dev Server)
- Other Commands
Being able to toggle things on/off is important in any application and we have baked in some useful ones to get up and running as-fast-as-possible.
yargs is used under the hood so you can do cool things like --no-eslint for example which will invert the boolean value to false instead of true.
Bundle Analyzer
Visualize size of webpack output files with an interactive zoomable treemap.
| Argument | Type | Default Value |
|---|---|---|
--analyzer |
Boolean |
false |
See: github.com
Clean
Should the public directory for the specified project be cleaned?
| Argument | Type | Default Value |
|---|---|---|
--clean |
Boolean |
true |
Config
File name for the compose configuration.
| Argument | Type | Default Value |
|---|---|---|
--config <file name> |
String |
compose.config.js |
ESLint Validation
New
Runs JavaScript validation against the input source (src/<project>/js) using your .eslintrc file.
| Argument | Type | Default Value |
|---|---|---|
--eslint |
Boolean |
true |
See: github.com
Maven
When enabled, some internal cogs are switched so certain things don’t happen as they would when running a regular build.
| Argument | Type | Default Value |
|---|---|---|
--maven |
Boolean |
false |
Mode: Development
Run the build in development mode.
| Argument | Type | Default Value |
|---|---|---|
--dev or -d |
Boolean |
false |
NOTE: Running this flag along with the production flag will yield unexpected results.
Mode: Production
Run the build in production mode.
| Argument | Type | Default Value |
|---|---|---|
--prod or -p |
Boolean |
false |
NOTE: Running this flag along with the development flag will yield unexpected results.
Project
Required
Define which project you would like to build.
| Argument | Type | Default Value |
|---|---|---|
--project |
String |
Stylelint Validation
New
Runs Sass/CSS validation against the input source (src/<project>/scss) using your .stylelintrc file.
| Argument | Type | Default Value |
|---|---|---|
--stylelint |
Boolean |
true |
See: github.com
Watch (Dev Server)
Enable the webpack-dev-server as a proxy between your local source code and AEM.
| Argument | Type | Default Value |
|---|---|---|
--watch |
Boolean |
false |
See: webpack.js.org
Other Commands
| Argument | Description |
|---|---|
--help or -h |
Show help for the command line options |
--version or -v |
Show the version of aemdesign-compose binary |