154 Commits

Author SHA1 Message Date
Victor Savkin
fe062f42c3 fix(core): deduce layout directory 2022-11-29 16:08:57 -05:00
Jason Jean
020795cecc
fix(bundling): add type for bundler option to enable autocomplete prompt (#13384) 2022-11-24 14:41:28 -05:00
Victor Savkin
16fd4374d6 feat(misc): derive workspace layout dynamically 2022-11-23 15:45:13 -05:00
Jack Hsu
1b3abbd477
fix(bundling): fix exclude entries for .lib.swcrc file to exclude spe… (#13319) 2022-11-22 10:19:49 -05:00
Jack Hsu
23e4fc77c9
feat(react): add SSR support to React apps (#13234) 2022-11-21 14:22:05 -05:00
Juliano Custódio
4ae6bc5096
fix(bundling): wrong main entry path for cjs in ouput package.json (#12569) 2022-11-10 10:58:23 -05:00
Craigory Coppola
f311ecbdd7
chore(repo): remove workspace.json (#13040) 2022-11-08 13:12:31 -05:00
janwiebedroid
2818f2e3a6
fix(js): call normalizePath on generated importPath (#13037) 2022-11-07 16:20:29 -05:00
Jack Hsu
58b51964ea
feat(bundling): add support only bundling in workspace libs, not npm packages (#12852) 2022-10-31 09:05:47 -04:00
Jack Hsu
2cddd68595
fix(js): correctly build library with workspace dependencies (#12884) 2022-10-28 19:11:14 +00:00
Jack Hsu
5f584eaf49
fix(js): only generate shallow dependencies when building with tsc and swc (#12857) 2022-10-27 20:07:55 +00:00
Benjamin Cabanes
b339aab318
chore(js): set init generator to hidden (#12794) 2022-10-24 20:00:49 +00:00
Jack Hsu
8944223022
fix(js): handle different exports field shapes (#12613) 2022-10-15 08:28:27 -04:00
Chau Tran
bee29dd505
docs(js): executors examples (#12565)
Co-authored-by: Chau Tran <chautran@10.0.0.9>
2022-10-14 11:50:55 +00:00
Victor Savkin
23de788b5e
chore(repo): update to 15.0.0-rc1 (#12586) 2022-10-13 18:34:24 -04:00
Chau Tran
6b6995a81e
docs(js): library generator examples (#12568)
Co-authored-by: Chau Tran <chautran@10.0.0.9>
2022-10-13 22:50:19 +07:00
Juri Strumpflohner
66a4cc4428
feat(js): use shorter dependsOn syntax for project configuration (#12564) 2022-10-13 15:42:56 +07:00
Craigory Coppola
8ab7f85ca1
fix(core): swap default method for output capture (#12535) 2022-10-12 22:06:32 +00:00
Jack Hsu
136e1a81fe
fix(js): check if asset create/update event contains a file before copying (#12551) 2022-10-12 10:14:16 -04:00
Denis Frenademetz
f1a24d7498
fix(js): close typescript watch program on SIGINT/SIGTERM (#11722)
Close typescript watch program and complete iterator to ensure program can exit.
2022-10-11 23:44:52 +07:00
Chau Tran
b17893c358
fix(js): inlined buildable libraries original output should not be removed (#12483)
Co-authored-by: Chau Tran <chautran@Chaus-MacBook-Pro.local>
2022-10-11 23:43:56 +07:00
Calvin Lai
469a6d1462
fix(js): add outfile to swc compiler in non-watch mode. fixes #12344 (#12345) 2022-10-07 16:18:01 +07:00
Chau Tran
142ed2eead
feat(js): inline non-buildable libs for tsc and swc (#12280)
Co-authored-by: Chau Tran <chautran@10.0.0.10>
2022-10-07 09:46:43 +07:00
Jack Hsu
dda9ea1f87
feat(bundling): remove deprecated UMD format support for rollup (#12426) 2022-10-05 22:44:06 -04:00
Miroslav Jonaš
5e293eba4c
feat(core): map lock file data to external dependencies (#12185) 2022-10-05 20:58:28 -04:00
Jack Hsu
d904160426
fix(bundling): do not add types field in package.json for esbuild (#12424) 2022-10-05 16:24:25 +00:00
Jason Jean
9d06b3c084
fix(misc): remove remaining usages of @nrwl/workspace:run-commands executor (#12299) 2022-09-28 19:29:21 -04:00
Craigory Coppola
9b63ce167a
feat(core): don't generate workspace.json for v2 workspaces (#12127) 2022-09-27 23:16:22 +00:00
Jack Hsu
9a57940c6f
chore(bundling): cleanup esbuild setup (#12260) 2022-09-27 15:43:02 -04:00
Victor Savkin
e778644323
Revert "chore(js): inline non-buildbale (#12170)"
This reverts commit 24cb3cd57442229e81f8a85452c56818d26194a6.
2022-09-27 10:29:55 -04:00
Chau Tran
24cb3cd574
chore(js): inline non-buildbale (#12170)
Co-authored-by: Chau Tran <chautran@Chaus-MacBook-Pro.local>
2022-09-27 11:23:09 +00:00
Jack Hsu
0baae01e37
fix(js): update library generator for webpack and rollup bundler (#12183) 2022-09-22 14:50:17 +00:00
Jack Hsu
2d84bd3eb4
chore(bundling): clean up package.json update function (#12152) 2022-09-21 10:53:14 -04:00
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