1461 Commits

Author SHA1 Message Date
Victor Savkin
04a9c5edbb feat(core): minor cache improvements to improve dev ergonomics 2020-02-04 15:02:19 -05:00
Victor Savkin
33107b050c feat(core): remove deprecated schematics package 2020-02-04 12:14:52 -05:00
Jason Jean
ed0f0f8487
feat(react): rename bundle builder to package (#2411) 2020-02-03 09:04:29 -05:00
Victor Savkin
3d36b15c8f feat(repo): specify the version of yarn used by the repo 2020-02-01 21:14:26 -05:00
Victor Savkin
e70f91170f feat(core): add life cycle methods to the new tasks runner 2020-02-01 21:14:26 -05:00
Jason Jean
6e069c4a34
fix(misc): fix paths for ng add @nrwl/workspace (#2413) 2020-02-01 11:41:02 -05:00
Jason Jean
972381bc3f
feat(testing): update to jest-preset-angular v8.0.0 (#2401)
* feat(testing): update to jest-preset-angular v8.0.0 part 1

Updates to jest-preset-angular to v8.0.0, includes migrations to fix any existing projects affected
by the jest-preset-angular update.

closes #1979

* feat(testing): update jest-preset-angular to v8.0.0 part 2

Closed issues: #1979, #2165

Co-authored-by: Joshua D. Mentzer <mentzerj@trinity-health.org>

* feat(testing): update jest-preset-angular to v8.0.0 part 3

Co-authored-by: mentzerj <mentzerj@trinity-health.org>
Co-authored-by: Mehrad Rafigh <4339673+mehrad-rafigh@users.noreply.github.com>
2020-02-01 11:34:31 -05:00
Jason Jean
adc2b2a2c4
fix(storybook): fix ng update for @nrwl/storybook (#2410) 2020-01-31 16:33:43 -05:00
Jason Jean
b6e6b3f1c3
Revert "Revert "feat(core): update to next version of angular deps"" (#2264)
This reverts commit f816fc424d4b0d850e0a49d0ed8e4a30ddca308c.
2020-01-31 13:08:50 -05:00
Jonathan Cammisuli
1c4078986f
TypeScript module resolution and lint updates (#2309)
* Revert "Revert "fix(core): sort node names for module resolution""

This reverts commit 0b77072fcfe63f8d02fccb73ba138aca99cb7f66.

* fix(core): add target project locator

This will sort nodes by length of the root (high to low) then nodes that have no root.

It also uses TypeScript to first try and resolve a module. If it is not found via TypeScript, it will
fall back to using a string match.
2020-01-31 13:08:12 -05:00
Jo Hanna Pearce
c4ea49c3c6 fix(nextjs): add SVGR support for jest tests 2020-01-31 11:23:49 +00:00
Jo Hanna Pearce
2f72133dc7 feat(nextjs): add fileReplacements to the builder config 2020-01-31 11:23:49 +00:00
Jason Jean
3cf5b996d6
cleanup(storybook): remove more module related code (#2408) 2020-01-30 22:14:50 -05:00
Jason Jean
05dbcef537
fix(storybook): remove ng module import from angular stories (#2399) 2020-01-30 10:10:30 -05:00
Jason Jean
3ef75b85c1
fix(repo): extend the timeout for plugin e2e tests (#2402) 2020-01-30 10:10:13 -05:00
Jason Jean
c96bdd44b8 cleanup(testing): cleanup unused method in jest init 2020-01-29 17:43:32 -05:00
Jason Jean
f923697358 fix(core): invalidate previous failed projects 2020-01-29 17:43:21 -05:00
Juri
c213ae1a99 fix(misc): update package.json only if needed
Adjusts the schematic to only touch the package.json if really required

ISSUES CLOSED: #2317
2020-01-28 21:26:22 -05:00
Jo Pearce
8c99bc3da7
feat(angular): add --project alias, default argv source and example to move schemas (#2390) 2020-01-28 16:46:29 +00:00
Victor Savkin
aab5cf9284 Release 8.12.0 2020-01-27 16:07:07 -05:00
Victor Savkin
f5d4af2a22 feat(core): create create-nx-plugin package to fix npx issues 2020-01-27 13:09:04 -05:00
Victor Savkin
6706a05042 feat(misc): move create-nx-plugin create script into create-nx-workspace package 2020-01-27 09:45:08 -05:00
pesoklp13
77238e2ce7 feat(core): accept style argument for create-nx-workspace (#2294)
* add style as an available argument for create-nx-workspace command
* updated determineStyle based on parsed argument if passed into command
2020-01-27 13:39:51 +00:00
Victor Savkin
ea85a11adb feat(core): add 'nx migrate' command to package.json 2020-01-26 22:02:05 -05:00
Juri
27c6afc95b fix(core): register node package install executor
Without this registration npm installs won't work with the Nx migrate command
2020-01-26 11:04:08 -05:00
Benjamin Cabanes
5109548710 feat(core): add peerdependency cypress for nrwl/cypress (#2373) 2020-01-24 14:52:22 -05:00
Jason Jean
3eeb7bf47f
fix(core): fix nx.json and workspace.json analysis (#2375) 2020-01-24 14:52:04 -05:00
Brandon
d7be9c1694 feat(core): add support for interactive mode when using presets (#2258)
* feat(core): add support for interactive mode when using presets

* fix(angular): get interactive flag from schematic context for preset task

* docs(core): add note about using interactive mode with presets

* fix(core): update parsing of interactive argument for preset
2020-01-24 13:00:35 -05:00
Jason Jean
b30930f95f
feat(core): analyze changes to nx.json and workspace.json (#2338) 2020-01-24 12:59:31 -05:00
Rares Matei
616fbd6c0d fix(testing): fix race condition in tests for parallel commands runner (#2358)
* fix(testing): fix race condition in tests for parallel commands runner

We are now checking for the presence of both command outputs regardless of the order they were
written in to the file

* fix(testing): check if the runner schedules all tasks when running in parallel

In addition to checking whether the tasks complete and they write to the file, we are now also
checking if the runner creates all the tasks synchronously when invoked with parallel: true, vs.
zero or at most 1 when ran in serial mode.

* fix(testing): wait a micro-tick for the serial cmd test runner

Due to differences in implementation between serial and parallel runner, we need to wait for a
micro-tick in the serial test runner tests before checking for calls to spawn-process, otherwise it
would be zero.
2020-01-24 12:03:48 -05:00
Juri Strumpflohner
f951a1bc9b feat(angular): library builder to handle buildable libraries with deps (#2307)
This builder makes sure using buildable libraries depending on
other buildable libraries works as expected, without limiting the
current dx with auto-reload when using libraries within apps.
2020-01-24 10:19:24 -05:00
Benjamin Cabanes
02e95d9f8c fix(testing): cypress & fork ts checker plugin (#2316) 2020-01-23 22:10:09 -05:00
Jason Jean
6c10aa4610
feat(core): updating cypress version nrwl/cypress (#2370)
Co-authored-by: Benjamin Cabanes <contact@benjamincabanes.com>
2020-01-23 22:04:59 -05:00
Jonathan Cammisuli
ff45b7ee44 fix(core): set default linter for schematics in newly created workspaces (#2364)
a default linter is added to the following:
`@nrwl/node:library` and `@nrwl/nx-plugin:plugin`
2020-01-23 10:20:30 -05:00
Alexander Herrmann
26d251acb7 docs(react): added missing react import line (#2354)
ISSUES CLOSED: nrwl/nx#2304
2020-01-23 09:58:08 -05:00
Jack Hsu
8c930f3283
fix(react): migrate React projects with missing options (#2352) 2020-01-21 20:53:24 -05:00
Jo Pearce
e72c3baf1f feat(nextjs): allow SVG imports from non-TS/JS modules (#2359) 2020-01-21 20:05:55 -05:00
Jonathan Cammisuli
fe98e29e4b feat(nx-plugin): add new package for creating nx plugins 2020-01-21 15:18:13 -05:00
Jonathan Cammisuli
ca69622ebe fix(misc): update dependencies for angular, linter, react and workspace 2020-01-21 15:00:38 -05:00
Juri
98a60d118f feat(core): add enforceBuildableLibDependency to make buildable lib rule configurable
This way if the buildable lib dependency rule doesn't work for some people they have an easy way to
opt-out of it
2020-01-21 12:02:13 -05:00
Juri
36463cf2a2 feat(core): add rule to enforce deps buildable-lib to buildable-lib
buildable libraries should only be able to import other buildable libraries
to avoid confusion. Importing non-buildable libs would effectively
mean embedding their src into the buildable libs, even potentially
multiple times.
2020-01-21 12:02:13 -05:00
Jack Hsu
20885513ae
fix(react): add fallback for SVG imports coming from non-TS/JS modules (#2351) 2020-01-21 10:06:30 -05:00
Jack Hsu
1132d9ec57
feat(react): add support for css modules (#2349)
Closes #1744
2020-01-20 15:52:34 -05:00
Jack Hsu
f7590cd5d4
chore(react): cleans up polyfill logic and provide custom-element polyfills when choosing wc preset (#2347)
Closes #1250
2020-01-20 15:08:01 -05:00
Jack Hsu
a0299cbb64
feat(react): update to babel 8.7.0 which includes nullish coalescing and optional chaining (#2346) 2020-01-20 13:49:54 -05:00
Juri Strumpflohner
77298797ed feat(repo): add --local to release and publish script (#2323)
This allows for easier publishing to a local npm registry (i.e. Verdaccio)
2020-01-20 11:36:13 -05:00
Jack Hsu
121d070321
feat(react): update styled-components to v5 (#2335) 2020-01-20 10:04:20 -05:00
Victor Savkin
ed2259b5f1 feat(core): hash tasks in run commands 2020-01-19 16:19:23 -05:00
Victor Savkin
5a145fedde Release 8.11.2 2020-01-18 12:02:48 -05:00
Jack Hsu
2ca8d10fe5 fix(react): suppress erroneous warning coming from license-webpack-plugin 2020-01-18 12:00:46 -05:00