1256 Commits

Author SHA1 Message Date
Adam L Barrett
9a5650136c
fix(react): fix differential loading in ES6 only Web/React apps (#3319) 2020-07-14 11:02:33 -04:00
Jonathan Cammisuli
3b8a10f073
feat(testing): add setupFilesAfterEnv and other configs to project's jest config file (#3224)
* feat(testing): add util to update jest configs.

* feat(testing): place configurations in jest config file rather than just the builder

* feat(testing): create migration and unit tests

* feat(testing): fix jest template

* feat(testing): fix jest template to correct unit tests

* feat(testing): include globals.ts-jest for all non babel configs

* feat(testing): include globals.ts-jest for node e2e

* feat(testing): fix migration to run properly. Also check for angular tests using the setupfile rather than builder

* feat(testing): clean up jest config functions and fix errors with some migrations

* feat(testing): add new line to package.json

* feat(testing): update object check to actually check for undefined

* chore(testing): loop through all project targets as well as targets

* chore(testing): update migration to be 10.0.0-beta.2
2020-07-13 10:45:04 -04:00
Philip Fulcher
4968b6e6e3
feat(core): add filtering arguments to dep-graph CLI (#3171)
BREAKING CHANGE:
Dependency graph will now default to having no projects selected if run without filtering arguments
2020-07-10 19:31:32 -04:00
Jason Jean
b4894797ee
fix(repo): relax the angular package test so it doesn't break between versions (#3306) 2020-07-10 11:28:49 -04:00
Jason Jean
a7b7af2dfe
feat(core): switch over to angular 10 (#3056)
* feat(core): switch over to devkit 10-rc.0

* feat(core): implement solution tsconfigs wip

* feat(angular): add angular migrations

* fix(angular): modify angularjs tests
2020-07-07 17:02:06 -04:00
Kyle Bastien
8714305283
fix(core): fix runNxNewCommand so plugin e2e tests will work. (#3267)
Fixes runNxNewCommand so plugin e2e tests will work by passing --preset=empty to new proj.

ISSUES CLOSED: #3253

Co-authored-by: root <root@Kyle.localdomain>
2020-07-03 11:12:09 -04:00
Victor Savkin
c295a98adc fix(repo): move run-commands.test into an appropriate project 2020-07-01 23:29:02 -04:00
Jason Jean
dcd6061604
fix(core): print args warning when base is not passed (#3237) 2020-06-25 21:57:49 -04:00
Brandon
24b87d115b
feat(core): adds configurable base branch and HEAD in nx.json (#3217)
* feat(core): adds configurable base branch in nx.json

new field in nx.json - defaultBranch

ISSUES CLOSED: #1791

* feat(core): split affected into config options for base and head in nx.json

Co-authored-by: agriggs <alex.griggs@gmail.com>
2020-06-25 10:24:37 -04:00
Jack Hsu
1b34bd791c
fix(react): add styled-jsx type definitions for React libs (#3221) 2020-06-23 09:15:10 -04:00
Jo Hanna Pearce
06a7080132 feat(core): implicitDependency tests for mv & rm schematics 2020-06-22 12:38:52 +01:00
Victor Savkin
7cbf4ffd88 feat(core): add oss preset to create-nx-workspace 2020-06-19 13:01:57 -04:00
Victor Savkin
73bcba6ac5 fix(core): only set FORCE_COLOR=true when using pipe to capture output 2020-06-16 10:10:29 -04:00
Victor Savkin
96a7f69d33 feat(core): add second way of capturing output 2020-06-15 16:55:35 -04:00
Adam L Barrett
2700cb7596
feat(react): make React schematics use babel-jest by default (#3154)
* feat(react): make React schematics use babel-jest by default

The babelJest option was removed from the React application
and library schematics and set to true by default

ISSUES CLOSED: 2365

* feat(react): remove babelJest option test
2020-06-11 16:26:23 -04:00
Victor Savkin
c228ea6848 feat(repo): add detailed instructions on how to publish to local registry 2020-06-10 11:33:41 -04:00
Victor Savkin
d84a2bd075 fix(repo): misc fixes to stabilize e2e tests 2020-06-08 17:11:18 -04:00
Victor Savkin
e71ceba4ce feat(repo): run e2e tests using nx 2020-06-07 23:31:38 -04:00
Rares Matei
6384bde734
feat(core): load root .env in all nx processes (#3081)
Co-authored-by: Isaac Mann <isaacplmann@users.noreply.github.com>

Co-authored-by: Isaac Mann <isaacplmann@users.noreply.github.com>

Co-authored-by: Isaac Mann <isaacplmann@users.noreply.github.com>
2020-06-05 14:49:10 -04:00
Jonathan Cammisuli
3a4a3bea13
fix(core): use typescript module resolution for linting (#3075)
* fix(core): use typescript module resolution only for linting

* fix(core): fix unit tests

* fix(core): pass npm scope to target project locator for fallback

* chore(core): move comment about npmscope
2020-06-05 11:11:17 -04:00
Victor Savkin
260f73a338 feat(angular): add a script to warn when ng is used instead of nx 2020-06-04 21:05:01 -04:00
Jo Hanna Pearce
319f7d0f26 feat(angular): add addModuleSpec flag to library schematic + refactor 2020-06-03 16:46:42 -04:00
Jack Hsu
43460cc7b7 feat(linter): add quiet option for eslint 2020-06-03 16:44:59 -04:00
Victor Savkin
d0cbc35efa feat(repo): build nx with nx 2020-06-03 16:25:25 -04:00
Brandon
6e79f255a0
fix(core): support --only-failed option with run-many command (#3054) 2020-05-29 17:26:43 -04:00
Juri Strumpflohner
e7297f58af
feat(react): copy README when building libraries (#3091) 2020-05-29 15:20:09 -04:00
Jack Hsu
d593153a33
feat(react): refactored babel support so options are more easily customized (#3089)
This reverts commit 7679df22f5b90d085b5f32f2135d828036ee5aa7.
2020-05-29 02:09:47 -04:00
Victor Savkin
48d953e4d7 feat(angular): add preserveAngularCLILayout option to ng-add 2020-05-28 20:07:32 -04:00
Victor Savkin
7679df22f5 Revert "feat(react): refactored babel support so options are more easily customized (#3058)"
This reverts commit 0e036272cbe156fe9750a2f2bc6498a08cf7f457.
2020-05-28 13:11:56 -04:00
Jack Hsu
0e036272cb
feat(react): refactored babel support so options are more easily customized (#3058) 2020-05-26 09:16:36 -04:00
Jonathan Cammisuli
b9fd69b161
fix(core): split namespace for library dependencies (#3073)
* fix(core): split namespace for library dependencies

npm deps have `npm:` included in their names, and we should not check that namespace when looking into the package.json

* fix(core): review changes
2020-05-25 14:40:01 -04:00
Benedikt D Valdez
dbda2b8904
feat(core): generate static website with dep-graph --file=foldername.html (#3049)
* feat(core): generate static website with dep-graph --file=dep-graph.html

ISSUES CLOSED: #3048, #2005

* fix(core): only allow .json and .html extensions in dep-graph file arg

# Conflicts:
#	packages/workspace/src/command-line/dep-graph.ts
2020-05-25 13:46:14 -04:00
Jack Hsu
bd5ca7d909
fix(nextjs): copy public folder to dist when building Next app (#3047)
Closes #3019
2020-05-22 15:56:15 -04:00
Victor Savkin
0c4c39f69c fix(repo): cache the results of all npm installs to speed up e2e tests 2020-05-19 20:50:00 -04:00
Victor Savkin
a95cba3144 feat(core): support different workspace layouts 2020-05-17 16:39:14 -04:00
Jason Jean
ec1dfba6f6
feat(repo): add tests for create-nx-workspace (#3000) 2020-05-15 11:30:11 -04:00
Adam L Barrett
c00f996bea
fix(testing): add a guard to not accidently publish to the registry (#2978) 2020-05-09 13:36:19 -04:00
Adam L Barrett
515cc37ec6
Use local-registry for E2E tests (#2821) 2020-05-09 12:05:17 -04:00
Jonathan Cammisuli
4095d21d20
feat(core): add npm dependencies to package.json for publishable libs (#2879) 2020-05-08 13:54:00 -04:00
Michael Kriese
69faaed32d
fix(core): fix path for secondary entrypoints (#2498)
Related to #1765
2020-05-06 10:40:17 -05:00
Jack Hsu
8e6ad2ffab
feat(react): add assets option for package builder to copy files to output path (#2933) 2020-05-01 09:16:49 -04:00
Jason Jean
e06822da7e
chore(repo): update prettier to v2 (#2934)
this is just for the repo, and not the workspace

Co-authored-by: Rares Matei <matei.rar@gmail.com>
2020-04-29 01:09:37 -04:00
Rares Matei
9b585cb3b8
feat(core): update prettier to 2.0.4 (#2885) 2020-04-28 23:10:10 -04:00
Jonathan Cammisuli
b4fc65cdf8
fix(react): do not include package.json in libs without publishable flag (#2896) 2020-04-27 10:09:56 -04:00
Jo Hanna Pearce
54d06f0fc9
feat(react): upgrade redux toolkit version and generated slice code (#2835) 2020-04-17 11:42:08 -04:00
Devin Shoemaker
b245d12d67
feat(nx-plugin): add builder schematic (#2769)
This change adds a new schematic that generates a builder for an Nx plugin.
2020-04-16 16:00:49 -04:00
Devin Shoemaker
d385030b4b
feat(nx-plugin): add "schematic" schematic (#2708)
This change adds a new schematic that generates a schematic for an Nx plugin.
2020-04-16 15:08:45 -04:00
Devin Shoemaker
e44af492dd
feat(nx-plugin): add migration schematic (#2692)
This change adds a new schematic that generates a migration for an Nx plugin. The user can specify the version for the migration, and optionally add a custom name, description, and whether or not to include package.json updates.
2020-04-16 15:00:08 -04:00
Jack Hsu
36e1d40784
feat(nextjs): support building and serving production server (#2792) 2020-04-04 14:57:08 -04:00
Brandon Roberts
49d8ce1297 feat(angular): update Angular libraries to version 9.1.0 2020-03-31 11:25:30 -04:00