221 Commits

Author SHA1 Message Date
Jack Hsu
75115e100a
fix(js): support both .cjs and .js file extensions when generating package.json file (#12137) 2022-09-21 00:49:46 +00:00
Jack Hsu
6c0a838a59
fix(js): install bundler nx plugin when needed (#12131) 2022-09-20 18:39:07 +00:00
Jack Hsu
ed7db7c114
feat(bundling): add esbuild plugin (#12053) 2022-09-20 12:05:58 -04:00
Victor Savkin
6e6925f8e4
chore(repo): update to nx 14.7.6-beta.6 2022-09-17 15:59:06 -04:00
MaxKless
fd670d298b
docs(misc): update package descriptions to be more consistent (#12039) 2022-09-16 17:03:33 -04:00
Xie Jay
b3e69e2591
feat(js): add rootDir option (#11678)
close #11601, close #9410, close #10707

Co-authored-by: xiejay97 <xiejay97gmail.com>
2022-09-13 00:13:58 +00:00
Jack Hsu
f49769a34a
feat(webpack): add webpack plugin (#11966) 2022-09-12 21:19:50 +01:00
Chau Tran
2508cb04a6
Revert "feat(js): add srcRootForCompilationRoot option to tsc executor (#10707)" (#11977)
This reverts commit aa01b7bd2d30bc4b16f831189d153eca618ec27b.

Co-authored-by: Chau Tran <chautran@Chaus-MacBook-Pro.local>
2022-09-12 13:31:45 +00:00
Nozomu Miyamoto
aa01b7bd2d
feat(js): add srcRootForCompilationRoot option to tsc executor (#10707)
* feat(js): add `srcRootForCompilationRoot` option to tsc executor

ISSUES CLOSED: #9410

* docs(js): add description for `srcRootForCompilationRoot` option
2022-09-12 20:14:23 +07:00
Jack Hsu
cd3352aaa2
fix(js): remove check for non-buildable libs being used when packaging. (#11835)
- unblocks custom server in next.js
- builds are guaranteed to happen if nx.json is configured correctly
- if a package isn't buildable it will be included in the package in the
  near-future
2022-09-01 18:07:24 -04:00
Jonathan Cammisuli
e7ec91b9e0
feat(core): add file completion types for the nx language server (#11669) 2022-08-26 10:34:33 -04:00
Craigory Coppola
6948ffdcff fix(core): project graph should be read from executor context
These changes lower the risk of reading the cache during a write operation when multiple
processes are actively writing / reading the cache.
2022-08-19 12:50:07 -04:00
Caleb Ukle
657b2bff5a
feat(testing): support jest 28 (#10857)
* feat(testing): support jest 28

WIP jest migration

* fix(testing): jest-environment-jsdom must be explicitly added now

* fix(testing): add rxjs to the transform lsit

* fix(testing): jest ts-jest updates and resolver issues

* feat(testing): remove test runner for react native jest

* feat(testing): add preprocessor for react native jest

* fix(testing): update query to handle tsx file syntax, remove rxjs transform

* chore(repo): remove file from accident commit

* chore(testing): update migration to target 14.6 for RN jest preprocessor

* fix(testing): call passed in packageFilter if preset

* docs(testing): add resolver env var to troubleshooting guide

* chore(repo): prep resolver for jest 28 migration

* fix(testing): update deps to handle esbuild-wasm service error

* fix(testing): switch to testEnvironmentOptions for cjs loading vs resolver list

* fix(testing): force babel-jest preset in transformer for project transforms

* chore(testing): address PR feedback

* fix(testing): address pr feedback, remove react-native transform

* chore(testing): update createTreeWithEmptyWorkspace calls

* chore(testing): address pr feedback

* feat(testing): add migration script for react native to rename .babelrc to babel.config.json

* chore(testing): nx format after rebase

* chore(testing): fix display name for @nrwl/js

Co-authored-by: Emily Xiong <xiongemi@gmail.com>
2022-08-18 18:40:31 -04:00
Miroslav Jonaš
187f5200c0
fix(linter): add jest to root .eslintrc if selected as unit test runner (#11555) 2022-08-18 14:51:09 +02:00
Victor Savkin
f8da1ad42b
chore(repo): update nx to 14.6.0-beta.3 2022-08-12 16:10:56 -04:00
Craigory Coppola
458fc36014
chore(misc): split create tree with empty workspace to remove parameter (#10188)
* feat(devkit): split create-empty-tree to different functions

* chore(repo): apply migration for createEmptyTree

* cleanup(misc): fix tests that migration misses
2022-08-11 19:24:04 -04:00
Jack Hsu
d1af72dde0
fix(js): update SIGINT and SIGTERM handling for tsc/swc executors (#11492) 2022-08-08 02:07:27 +00:00
Jack Hsu
e45c2f24ba
feat(nextjs): improve support for custom server (#11325)
- Add new generator for custom server
- Add @nrwl/js:node executor for serving custom server
- Deprecate @nrwl/node:node in favor of the above
2022-08-02 18:37:23 +00:00
Jean-Philippe Bergeron
20996d6c40
fix(nx): Ignore the debugger attached message in node (#11131)
* fix(js): update compile-swc.ts

* fix(js): update packages/js/src/utils/swc/compile-swc.ts

Co-authored-by: Craigory Coppola <craigorycoppola@gmail.com>

* chore(js): format source code

Co-authored-by: Craigory Coppola <craigorycoppola@gmail.com>
2022-08-02 09:31:01 +07:00
Jack Hsu
7fd7af3195
feat(js): add --clean/--no-clean option to tsc and swc executors (#11311) 2022-07-27 15:04:22 +00:00
Jack Hsu
3a63eeab21
chore(core): remove checks for built dependencies in executors since dependsOn guarantees that they are built (#11227) 2022-07-20 15:56:57 +00:00
Miroslav Jonaš
b8efa778f6
fix(core): remove eslintrc.json from the package build artifact (#11043) 2022-07-07 18:34:34 +00:00
Miroslav Jonaš
62bae5a120
feat(core): make npmScope optional (#10018) 2022-06-23 10:57:54 +02:00
Daniel Harvey
09baf958e8 fix(core): Add missing formatFiles to migrations
Fixes nrwl/nx#10665
2022-06-15 10:38:32 -04:00
Jason Jean
5b17335f4d Revert "feat(core): support nested ignore files (#10455)"
This reverts commit 36d8ee26c430def7b68b123d1b87b792928411d2.
2022-06-13 13:16:05 -04:00
Gabriel Terwesten
36d8ee26c4
feat(core): support nested ignore files (#10455) 2022-06-10 14:05:41 -04:00
adriangroch
a42d681529
fix(js): check that project's package.json exists before attempting to read its contents (#10650) 2022-06-10 09:46:12 -04:00
Craigory Coppola
15c04b099e
chore(repo): enable eslint plugin checks (#10666) 2022-06-09 18:04:06 -04:00
Victor Savkin
029be8c868 Revert "fix(js): resolve shallow dependencies when building package.json (#10600)"
This reverts commit a0bf1f0b1218453ceaefb1e9c88e6a07deaeda3f.
2022-06-07 11:28:33 -04:00
Max Kramer
a0bf1f0b12
fix(js): resolve shallow dependencies when building package.json (#10600) 2022-06-06 14:11:48 -04:00
James
c0a0f16913
fix(js): semver regex update (#10416) 2022-06-04 04:56:34 +00:00
Chau Tran
5daeaf8e8f
fix(js): return empty array if no helper dependencies found (#10582)
* fix(js): return empty array if no helper dependencies found

* chore(js): add test for generate package json with helper dependency
2022-06-03 23:05:38 -05:00
Craigory Coppola
10363e3bec
feat(nx-plugin): add plugin eslint rules (#9697)
* feat(nx-plugin): add lint rule for nx-plugin validation

* chore(repo): review feedback

Co-authored-by: Giora Guttsait <giora111@gmail.com>

* chore(repo): review feedback

Co-authored-by: Giora Guttsait <giora111@gmail.com>

* chore(nx-plugin): review comments

* chore(nx-plugin): review feedback

Co-authored-by: Giora Guttsait <giora111@gmail.com>
2022-06-03 16:03:39 -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
Craigory Coppola
c9897c61e6
fix(core): swc should be an optional peer dependency (#10461) 2022-05-26 12:09:27 -04:00
Alan Pazetto
5378a027f4
chore(misc): updated minimatch version (#10472)
Co-authored-by: Alan Pazetto <alan.pazetto@ifood.com.br>
2022-05-25 21:17:53 +00: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
Victor Savkin
6351413b98 fix(core): preserve dash casing when passing args to executors 2022-05-17 14:48:53 -04:00
Chau Tran
17c40229a7
fix(js): format .lib.swcrc file with nx format (#10254) 2022-05-16 10:19:49 -04:00
Chau Tran
692418d2b7
fix(js): move swc/helpers to dependencies instead of devDependencies (#10275)
ISSUES CLOSED: #10270
2022-05-12 19:24:40 +00: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
Jay Bell
93c7ea5f31
cleanup(js): use import instead of require in jest config (#10239)
if we are going to use typescript we might as well use typescript and use import instead of require
for build in modules that support it
2022-05-11 11:18:32 -04:00
Phillip Barta
0cc7042beb
chore(repo): updated dependency fs-extra to ^10.1.0 (#9985) 2022-05-06 17:56:19 -04:00
Daniel Grant
63006b791a
fix(js): .swcrc path option should follow existing conventions (#10127)
Co-authored-by: Craigory Coppola <craigorycoppola@gmail.com>
2022-05-06 13:46:13 -04:00
Lucas Vieira
6d4f971722
fix(js): add missing projectType property to @nrwl/js:library generator (#10159) 2022-05-05 09:18:13 -04:00
Daniele Tortora
664df0e849
feat(js): add --includeBabelRc flag for @nrwl/js:library generator (#8793, #8600) (#10055)
* fix(js): fix(js): adding missing babelrc for tsc compiled libraries

ISSUES CLOSED: #8600, #8793

ISSUES CLOSED: #8600, #8793

* feat(js): adds the --skipBabelConfig flag to prevent .babelrc file generation

ISSUES CLOSED: #8600, #8793
ISSUES CLOSED: #8600, #8793

* feat(js): adds the --includeBabelRc flag to the library generator

adds the --includeBabelRc flag to the library generator, and a mechanism to automatically detect the
nrwl/web plugin, which requires auto-generation of the babelrc even when not explicitly set by the
user

ISSUES CLOSED: #8600, #8793
2022-05-04 10:58:34 -05:00
Jason Jean
e4cccfc14d
chore(repo): update nx to 14.1.1 (#10132) 2022-05-04 15:27:43 +00:00
Daniel Grant
a68120a35b
fix(js): .swcrc path should be customizable (#10118)
Co-authored-by: Craigory Coppola <craigorycoppola@gmail.com>
2022-05-03 13:41:52 -04:00