* Don't disable chalk when FORCE_COLOR is set
My lint output in Jenkins wasn't colored, which is pretty normal because
a lot of apps when running in Jenkins don't think they have a
color-capable terminal to write to, but I expected that setting the
`FORCE_COLOR` environment variable would work to override this, but I
was surprised to find that it didn't help. Looking at the Nx code, I see
that chalk is turned off whenever `CI` is true, which seems like it
should be refined a bit.
* chore(core): fix code
Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
Previously when the passing through complex parameters nx would alter
the original parameters in the following scenarios:
- When passing through parameters, dot notation parameters would be
parsed and no longer would be passthrough the the following process
correctly ( --cucumberOpts.timeout=10000" would instead be passed as
"--cucumberOpts=[Object]")
- strings with spaces (delimited by quotes) would be rendered as
multiple words instead ('--tags="not @exclude"' would be passed as
'--tags=not @exclude' where '@exclude' no longer is part of the tags
param)
This would that when running nx cli to run a command the final command
would not get the correct parameters
* feat(core): standalone project configuration is default
* chore(core): changes to e2e tests
* fix(core): intuit projects when inside their directories when using project.json files
* chore(core): e2e changes
* fix(core): standalone configurations work with npm-project generator
* chore(core): e2e tests should use standalone configurations
* chore(core): e2e fixes per review
* feat(angular): upgrade Angular to v12.0.0-rc.3
* feat(angular): target Nx v12.4.0-beta.0 for Angular v12.0.0-rc.0 upgrade
* fix(angular): use defaultConfiguration if no other configuration is passed
* cleanup(angular): sync migration folder name to target version
* fix(repo): creating custom schema flattener for docs
* chore(repo): amend yarn.lock
* feat(angular): update angular storybook to use webpack 5
* fix(angular): add legacy peer deps for angular+jest
* fix(angular): move migrations to 12.3.0-rc.0
Co-authored-by: Zack DeRose <zack.derose@gmail.com>
Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
* cleanup(core): normalized usage of fs-extra and updated fs-extra
* cleanup(misc): use fs over fs-extra when possible
Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
Building a project in the node:14-alpine docker image requires the workspace to be copied in
to directory other than /.
The proposed change allows workspaces to be hosted at / and not force the developer to create a directory inside a docker image just to build the project.
Co-authored-by: Stuart Taylor <stuart@chargifi.com>
- Single char alternation (e.g. a|b|c|d) in a RegExp can be simplified to use a character class ([abcd]) instead.
This usually also provides slightly better matching performance.
- Character escapes that are replaceable with the unescaped character without a change in meaning. Inside the square brackets of a character class, many escapes are unnecessary that would be necessary outside of a character class. For example the regex [\.] is identical to [.]
- If several qualified expressions occur after the qualifier having been checked for nullable, they can be replaced with optional chaining