58 Commits

Author SHA1 Message Date
Caleb Ukle
85b3315b34
chore(misc): update snapshots to latest format (#16276) 2023-04-14 11:29:06 -04:00
Leosvel Pérez Espinosa
fa8ede1b4b
cleanup(angular): add unit tests coverage for generating a minimal application (#15693) 2023-03-20 16:00:37 +00:00
Leosvel Pérez Espinosa
e9b5181696
cleanup(angular): remove tsconfig.spec.json handling from application generator (#15731) 2023-03-20 10:56:23 -04:00
Leosvel Pérez Espinosa
a91513d961
fix(angular): do not set angularCompilerOptions in e2e tsconfig when generating an app (#15729) 2023-03-20 09:43:27 +00:00
Colum Ferry
d1d69e230c
cleanup(angular): replace usage of wrapAngularDevkitSchematics for application (#15698)
Co-authored-by: Craigory Coppola <craigorycoppola@gmail.com>
2023-03-17 08:34:15 +00:00
Leosvel Pérez Espinosa
3670f20fdb
cleanup(angular): fix unit tests setup so peer deps are not installed with ensurePackage (#15560) 2023-03-09 15:18:04 +00:00
Colum Ferry
2ab66dd410
cleanup(angular): remove karma generation support (#15419) 2023-03-09 11:28:31 +00:00
Colum Ferry
1e6a4f8e65
feat(angular): prompt users for standalone components in application (#14987) 2023-02-17 20:44:10 +00:00
Colum Ferry
066c3b1e71
fix(angular): unit test runner none should skip tests (#14916) 2023-02-10 16:15:33 +00:00
Dirko Odendaal
ee909cf7a5
feat(misc): conditionally allow starter template inclusion (#14268)
Co-authored-by: Colum Ferry <cferry09@gmail.com>
2023-01-27 15:07:07 +00:00
Jack Hsu
d7536aa7e3 feat(core): clean up workspace configuration code 2023-01-23 19:35:15 -05:00
Colum Ferry
3041b0a227
fix(angular): correctly error application when standalone is used in Angular < 14.1.0 (#14338) 2023-01-13 20:04:47 +01:00
Victor Savkin
422c8c735a cleanup(core): clearly split nx.json config and projects config 2023-01-05 15:35:36 -05:00
Victor Savkin
82fbb98e7d feat(misc): dont generate defaultProject for non standalone workspaces 2022-12-21 09:15:26 -05:00
Jason Jean
61d7d74378 fix(misc): fix tsconfig file includes 2022-12-05 10:39:03 -05:00
Victor Savkin
91c19f5c0a
feat(misc): do not generate tsconfig.base.json for simple standalone … (#13605) 2022-12-05 10:07:01 -05:00
Miroslav Jonaš
22e70d614e
fix(angular): fix root-project support for Angular (#13534) 2022-12-01 15:14:08 +01:00
Victor Savkin
16fd4374d6 feat(misc): derive workspace layout dynamically 2022-11-23 15:45:13 -05:00
Leosvel Pérez Espinosa
70e43cdc77 feat(angular): add a preset to generate a workspace with a single app at the root 2022-11-21 11:17:03 -05:00
Colum Ferry
b084dddff0
feat(angular): support for Angular 15 (#12112) 2022-11-17 09:31:45 -05:00
Colum Ferry
6125dc011b
fix(angular): broken test (#12286) 2022-09-28 16:35:30 +01:00
Colum Ferry
56957cc292
cleanup(angular): remove deprecated schema options from app generator (#9821) 2022-09-28 15:55:24 +01:00
Colum Ferry
6d9ec39c75
feat(angular): create routes file pattern (#11930)
add host remote correctly

library routes

fix tests
2022-09-28 15:54:53 +01:00
Craigory Coppola
9b63ce167a
feat(core): don't generate workspace.json for v2 workspaces (#12127) 2022-09-27 23:16:22 +00:00
Ashley Hunter
730d3235b4
feat(angular): add types to the generated tailwind configuration (#12018) 2022-09-15 14:34:46 +01:00
Colum Ferry
af93cfd597
feat(angular): add standalone app generation (#11592) 2022-08-17 12:03:56 +01: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
Caleb Ukle
bd4e6ac323
fix(testing): exclude jest.config.ts in angular project tsconfigs (#11468) 2022-08-05 12:15:56 -05:00
Leosvel Pérez Espinosa
ba592f8a99
fix(angular): do not set a module federation remote project as the default project (#11127) 2022-07-13 14:19:06 +01:00
Caleb Ukle
8154191eb1
feat(testing): Cypress 10 and component testing support (#9201)
* feat(testing): add generator to aid in the migration to cypress 10

cypress 10 introduces a new configuration format and new layout that requires update settings and
files for e2e projects

* feat(testing): cypress component tests for react/next

initial work for cypress component tests for react and next

* feat(testing): add support for v10 e2e cypress projects

create the correct files for cypress projects >v10 and reorganize tests based on version to allow
easier parsing of tests

* feat(testing): add utils for modifying cypress v10 config

provide ts transformers to take in an existing cypress config and update/add properties within the
given configuration

* fix(testing): fix tests affected by the cypress v10 changes

update tests to assert the correct files/folders/file contents due to the cypress changes in v10

* cleanup(testing): move cypress component testing plugins into the respective packages

move the plugins into out of cypress plugins into the specific vertical plugin to prevent issues
with circular refs

* cleanup(testing): bump cypress version

bump to latest cypress v10 release

* docs(testing): update docs for cypress 10

update cypress docs to include info about component testing and migration to cypress v10

* fix(repo): revert cypress version bump

keep v9 of cypress installed for nx repo until v10 release

* fix(testing): update cypress gen tsconfig and infer targets with converter

* fix(testing): make sure tests use the cypress v10 (for the intermediate)

* fix(testing): update target name after feedback

* fix(testing): support multiple target w/custom configs for cypress v10 migration

* fix(testing): refactor cy component tests into seperate verticals

* feat(testing): create storybook cypress preset

* fix(testing): clean up cy v10 migration

* fix(testing): don't branch for cypress executor testingType

* fix(testing): move cy comp test generator to next

* fix(testing): bump cypress deps

* fix(testing): clean up cy component testing generators

* fix(testing): update cy component testing docs

* fix(testign): dep check. runtime plugin pulls from @nrwl/react

* fix(testing): move e2e into verticals

* fix(testing): address PR feedback

* fix(testing): clean up unit tests

* feat(angular): support migrating angular cli workspaces using cypress v10

* chore(testing): update e2e tests

* fix(testing): address pr feedback

* chore(testing): remove cypress component testing for next.js

* fix(testing): address pr feedback

Co-authored-by: Leosvel Pérez Espinosa <leosvel.perez.espinosa@gmail.com>
2022-07-08 14:34:00 -05:00
Colum Ferry
37072bc5d6
feat(angular): replace mfe references with mf (#10957) 2022-07-01 13:48:38 +00:00
Leosvel Pérez Espinosa
ca92b7aa0b
fix(angular): set default project if not set when creating an application (#10789) 2022-06-17 11:58:01 +01:00
Leosvel Pérez Espinosa
0e21fa0368
fix(angular): normalize project name and don't default to npmScope as prefix when it's not a valid html selector (#10116) 2022-05-03 16:16:30 +01:00
Jason Jean
9f87d4c346
fix(angular): remove src from lintFilePatterns (#9940) 2022-04-21 18:54:22 -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
Leosvel Pérez Espinosa
081ff42955
fix(angular): handle newProjectRoot correctly when generating apps and libs (#9255) 2022-03-10 13:09:04 +00:00
Leosvel Pérez Espinosa
acc29e9593
fix(misc): support workspaces using a root tsconfig.json instead of tsconfig.base.json (#9195)
* fix(misc): support workspaces using a root tsconfig.json instead of tsconfig.base.json

* cleanup(angular): address pr feedback
2022-03-09 11:30:26 -05:00
Leosvel Pérez Espinosa
5afd3d6d2c
fix(angular): update tailwind content glob pattern to ignore stories and tests (#8637) 2022-01-21 11:02:23 +00:00
Leosvel Pérez Espinosa
b989e8de19
feat(angular): simplify generated tailwind config for v3 (#8471) 2022-01-12 11:33:29 +00:00
Leosvel Pérez Espinosa
2b00c99db1
feat(angular): add support for configuring tailwind in existing and new apps and buildable/publishable libs (#8043) 2021-12-16 17:25:32 +00:00
Noriyuki Shinpuku
e77c498f2d
feat(angular): update complier options for strict mode (#8126) 2021-12-14 22:32:45 -05:00
Mateo Tibaquirá
d6410162a0
fix(angular): remove numbers from the project name (#6646)
* fix(angular): remove numbers after dashes

* fix(angular): correctly handle empty libsDir

* feat(angular): validate apps with empty appsDir

* feat(angular): validate libs with empty libsDir

* fix(angular): revert change to createTreeWithEmptyWorkspace
2021-12-06 09:45:46 +00:00
Benjamin Cabanes
66e4e85067
feat(core): new nx starter (#7912) 2021-12-03 11:05:09 -05:00
Ashley Hunter
8f205715ea
fix(angular): fixing application generator when using protractor (#7603) 2021-11-10 10:41:41 -06: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
Colum Ferry
b0b9c8fc2e
feat(angular): allow port to be added to non-mfe app (#7403) 2021-10-18 14:04:38 +01: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
Alex Herbig
8addb45fd0
fix(angular): stop modifying tags that match app name (#7137)
ISSUES CLOSED: #7097
2021-10-01 14:57:26 -04:00
Ali Yusuf
93f9569deb feat(angular): add support to sass style to the generator 2021-09-15 09:58:49 -04:00
Jason Jean
a7f89508e5
feat(linter): cache --outputFile (#6852) 2021-08-26 11:25:51 -04:00