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
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
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
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š
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
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
Craigory Coppola
c9897c61e6
fix(core): swc should be an optional peer dependency ( #10461 )
2022-05-26 12:09:27 -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
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
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
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
Denis Frenademetz
a395e486e8
fix(core): emit success false in compileTypeScriptFiles if typescript diagnostic contains errors ( #10068 )
2022-04-30 00:50:37 -05:00
Chau Tran
5dbc98f9d8
fix(js): add missing --tag flag to the publish command ( #10014 )
2022-04-26 17:04:10 -04:00
Jack Hsu
c5a5eb30a2
fix(js): update minimal publish script to validate project name and config ( #10006 )
2022-04-26 11:10:15 -04: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
Miroslav Jonaš
67b34a099f
fix(js): enable hidden files as assets ( #9880 )
2022-04-19 12:48:01 +02:00
Chau Tran
2735aa08df
feat(js): add publish target and generate minimal publish script for … ( #9806 )
...
* feat(js): add publish target and generate minimal publish script for publishable libraries
* fix(js): adjust minimal publish script to display better error for version validation
* Update packages/js/src/utils/minimal-publish-script.ts
Co-authored-by: Caleb Ukle <caleb@nrwl.io>
Co-authored-by: Caleb Ukle <caleb@nrwl.io>
2022-04-12 15:20:24 -05:00
James Henry
46e7b4d49c
chore(core): improve help output for generators and executors ( #9800 )
2022-04-12 14:05:55 -04:00