251 Commits

Author SHA1 Message Date
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
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
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
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
Caleb Ukle
696fefdd7b
fix(js): ignore tsx and .test. files with buildable swc libraries (#9540)
include update to simplify existing patterns

ISSUES CLOSED: #9442

Co-authored-by: Caleb Ukle <caleb@Calebs-MBP-2.localdomain>
2022-04-11 08:59:44 -05:00
Chau Tran
3e94d4cb3a
fix(js): add init generator placeholder (#9777) 2022-04-11 08:47:08 -05:00
CommanderRoot
05a9544806
cleanup(misc): replace deprecated String.prototype.substr()
* cleanup(misc): replace deprecated String.prototype.substr()

.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated

Signed-off-by: Tobias Speicher <rootcommander@gmail.com>

* fix(js): fix slice change

Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
2022-04-01 23:04:26 +00:00
Benjamin Cabanes
3a87887b06
docs(core): js package description update (#9506) 2022-03-24 21:22:32 +00: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
Craigory Coppola
22a99144be
fix(js): pin fast-glob to 3.2.7 due to regression in 3.2.8 (#9484) 2022-03-23 16:36:30 -04:00
Craigory Coppola
2f85238f86
fix(js): improve inconsistencies with assets in tsc and swc from previous implementation (#9470) 2022-03-23 10:16:19 -04:00
Chau Tran
44763532f7
fix(js): add swc/helpers to js packages on converting to swc (#9467)
* fix(js): add swc/helpers to js packages on converting to swc

* chore(js): update convert to swc unit test

* chore(js): format

Co-authored-by: Chau Tran <ctran@Chaus-MacBook-Pro.local>
2022-03-22 15:10:04 -05:00
Benjamin Cabanes
1723e8e6b3
docs(nxdev): remove unused versions & flavors feature (#9462) 2022-03-22 17:44:35 +00:00
Chau Tran
cb1fc0235a
fix(js): mimic the behavior of tsc compilation for runTypeCheck (#9240)
* fix(js): mimic the behavior of tsc compilation for runTypeCheck

ISSUES CLOSED: #9203

* chore(js): add check for type defs files in e2e

Co-authored-by: Chau Tran <ctran@Chaus-MacBook-Pro.local>
2022-03-21 16:33:34 -05:00