* fix(misc): rename format option to `libs-and-apps`
* fix(misc): format only workspace projects with `apps-and-libs`
Retrieving and npm project dependecies is throwing exception when trying to read the `root` of the projects, causing a fallback to all files.
* fix(misc): allow --js flag to be passed to @nrwl/web:lib schematic
creates js files instead of ts files
s
ISSUES CLOSED: #2985
* fix(misc): add tests for --js flag in workspace
* feat(angular): add an option to add strict type checking
Adding support for strict type checking to Angular application and library generate schematics.
E.g.
`nx generate application myapp --strict`
`nx generate lib mylib --strict`
Closes#3383.
Performs the following configuration changes:
- Enables strict mode in TypeScript, as well as other strictness flags recommended by the TypeScript team. Specifically, forceConsistentCasingInFileNames, noImplicitReturns, noFallthroughCasesInSwitch.
- Turns on strict Angular compiler flags strictTemplates and strictInjectionParameters
These match the flags used in the standard CLI strict mode.
* cleanup(misc): updating import path
Co-authored-by: Ashley Hunter <ashley.hunter@hotmail.co.uk>
* feat(testing): add util to update jest configs.
* feat(testing): place configurations in jest config file rather than just the builder
* feat(testing): create migration and unit tests
* feat(testing): fix jest template
* feat(testing): fix jest template to correct unit tests
* feat(testing): include globals.ts-jest for all non babel configs
* feat(testing): include globals.ts-jest for node e2e
* feat(testing): fix migration to run properly. Also check for angular tests using the setupfile rather than builder
* feat(testing): clean up jest config functions and fix errors with some migrations
* feat(testing): add new line to package.json
* feat(testing): update object check to actually check for undefined
* chore(testing): loop through all project targets as well as targets
* chore(testing): update migration to be 10.0.0-beta.2
* feat(core): adds configurable base branch in nx.json
new field in nx.json - defaultBranch
ISSUES CLOSED: #1791
* feat(core): split affected into config options for base and head in nx.json
Co-authored-by: agriggs <alex.griggs@gmail.com>
* feat(react): make React schematics use babel-jest by default
The babelJest option was removed from the React application
and library schematics and set to true by default
ISSUES CLOSED: 2365
* feat(react): remove babelJest option test
Co-authored-by: Isaac Mann <isaacplmann@users.noreply.github.com>
Co-authored-by: Isaac Mann <isaacplmann@users.noreply.github.com>
Co-authored-by: Isaac Mann <isaacplmann@users.noreply.github.com>
* fix(testing): update maxWorkers jest builder option to support string type
Jest supports both number and string args for the maxWorkers option, per their latest docs. This
updates the options for the jest builder to support both number and string types. Also updates the
docs accordingly.
ISSUES CLOSED: #2871
* fix(testing): fix test expectation missing property
* docs(misc): add docs on global config files
* docs(docs): move configuration under workspace
Co-authored-by: Victor Savkin <mail@vsavkin.com>
Co-authored-by: Isaac Mann <isaacplmann+git@gmail.com>