1256 Commits

Author SHA1 Message Date
Gustavo Perdomo
e960285769
feat(nest): support nest 8 (#6284)
* feat(nest): support nest 8

* feat(nest): update migration and generation logic

* feat(nest): updated according feedback

* feat(nest): fix migration issues

* feat(nest): final changes according feedback

Co-authored-by: Chau Tran <nartc7789@gmail.com>

* fix(nest): log info to install packages install running installPackageTask

Co-authored-by: Chau Tran <nartc7789@gmail.com>
2021-11-04 16:48:38 -05:00
Jack Hsu
39bc2e293e
feat(nextjs): bump Next.js version to 12.0.0 (#7524) 2021-10-27 00:37:14 +00:00
Leosvel Pérez Espinosa
8311a172d7
feat(angular): add secondary entry point generator for publishable libraries (#7501) 2021-10-26 11:12:53 +01:00
Chau Tran
9356f73380
feat(node): add tsPlugins to node:package executor (#7477)
node:build currently has tsPlugins options to invoke TypeScript Plugins (transformers). This PR
brings the same functionality to node:package

ISSUES CLOSED: #7420
2021-10-25 20:03:56 -05:00
Philip Fulcher
777347e932
cleanup(misc): fix dep-graph e2e test on Windows (#7496) 2021-10-23 10:58:21 -06:00
Jason Jean
aa307bc154
chore(repo): configure cypress e2e tests to depend on react (#7430) 2021-10-19 18:09:16 -04:00
Miroslav Jonaš
1a3a8cff1f
chore(repo): remove deprecated headless flag from e2e tests (#7428) 2021-10-19 17:25:53 -04:00
Jack Hsu
9c1ae3a1b0
chore(web): clean up webpack setup (#7411) 2021-10-19 09:07:33 -06:00
Craigory Coppola
bdcbac4445
feat(core): standalone project configuration is default (#7351)
* feat(core): standalone project configuration is default

* chore(core): changes to e2e tests

* fix(core): intuit projects when inside their directories when using project.json files

* chore(core): e2e changes

* fix(core): standalone configurations work with npm-project generator

* chore(core): e2e tests should use standalone configurations

* chore(core): e2e fixes per review
2021-10-16 00:07:12 +02:00
Jack Hsu
bedad1cc77
fix(core): patch resolve logic for tsconfig paths (#7387) 2021-10-15 20:47:18 +00:00
Kirils L
92132c6017
feat(nextjs): disable lint during build (#7379) 2021-10-15 11:05:52 -06:00
Edouard Bozon
19964a62ae chore(core): disable commit gpgsign
When running tests locally, if global Git config is set to sign commit with gpg then, tests are failing with `gpg failed to sign the data`, this fixes this issue.
2021-10-15 11:02:09 -04:00
James Henry
a4e0d72edc chore(core): updates to daemon related commands and output 2021-10-14 20:10:20 -04:00
Craigory Coppola
79cf69b4e4
feat(core): consolidate nx.json and workspace.json (#6642)
* feat(core): consolidate settings between workspace.json + nx.json

workspace.json (and linked project.json files) now contain all project specific settings.
nx.json now contains all settings that affect the whole workspace.

* chore(core): fix angular unit tests w/ new config

* chore(core): fix failing tests

* chore(core): fix formatting

* chore(core): fix more tests

* chore(core): normalize-nx-json feedback

* chore(core): Fix more unit tests

* chore(core): fix remaining tests in workspace

* chore(linter): fix remaining linter tests

* chore(core): fix remaining spec + build issues

* chore(core): formatting fixes

* feat(core): migration script to move config options to new locations

* chore(core): fix e2e tests

* chore(core): run format

* chore(react-native): fix failing tests

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* feat(core): move properties to new location during format step

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* feat(core): initial pass on ngcli-adapter for property consolidation

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* chore(misc): fix tests

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* docs(core): update docs with changes

* chore(misc): fix tests

* chore(core): code review changes

updateWorkspaceJson -> updateWorkspace, no longer uses updater function

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* chore(core): fix bug in ngcli impl

* fix(core): fix bug in ngcli-adapter

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* fix(core): fix ngcli-adapter

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* chore(core): fix workspace e2e

* chore(core): fix nx-plugin e2e

* fix(core): move defaultProject to nx.json

* chore(core): fix broken workspace test

* chore(core): formatting

* chore(core): fix workspace format

* chore(core): add nxJson to ExecutorContext

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

* chore(core): remove all references ot `NxProjectConfiguration` from our code

* chore(core): Review Changes

* fix(core): update new config locations v13 migration
2021-10-14 10:42:47 -04:00
Jack Hsu
fc3573f1ca
chore(web): remove install and build warnings (#7343) 2021-10-14 05:27:30 +02:00
Victor Savkin
1cc1e27110 feat(core): add exponential backoff for graph recomputation 2021-10-13 15:01:17 -04:00
Jack Hsu
724b0c0e3c
feat(core): upgrade to webpack 5 (#7283)
* feat(core): upgrade to webpack 5

* chore(core): update webpack 5 docs
2021-10-13 00:34:28 -04:00
Victor Savkin
18c8e371ad feat(core): compute all workspace files incrementally 2021-10-12 12:10:13 -04:00
Philip Fulcher
2f675f7577
fix(misc): dep-graph --file option supports absolute paths (#7206) 2021-10-12 08:10:15 -06:00
Victor Savkin
2dd4299056 fix(repo): temporary disable the failing tests 2021-10-11 14:58:31 -04:00
Craigory Coppola
8435bdfb6f
feat(core): shift from 'master' to 'main' as default branch and base (#7111)
* chore(core): fix some broken tests

* docs(core): update docs to represent master -> main

* chore(core): review changes

Co-authored-by: Jason Jean <jasonjean1993@gmail.com>

* chore(core): add migration script for backwards-compat w/ main default.

Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
2021-10-08 16:48:02 -04:00
Colum Ferry
2f2ede5ca5
cleanup(angular): add unit and e2e tests for extra reassurance (#6626)
* cleanup(angular): add unit and e2e tests for extra reassurance

After tests didn't fail but issues were introduced, add some extra tests to help catch breaking
changes

* chore(angular): increase timeout for e2e tests

* fix(angular): mfe not installing webpack correctly

Co-authored-by: Miroslav Jonaš <meeroslav@users.noreply.github.com>
2021-10-06 14:15:39 +01:00
Miroslav Jonaš
a01a5c9d34
chore(repo): split e2e-workspace to two applications (#7240) 2021-10-05 18:59:03 +02:00
Jack Hsu
711e80e01f
chore(react): update e2e tests to be less flaky in CI (#7247)
- the output formatting isn't consistent in CI so check file existence
  instead
2021-10-05 13:28:00 +00:00
Jack Hsu
7bef953fe6
fix(nextjs): generate nextjs app with correct pages dir for no-html-link-for-pages rule (#7230) 2021-10-04 15:50:55 -04:00
Jack Hsu
9c2a8b155c
feat(react): buildable React libraries now generate smaller ESM packages (#7199) 2021-10-04 14:39:20 -04:00
Miroslav Jonaš
2898ccd8e2
chore(core): fix broken e2e test (#7226) 2021-10-04 14:45:29 +00:00
Jason Jean
f559980d33
cleanup(core): remove checking results.json in e2e tests (#7194) 2021-10-01 14:17:34 -04:00
Jack Hsu
2cd26c47d3
fix(nextjs): fix buildable nextjs libs (#7197) 2021-10-01 14:16:03 -04:00
Kirils L
61bcab3a83
feat(nextjs): expose environment variables prefixed with NX_ (#7193) 2021-10-01 15:49:02 +00:00
Miroslav Jonaš
97e6df55b0
chore(linter): optimize e2e tests (#7171) 2021-09-30 10:58:04 +02:00
Emily Xiong
c7f18ca83b
feat(react-native): add macos tests in e2e test header (#7131) 2021-09-27 09:28:19 +02:00
Miroslav Jonaš
a61068d544
chore(repo): add isAndroid check (#7094) 2021-09-23 00:52:03 +00:00
Miroslav Jonaš
3a6c7363bc
chore(repo): switch on multiple main jobs on circleci (#6735)
* chore(repo): test osx runnner on circleci

* chore(repo): add pnpm to all the platforms

* chore(repo): comment out temporarily osx job

* chore(repo): add dummy MACOS test

* chore(repo): add workflow id

* chore(repo): switch on android

* chore(repo): remove os mains temporarily

* chore(repo): turn off all non-linux agents

* chore(repo): switch on macos run

* chore(repo): switch on android run

* chore(repo): set nx run group dynamically

* chore(repo): cleanup before merge
2021-09-21 16:57:49 +02:00
Victor Savkin
dca092874b feat(core): add examples and links to nx.dev when using --help 2021-09-17 10:02:44 -04:00
Marko Grešak
bbeb89cbc2
fix(web): fix stylesOptimization for webpack 5 (#6817)
ISSUES CLOSED: #6816
2021-09-15 15:22:07 +00:00
Jack Hsu
06d20352f7
fix(react): fix extracCss option for webpack 5 (#6925) 2021-09-03 12:17:48 -04:00
James Henry
bafabb3a11
feat(linter): add support for workspace rules (#6859)
* feat(linter): add support for workspace rules

* chore(linter): move deps to correct package

* feat(linter): workspace-lint-rules as project with test target

* chore(linter): tiny clean up

* fix(linter): update generators.json after refactor

* chore(linter): implement e2e test and PR feedback

* docs(linter): update generator docs

* docs(linter): update generator docs

* docs(linter): update generator docs
2021-09-01 12:49:11 -04:00
Jason Jean
a7f89508e5
feat(linter): cache --outputFile (#6852) 2021-08-26 11:25:51 -04:00
Emily Xiong
387af0cf3f
feat(core): add react native to main repo (#6493) 2021-08-25 15:54:23 -04:00
Jason Jean
84e7f46473
fix(repo): fix npm e2e tests (#6806) 2021-08-22 16:45:55 -04:00
Jason Jean
bfa06ce8b0
feat(misc): add generator for simple npm-package (#6784) 2021-08-20 14:10:00 -04:00
Jason Jean
85f92e740e
feat(misc): simplify npm scripts generated (#6764) 2021-08-20 12:07:26 -04:00
Lars von Qualen
6b37e4b2f1
feat(node): builder should support multiple entry files (#5741)
Adds a new option to the node build executor in order to enable multiple entry files.
2021-08-20 15:49:56 +00:00
Jason Jean
81d36ee737
fix(repo): skip package manager detection tests for other package managers (#6783) 2021-08-20 06:51:25 +00:00
Leosvel Pérez Espinosa
ff202d323c
cleanup(misc): rename oss preset to npm and update presets related docs (#6777) 2021-08-19 11:10:29 -07:00
Jack Hsu
cddb1edd56
feat(react): add format option for buildable libs (#6753)
- Clean up @nrwl/web:package executor
- Combine react package e2e tests to speed up test time
2021-08-18 23:08:30 -04:00
Miroslav Jonaš
b32062416a
fix(core): skip caching output properties missing in options and arguments (#6743)
* fix(core): add outputFile to cached outputs

* fix(core): ignore output properties missing in options and console arguments
2021-08-18 19:56:01 -04:00
Chau Tran
8297386d80
feat(node): add TS plugins support for build executor (#6677)
* feat(node): add TS plugins support for build executor

ISSUES CLOSED: #2147

* docs(node): add tsPlugins to node build executor schema

* chore(node): reformat schema json

* chore(repo): update yarn.lock

* cleanup(node): adjust tsPlugins test for node build executor

* cleanup(node): remove packageJson check for tsPlugins test

* cleanup(node): increase timeout for tsPlugins e2e test

* cleanup(node): use type import for typescript types instead of importing typescript

Co-authored-by: Chau Tran <ctran@Chaus-MacBook-Pro.local>
Co-authored-by: Miroslav Jonas <missing.manual@gmail.com>
2021-08-18 17:48:18 -04:00
Chau Tran
3bcfaf018d
feat(core): detect package manager used to invoke create-nx-(plugin|workspace) (#6749)
* feat(core): detect package manager used to invoke create-nx-(plugin|workspace)

When consumers create a new Workspace (or Plugin) using the create-nx-workspace (or
create-nx-plugin) generator, the package manager used to invoke the generator will be detected and
used as packageManager. For example: pnpx create-nx-workspace will use pnpm, yarn create
nx-workspace will use yarn. Explicit `--packageManager` flag will be priority over the detection.

* cleanup(core): reassign SELECTED_PM after each test run

* fix(core): augment args instead of hardcode --packageManager flag

* cleanup(core): use packageManagerLockFile instead of magic strings

* cleanup(core): fix typo in create-nx-workspace

* cleanup(core): ensure new workspace name for every test

* feat(core): detect package manager used to invoke create-nx-(plugin|workspace)

When consumers create a new Workspace (or Plugin) using the create-nx-workspace (or
create-nx-plugin) generator, the package manager used to invoke the generator will be detected and
used as packageManager. For example: pnpx create-nx-workspace will use pnpm, yarn create
nx-workspace will use yarn. Explicit `--packageManager` flag will be priority over the detection.

* cleanup(core): reassign SELECTED_PM after each test run

* fix(core): augment args instead of hardcode --packageManager flag

* cleanup(core): use packageManagerLockFile instead of magic strings

* cleanup(core): fix typo in create-nx-workspace

* cleanup(core): ensure new workspace name for every test

* fix(core): move detectInvokedPackageManager off of tao

Co-authored-by: Chau Tran <ctran@Chaus-MacBook-Pro.local>
2021-08-18 12:09:00 -04:00