395 Commits

Author SHA1 Message Date
Leosvel Pérez Espinosa
fab43a15e2
cleanup(nest): migrate nest to nx devkit (#6157) 2021-06-28 13:01:00 -04:00
Jason Jean
4f7191e154 chore(repo): update nx to 12.5.0-beta.5 2021-06-25 17:08:37 -04:00
AgentEnder
472392a370 fix(node): node-externals fails in subdirectories 2021-06-25 16:39:23 -04:00
Craigory V Coppola
f1911a71f3
feat(core): split nx config to project files (#5880) 2021-06-22 20:30:38 -04:00
Phillip Barta
fe97444d78
feat(core): migrate prettier to v2.3.1 (#5623) 2021-06-17 16:44:30 +02:00
vsavkin
04b1401ace feat(misc): fixMissingBuildDependencies should not require package.json 2021-06-15 16:17:02 -04:00
Craigory V Coppola
f9751786c6
feat(testing): support for Jest 27 (#5873)
- Sets default testEnvironment to web
- Updates node generators to specify testEnvironment: node
- Provides migrations to update existing jest.config.js files
- Bump angular-preset-jest to latest

ISSUES CLOSED: #5771
2021-06-11 13:25:57 -05:00
Phillip Barta
a2c2d94050
feat(core): first step to common JSON behavior and common fileutils (#5859) 2021-06-09 12:45:16 +02:00
John Dengis
b4d27fcfd7
fix(node): don't clobber packageJson.main if it exists (#5836)
Only assign packageJson.main to OUT_FILENAME if it is nullish in generatePackageJson
2021-06-04 16:58:30 -04:00
James Henry
a3c08a9153
feat(linter): do not set eslint parserOptions.project by default (#5798) 2021-05-28 13:35:34 +00:00
vsavkin
f82344d63a chore(repo): refine the tag line 2021-05-18 20:55:40 -04:00
vsavkin
af23cc5d7d feat(misc): change the nx tag line 2021-05-18 16:07:22 -04:00
Phillip Barta
52e3083a19
feat(core): added encoding param in Tree.read() (#5668)
feat(core): added encoding param in Tree.read()
2021-05-17 21:03:04 -04:00
Tasos Bekos
2a33139429 fix(node): normalize application's sourceRoot path
Closes #5228
2021-05-12 21:05:59 -04:00
Zachary DeRose
6fdf9d62f9
fix(repo): fixing issue with some options missing from docs (#5641) 2021-05-12 17:50:09 -04:00
Leosvel Pérez Espinosa
678818a58b
feat(angular): upgrade Angular to v12.0.0-rc.3 (#5630)
* 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>
2021-05-12 12:20:12 -04:00
Jason Jean
6503c4fa03
feat(node): migrate @nrwl/express to use devkit (#5558) 2021-05-04 18:48:45 -04:00
Leosvel Pérez Espinosa
7c3f0f76cc
cleanup(node): refactor package executor to reuse TypeScript utilities (#5494) 2021-04-30 09:35:27 +01:00
vsavkin
85ceb3c790 fix(core): propagate sigterm and other signals correctly 2021-04-26 20:50:30 -04:00
Tasos Bekos
156e3c2c40 chore(repo): use jest-circus runner 2021-04-26 15:16:09 -04:00
Minijus L
357ecd09a4
fix(testing): update ts-jest to version 26.5.5 (#5405)
Update `jest.config.js` ts-jest section with lower-cased 'tsconfig' property as 'tsConfig' is to be deprecated in version 27.
2021-04-26 08:56:52 -04:00
vsavkin
78f27abe6c feat(node): do not override main and typings 2021-04-24 19:11:45 -04:00
vsavkin
aef1b1783c feat(repo): switch to using dependsOn for the relationship between build and build-base 2021-04-23 10:11:31 -04:00
Phillip Barta
c0ce1ce65e
cleanup(core): normalized usage of fs-extra and updated fs-extra to 9.1.0 (#5199)
* 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>
2021-04-22 12:52:52 -04:00
Phillip Barta
48bf60c17d
cleanup(repo): removed unused dependecies from @nrwl/web migration in #2004 (#5344) 2021-04-15 00:14:27 -04:00
vsavkin
38c111ba06 chore(repo): update to nx 12 2021-04-07 12:31:23 -04:00
Tasos Bekos
e065a70511 feat(node): package should validate main entry option 2021-04-07 10:20:57 -04:00
Tasos Bekos
72b5e01021 cleanup(node): fix unit tests 2021-04-06 19:08:51 +03:00
Tasos Bekos
59eca00728 feat(node): support webpackConfig as array 2021-04-06 18:31:38 +03:00
Tasos Bekos
711709059e feat(node): add CLI wrapper option for publishable libraries 2021-04-01 16:40:59 +03:00
Tasos Bekos
fedc32c6bd fix(node): apps use commonjs module 2021-03-31 21:03:52 -04:00
Tasos Bekos
f807a04e77
feat(node): support --simpleModuleName on library generation (#5153)
Closes #3822
2021-03-31 18:50:22 -04:00
Tasos Bekos
cf7639fcbc
feat(node): support deleteOutputPath for package builder (#5154) 2021-03-31 18:46:50 -04:00
Jason Jean
03d16676ac
fix(misc): pass in specific copy of webpack (#5190) 2021-03-31 18:07:55 -04:00
Tasos Bekos
14b1df2173
cleanup(misc): deprecate showCircularDependencies option (#5135) 2021-03-26 15:12:21 -04:00
Tasos Bekos
e3aaf65c88
fix(node): early assets copy to "respect" updates on package.json (#5114)
If `package.json` is "accidentally" copied with assets, it overwrites the existing updated `package.json` resulting in loss of entry points and buildable dependencies. This commit makes sure that any update to `package.json` happens after asset copying.
2021-03-26 11:33:14 -04:00
Vivek More 🧐
212fb00548 cleanup(misc): use more es6 features
- 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
2021-03-24 20:11:32 -04:00
Vivek
d1b09eaabd
cleanup(misc): make code more consistent and fix typos 2021-03-23 13:03:17 -04:00
Tasos Bekos
82799042db
fix(node): fix unreachable code on library generation (#5080) 2021-03-22 11:18:42 -04:00
James Henry
00dec221e2
feat(linter): convert-tslint-to-eslint generators (#4943)
* feat(linter): convert-tslint-to-eslint generators

* fix(core): remove generators in collection for ng and nest

* fix(core): update tao to support mixed generators and schematics

* fix(core): update tao to support mixed generators and schematics

* fix(core): address some PR feedback

* fix(core): fix snapshots after syncing up with master

* feat(core): store user preference for removeTSLintIfNoMoreTSLintTargets

* fix(linter): unit tests

* feat(core): apply root tslint.json conversion to root .eslintrc.json
2021-03-19 13:41:13 -04:00
kirjai
9d863a7073 fix(nextjs): include peer dependencies in built package.json 2021-03-15 10:29:33 -04:00
Jason Jean
d4629be208
feat(node): migrate @nrwl/node builders to devkit (#5012) 2021-03-12 23:06:32 +00:00
Jason Jean
4df3b66152
feat(node): migrate @nrwl/node schematics to devkit (#4958) 2021-03-11 19:18:22 +00:00
Jack Hsu
ddec362a5a
fix(nextjs): update babel setup to better support next apps (#4944)
* fix(nextjs): update babel setup to better support next apps

* fix(testing): remove babel-jest.config.json used in jest.config.js

- Fix `@nrwl/web/babel` to support Jest as well
2021-03-09 21:32:36 +00:00
Vivek More
49ba90b81a cleanup(misc): use shorthand 2021-03-08 10:13:06 -05:00
Jason Jean
fc9caccffb
chore(repo): update nx to 11.5.0-beta.0 (#4957) 2021-03-05 19:57:26 -05:00
James Henry
48c7c7b6a3
fix(core): always use project level tsconfigs with eslint (#4657)
* chore(core): increase coverage of eslint config file contents

* fix(core): always use project level tsconfigs with eslint

* chore(core): enhance depcheck to ignore type only imports

* chore(linter): migration always-use-project-level-tsconfigs-with-eslint

* fix(core): snapshots

* feat(core): thin wrapper around tseslint parser

* fix(core): depcheck for eslint-plugin-nx

* fix(core): revert wrapped parser

* fix(linter): add tsconfig root dir to allow for normalized paths for project configs

* fix(linter): move migration to 11.5.0

* fix(linter): add dependency on to @nrwl/workspace

Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
2021-03-05 11:48:18 -05:00
Vivek
ff5048e23c
cleanup(misc): misc cleanup
* cleanup(testing): simplify registering of collections

* cleanup(testing): remove unnecessary number from variable name

* cleanup(core): update error message

* cleanup(nx-plugin): use object destructuring in normalize-options.ts
2021-02-22 12:46:46 -05:00
Brandon
e4faaf1ef4
feat(angular): update Angular packages to 11.2.x release (#4788)
* feat(angular): update Angular packages to 11.2.x release

* chore(angular): fix storybook 5-6 default schematic unit test

* fix(angular): fix Angular Devkit discrepancies
2021-02-16 10:38:11 -05:00
Victor Savkin
a25e081a84 feat(core): remove angular devkit deps 2021-01-25 12:52:30 -05:00