709 Commits

Author SHA1 Message Date
Emily Xiong
9eb3ac58e9
chore(react-native): uncomment detox e2e test to build and test native ios (#7479) 2021-11-08 12:33:13 -05:00
Colum Ferry
8d6ac4f694
chore(angular): support angular 13 (#7161)
* chore(angular): support angular 13

Support Angular 13

chore(angular): support ng 13 next 11

chore(angular): upgrade tslib dep

chore(angular): update package and ng-packagr-lite executors to align with ng-packagr v13

chore(angular): update test snapshots with ts version

fix(angular): buildable lib tsconfig transform test

* chore(angular): sync ng-packagr changes to the package and ng-packagr-lite executors

* chore(angular): add migrations

* chore(angular): rxjs7

* feat(angular): check rxjs version to install

* feat(angular): update jest resolver to resolve esm

* chore(angular): fix version

* chore(angular): support jest-preset-angular

* fix(angular): tests

* fix(angular): fix e2e tests and add .angular to gitignore

* fix(angular): fix jest transformers ignore pattern

* fix(angular): fix node test

* fix(angular): fix workspace test

* fix(angular): import marble utils from jasmine-marbles instead of @nrwl/angular/testing

* feat(angular): update ngrx to 13.0.0-beta.;0

* fix(angular): temporarily skip test with pnpm

* fix(angular): bump jest-preset-angular to fix jest performance issues

* fix(angular): webpack-browser and server schema changes

Co-authored-by: Leosvel Pérez Espinosa <leosvel.perez.espinosa@gmail.com>
Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
2021-11-08 12:01:55 -05:00
Caleb Ukle
0ca5a88bf1
fix(testing) generated jest ts configs mismatch (#7556)
* fix(testing): add .test. files to spec tsconfig template

add support for .test.ts and with supportTsx .test.{js|tsx|jsx} files
in the tsconfig.spec.json template.

Note each package that excludes testing files will need to be updated to
exclude the new files (coming in future commits)

* fix(angular): add .test.ts support in tsconfigs

add .test.ts in angular jest template
update angular generators to exclude test files

* fix(gatsby): add .test. file prefixes to tsconfig ignore

ignore the new .test.{js|ts|jsx|tsx} files added to jest configs

* fix(react): add .test. file prefix to app/lib tsconfigs

add .test.{ts|js|tsx|jsx} files to be excluded by app/lib tsconfig

* fix(node): add .test. file prefix to app/lib tsconfig

add .test.{ts|js|tsx|jsx} files to be excluded by app/lib tsconfig

ISSUES CLOSED: #7263

* fix(nest): update tests for new .test.ts files in tsconfig

update tests to account for changes in node generators which add .test.ts to the exclude of
tsconfigs

* fix(express): update tests to account for new tsconfig changes

updated snapshots
added new patterns for tsconfig

* fix(linter): update snapshots for new tsconfig changes

snapshot updated to include new .test.ts file changes for tsconfig

* fix(node): update testing to account for spec tsconfig changes

add .test.ts files in e2e tests

* fix(testing): add migration for tsconfig changes

initial migration and test for tsconfig changes

* chore(testing): add to migrations collection

add the update-ts-config-for-test-filenames to migrations

* fix(testing): fix filesystem issue with jest tests

mock readConfig to always return an basic config to prevent issues of not finding a config in non
linux environments, aka missing /root

* cleanup(testing): update error message

update message logged when tsconfig isn't found to mention what was trying to be accompished so it
can be manually updated if desired.
2021-11-05 14:25:25 -05:00
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