Rush options. (#315)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev 2021-11-17 20:45:45 +07:00 committed by GitHub
parent 99ddd486a7
commit 60bc9a336c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 1 deletions

View File

@ -166,6 +166,16 @@
// */
// // "autoinstallerName": "my-task"
// }
{
"commandKind": "bulk",
"name": "lint:fix",
"summary": "Lint&Fix",
"description": "Lint and autofix linting issues",
"enableParallelism": true,
"incremental": true,
"ignoreDependencyOrder": false,
"ignoreMissingScript": true
},
{
"commandKind": "bulk",
"name": "build:watch",
@ -183,6 +193,13 @@
* For example, you might define a "--production" parameter for the "rush build" command.
*/
"parameters": [
{
"parameterKind": "flag",
"longName": "--lite",
"shortName": "-l",
"description": "Enable Heft lite building option, will skip some phases.",
"associatedCommands": ["build", "rebuild"]
},
// {
// /**
// * (Required) Determines the type of custom parameter.

View File

@ -3,7 +3,7 @@
"version": "1.0.1",
"license": "EPL-2.0",
"scripts": {
"build": "cross-env NODE_ENV=production webpack --stats-error-details",
"build": "cross-env NODE_ENV=production webpack --stats-error-details && echo 'done'",
"analyze": "cross-env NODE_ENV=production webpack --json > stats.json",
"show": "webpack-bundle-analyzer stats.json dist",
"dev": "cross-env webpack serve --content-base public",