395 Commits

Author SHA1 Message Date
Leosvel Pérez Espinosa
914f0ce707
feat(misc): update typescript to 4.7 (#10560) 2022-06-02 13:29:11 -04:00
Victor Savkin
e491c6f738 feat(core): make nx.json optional 2022-05-31 15:35:28 -04:00
Victor Savkin
3d97203b1e
chore(repo): migrate to nx@14.2.0-beta.1 2022-05-30 20:10:02 -04:00
Chau Tran
36010c1c0e
feat(js): implement a smarter compiler (tsc, swc) helper dependency d… (#10297)
* feat(js): implement a smarter compiler (tsc, swc) helper dependency detection

ISSUES CLOSED: #10270

* chore(js): add test to check for swc/helpers upon build lib
2022-05-20 14:14:30 -05:00
Jason Jean
04985be149
chore(repo): switch publishing to use lerna (#10293) 2022-05-20 00:35:47 +00:00
Chau Tran
7b9b0cd21b
fix(node): add workaround for handling sub processes in node:node executor (#10292)
In Nx 15, we plan to clean up runExecutor and implement proper process handling in runExecutor
upstream. This is a workaround that fix some racing-condition in node:node exexecutor downstream

ISSUES CLOSED: #9305
2022-05-17 16:13:58 -04:00
Victor Savkin
6351413b98 fix(core): preserve dash casing when passing args to executors 2022-05-17 14:48:53 -04:00
Caleb Ukle
ecf88a6995
fix(testing): update v14 migration and migrate jest.config.ts to use export default (#10035)
* fix(testing): jest.preset.ts => jest.preset.js

* fix(testing): update to export default

* fix(testing): migration for moving to export default

* fix(testing): add eslint ignore comments for jest config properties

fixes: #10021

* fix(testing): update tsconfig.spec.json for next apps with project parserOptions

fixes: #9982

* fix(testing): prevent renaming root jest preset

fixes: #9973

* fix(testing): update snapshots for export default

* fix(testing): bump migration version to run

* fix(testing): make sure default jest tests pass for various projects

* fix(js): generate correct jest config for --compiler=swc --js
2022-05-11 18:04:29 +00:00
Phillip Barta
0cc7042beb
chore(repo): updated dependency fs-extra to ^10.1.0 (#9985) 2022-05-06 17:56:19 -04:00
Jason Jean
e4cccfc14d
chore(repo): update nx to 14.1.1 (#10132) 2022-05-04 15:27:43 +00:00
Jason Jean
4f99b77e42
chore(repo): update nx to 14.0.2 (#9974) 2022-04-23 18:06:01 +00:00
Caleb Ukle
88971468db
fix(testing): pass --js flag to jest generators (#9965) 2022-04-22 22:43:59 -04:00
Caleb Ukle
39331d1e17
feat(testing): move jest config to .ts files (#9854)
* feat(testing): move jest config to .ts

move jest config and preset to ts files

ISSUES CLOSED: #8344

* fix(testing): update tests for jest.config.ts changes

update tests broken by renaming jest fils to ts files
2022-04-21 17:58:40 +00:00
Jason Jean
cb7fb22bca
feat(core): remove @types/node from default workspace (#9853)
Signed-off-by: Jason Jean <jasonjean1993@gmail.com>
2022-04-20 12:43:23 -04:00
James Henry
46e7b4d49c
chore(core): improve help output for generators and executors (#9800) 2022-04-12 14:05:55 -04:00
Giora Guttsait
75b0744955
fix(core): init generators should not crash when trying to remove dependencies when package.json does not have dependencies (#9765)
Co-authored-by: Craigory Coppola <craigorycoppola@gmail.com>
2022-04-12 09:10:13 -04:00
zhaoyunfeng
0e68c616fe
fix(node): webpack executor doesn't respect option outputFileName (#9740)
Co-authored-by: zhaoyunfeng <zhaoyunfeng@worktile.com>
2022-04-08 14:16:54 -04:00
Kalarrs Topham
f9223817b3
feat(node): add support for async webpack configuration (#9641) 2022-04-01 22:48:31 +00:00
Jack Hsu
cb4126c442
fix(react): pass configuration from context when reading build target options (#9656)
Closes #7924
2022-04-01 17:48:40 -04:00
Miroslav Jonaš
3b21f4dfea
fix(core): switch from appRootPath to workspaceRoot (#9600) 2022-03-30 09:15:20 -04:00
Benjamin Cabanes
a4da5a19b7
docs(core): add description to node package (#9533) 2022-03-25 20:18:29 +00:00
Chau Tran
93a39ac104
fix(node): update node migrations to use forEachExecutorOptions (#9471)
Co-authored-by: Chau Tran <ctran@Chaus-MacBook-Pro.local>
2022-03-25 11:32:59 -04:00
Isaac Mann
753277ad50
docs(nxdev): customize webpack guide (#8857)
* docs(nxdev): customize webpack guide

* docs(core): add webpack-merge

* docs(core): webpack config example

Co-authored-by: Isaac Mann <isaacplmann+git@gmail.com>
2022-03-25 11:27:16 -04:00
Benjamin Cabanes
6dae32cc3a
docs(nxdev): support packages schemas metadata & discoverability (#9383) 2022-03-24 12:00:06 -04:00
Victor Savkin
d4b5c30eba
cleanup(core): remove the indirection left after inlining ta… (#9469) 2022-03-23 22:18:17 -04:00
Benjamin Cabanes
1723e8e6b3
docs(nxdev): remove unused versions & flavors feature (#9462) 2022-03-22 17:44:35 +00:00
hellivan
3824eebc23
fix(node): npm modules are not resolved correctly (#9284)
The current implementation of the node executor resolves all npm
modules that are referenced by the application from the root
node_modules folder. This behavior leads to runtime errors if any of
the project dependencies requires a different version of a package
than the project itself.

For example, if we have a project that depends on `express` in version
`4.17.3` (which on the other hand depends on `path-to-regexp` version
`0.1.7`) as well as on `path-to-regexp` in version `6.2.0`. In such
case `express` will throw a runtime error since it would load
`path-to-regexp` version `6.2.0` which is not API compatible.

For this reason, this commit changes the behavior of the node-executor
so that it completely ignores npm dependencies when calculating
resolve mappings.
2022-03-18 16:40:37 -04:00
Victor Savkin
6f038e7a4a feat(core): reorganize packges to consolidate all cli-related code in nx 2022-03-14 16:42:51 -04:00
Victor Savkin
4e9375f5f4 chore(repo): update the version of nx 2022-03-11 10:40:40 -05:00
Jason Jean
94687e993c
chore(repo): ensure license file exists for all published packages (#9274) 2022-03-10 18:33:06 -05:00
Craigory Coppola
24c0c1b56f
fix(node): update @nrwl/node:library to accept compiler options (#9269) 2022-03-10 14:42:03 -05:00
Phillip Barta
dbb4988278
feat(web): update license-webpack-plugin to improve performance (#9058) 2022-03-10 12:06:57 -05:00
Leosvel Pérez Espinosa
acc29e9593
fix(misc): support workspaces using a root tsconfig.json instead of tsconfig.base.json (#9195)
* fix(misc): support workspaces using a root tsconfig.json instead of tsconfig.base.json

* cleanup(angular): address pr feedback
2022-03-09 11:30:26 -05:00
Jack Hsu
1390cd086c
feat(node): moved 13.9.0 migrations to 13.8.5 (#9184) 2022-03-04 08:15:49 -05:00
Jack Hsu
7084d19dd6
feat(node): improve @nrwl/node:node executor to handle build process correctly in watch and no-watch mode (#9180)
* Build only triggered once on file change
* Kill previous process if it exists
* Wait for build process to finish before exiting
2022-03-04 08:09:08 -05:00
Chau Tran
229f71ef17
feat(nest): use nrwl/js to generate library (#9164)
* chore(js): rename GeneratorSchema to LibraryGeneratorSchema

* fix(js): add publishable to library generator schema

* feat(nest): use nrwl/js for library generator

* fix(js): update documentation about publishable

* chore(nest): fix depcheck for nrwl/js

* chore(nest): update test snapshot

* chore(nest): update nestjs/swagger version in node e2e

* chore(js): rename loadTsPlugins function

* fix(nest): default standaloneConfig for library generator to true

* feat(nest): rename tsPlugins to transformers and add tsPlugins to aliases

* chore(nest): fix e2e test on generate a new nest library

Co-authored-by: Chau Tran <ctran@Chaus-MacBook-Pro.local>
2022-03-03 15:47:06 -05:00
Jack Hsu
bf6299685e
fix(node): use @nrwl/node:node for app serve (#9177) 2022-03-03 10:48:22 -05:00
Jack Hsu
95f5a085fa
feat(node): consolidate js and node plugins (#9086)
* chore(node): update docs after consolidating js and node plugins

* feat(node): consolidate js and node plugins
2022-02-23 16:59:03 -05:00
Jérémy Levilain
ebeb588004
fix(node): webpack/terser stripping class names breaking reflection (#8784) 2022-02-18 09:18:00 -06:00
Chau Tran
7da9fbbe88
fix(js): migrate swc executor off of rxjs (#8728)
* fix(js): clean up swc

* fix(js): clean up swc

* fix(js): add incremental to TypeCheckOptions

* fix(js): use async iterator with tsc executor. remove rxjs deps

* chore(js): remove unnecessary test and commented out code

* fix(js): add else statement for readability

* fix(js): ensure error() and done() always set error and done fields

* chore(js): clean up create async iterable tests

* fix(js): ensure pushQueue is resolved first if there are still items to be resolved before done

Co-authored-by: Chau Tran <ctran@Chaus-MacBook-Pro.local>
2022-02-15 14:16:30 -06:00
Phillip Barta
e668dc00ac
chore(core): update license-webpack-plugin to 4.0.0 (#8632) 2022-01-28 13:43:11 -05:00
Phillip Barta
be91d1f99a
fix(core): stop inlining tsconfig-paths-webpack-plugin and use version with fix (#8357) 2022-01-27 08:59:46 -05:00
Phillip Barta
78c9f158a7
fix(web): remove terser from dependencies and update terser-webpack-plugin (#8631) 2022-01-27 08:53:24 -05:00
Victor Savkin
4e474773bf
Revert "feat(core): show dep types in dep graph (#2760) (#8132)"
This reverts commit 31bb2f36261fdf222e9e8e962227dcd911dfee66.
2022-01-25 15:23:25 -05:00
Victor Savkin
298ceba5b3
chore(repo): readme fixes 2022-01-24 09:39:31 -05:00
Alexandre Delattre
50baf92fc9 fix(node): disable name mangling when building for production
disable name mangling when building for production with optimization on,
in order not to break
features relying on runtime reflection

ISSUES CLOSED: #8537
2022-01-20 13:17:28 -05:00
Victor Savkin
9e75918154
feat(core): speed up file map creation (#8597) 2022-01-19 15:30:21 -05:00
MaximSagan
31bb2f3626
feat(core): show dep types in dep graph (#2760) (#8132) 2022-01-18 10:20:09 -07:00
Phillip Barta
8abcaab7c3
fix(misc): dont publish jest.config.js files (#8341) 2022-01-07 14:10:24 -05:00
Phillip Barta
e57cef0901
cleanup(repo): use devkit instead of devkit reexports from workspace (#7773) 2021-12-21 21:06:31 +00:00