647 Commits

Author SHA1 Message Date
Phillip Barta
52e3083a19
feat(core): added encoding param in Tree.read() (#5668)
feat(core): added encoding param in Tree.read()
2021-05-17 21:03:04 -04:00
Noriyuki Shinpuku
cdb4cdc196
fix(react): fix application template for strict mode (#5552) 2021-05-14 12:00:13 -04:00
Noriyuki Shinpuku
bcdbb02aaf
feat(react): update generator defaults in workspace.json for strict mode (#5529)
ISSUES CLOSED: #5250
2021-05-14 10:06:42 -04:00
Leosvel Pérez Espinosa
678818a58b
feat(angular): upgrade Angular to v12.0.0-rc.3 (#5630)
* feat(angular): upgrade Angular to v12.0.0-rc.3

* feat(angular): target Nx v12.4.0-beta.0 for Angular v12.0.0-rc.0 upgrade

* fix(angular): use defaultConfiguration if no other configuration is passed

* cleanup(angular): sync migration folder name to target version

* fix(repo): creating custom schema flattener for docs

* chore(repo): amend yarn.lock

* feat(angular): update angular storybook to use webpack 5

* fix(angular): add legacy peer deps for angular+jest

* fix(angular): move migrations to 12.3.0-rc.0

Co-authored-by: Zack DeRose <zack.derose@gmail.com>
Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
2021-05-12 12:20:12 -04:00
Kirils L
d251a4f49f
feat(nextjs): update to 10.2.0 (#5503) 2021-05-06 00:05:40 +03:00
Noriyuki Shinpuku
321815d56d
fix(react): fix react library generator for strict option (#5249) 2021-05-02 22:01:51 -04:00
Noriyuki Shinpuku
6cb1dc65d0
feat(react): add strict option to react application generator (#5248) 2021-05-02 22:01:43 -04:00
Katerina Skroumpelou
6b7b6815c1
feat(storybook): update Angular Storybook to use new Storybook v6 syntax (#5398) 2021-04-29 11:02:04 +02:00
Tasos Bekos
156e3c2c40 chore(repo): use jest-circus runner 2021-04-26 15:16:09 -04:00
Minijus L
357ecd09a4
fix(testing): update ts-jest to version 26.5.5 (#5405)
Update `jest.config.js` ts-jest section with lower-cased 'tsconfig' property as 'tsConfig' is to be deprecated in version 27.
2021-04-26 08:56:52 -04:00
Vivek
4a5345363b
docs(misc): update READMEs to have alt on <img> tags (#5306) 2021-04-22 13:36:00 +00:00
Rares Matei
bd21728255
feat(storybook): infer Cypress project name from app source (#5404) 2021-04-22 15:16:49 +02:00
Tuan Dang
13ca51c60a
fix(storybook): generate story file in new jsx transform (#5369)
fix(storybook): generate story file in new jsx transform
2021-04-16 08:45:52 -04:00
Jason Jean
d007d37fb4
fix(devkit): add env variable to disable project graph cache (#5297) 2021-04-15 10:29:33 -04:00
Tuan Dang
656d808aa3
fix(react): fix react publish library copy readme (#5345) 2021-04-15 00:01:03 -04:00
Jack Hsu
a51d19ff8b
fix(react): generate apps/libs using Emotion CSS with valid .babelrc files (#5336) 2021-04-13 12:04:31 -04:00
Rares Matei
6c4155dac6
feat(storybook): configure Cypress directory (#5314) 2021-04-12 14:06:51 +02:00
vsavkin
908103e713 fix(react): fix malformed babelrc 2021-04-10 21:17:17 -04:00
vsavkin
38c111ba06 chore(repo): update to nx 12 2021-04-07 12:31:23 -04:00
Jack Hsu
a647e19303
feat(react): use "@babel/plugin-transform-runtime" so babel helpers can be reused (#5257) 2021-04-07 06:08:12 +00:00
katerina
379d48f1f9 feat(react): remove @types/react-redux package and migrator for older projects
ISSUES CLOSED: #5149
2021-04-06 20:21:40 -04:00
Jason Jean
bfb194843f
feat(core): remove readFile argument from createProjectGraph (#5206)
* feat(core): deprecate creating a project graph from a host

* feat(core): remove readFile argument from createProjectGraph
2021-04-06 13:44:09 -04:00
Jack Hsu
c84bbb3c93
feat(react): add support for new jsx transform (#5131) 2021-04-01 13:46:12 +00:00
Tasos Bekos
ead6dd8864
chore(repo): run e2e outside project directory on CI (#5037) 2021-03-26 11:19:31 -04:00
Vivek More 🧐
212fb00548 cleanup(misc): use more es6 features
- Single char alternation (e.g. a|b|c|d) in a RegExp can be simplified to use a character class ([abcd]) instead.
  This usually also provides slightly better matching performance.
- Character escapes that are replaceable with the unescaped character without a change in meaning. Inside the square brackets of a character class, many escapes are unnecessary that would be necessary outside of a character class. For example the regex [\.] is identical to [.]
- If several qualified expressions occur after the qualifier having been checked for nullable, they can be replaced with optional chaining
2021-03-24 20:11:32 -04:00
Vivek
d1b09eaabd
cleanup(misc): make code more consistent and fix typos 2021-03-23 13:03:17 -04:00
Noriyuki Shinpuku
6dbdaee9f6
feat(react): add strict option to react library generator (#5006) 2021-03-16 10:31:14 -04:00
Jack Hsu
ddec362a5a
fix(nextjs): update babel setup to better support next apps (#4944)
* fix(nextjs): update babel setup to better support next apps

* fix(testing): remove babel-jest.config.json used in jest.config.js

- Fix `@nrwl/web/babel` to support Jest as well
2021-03-09 21:32:36 +00:00
Jason Jean
fc9caccffb
chore(repo): update nx to 11.5.0-beta.0 (#4957) 2021-03-05 19:57:26 -05:00
James Henry
48c7c7b6a3
fix(core): always use project level tsconfigs with eslint (#4657)
* chore(core): increase coverage of eslint config file contents

* fix(core): always use project level tsconfigs with eslint

* chore(core): enhance depcheck to ignore type only imports

* chore(linter): migration always-use-project-level-tsconfigs-with-eslint

* fix(core): snapshots

* feat(core): thin wrapper around tseslint parser

* fix(core): depcheck for eslint-plugin-nx

* fix(core): revert wrapped parser

* fix(linter): add tsconfig root dir to allow for normalized paths for project configs

* fix(linter): move migration to 11.5.0

* fix(linter): add dependency on to @nrwl/workspace

Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
2021-03-05 11:48:18 -05:00
Jason Jean
956dfe6509
fix(react): add dependency onto @nrwl/workspace (#4865) 2021-02-23 11:39:02 -05:00
Tasos Bekos
3de68dc529 chore(repo): fix npm@7 publish for e2e 2021-02-18 11:01:27 -05:00
Jason Jean
785754ecb5
fix(react): fix storybook generator (#4808) 2021-02-16 19:45:56 +00:00
Jason Jean
2bf04b4c61
fix(react): fix init generators for react (#4787) 2021-02-12 16:47:35 -05:00
Jason Jean
18c8b2b30d
fix(core): change running tasks in parallel to running in serial (#4785) 2021-02-12 21:39:55 +00:00
Jason Jean
33acb41afb
cleanup(react): cleanup generators for react and next (#4769) 2021-02-12 15:29:31 -05:00
Jonathan Cammisuli
871b3c8f35
fix(react): set defaults properly for unitTestRunner and e2eTestRunner (#4781)
Also sets the schema.json files to be nx
2021-02-12 15:46:52 +00:00
Jack Hsu
e71cef0ba9
feat(nextjs): convert Next.js schematics to generators (#4756) 2021-02-11 05:39:49 +00:00
Jonathan Cammisuli
d9aef75bd5
chore(react): move react schematics to generators (#4745)
* chore(react): move react schematics to generators

* chore(react): update lib generators

* chore(react): update redux generators

* chore(react): move react story book generators

* chore(react): add old implementation for update babel in next

* chore(react): rename tsconfig json template files to include __tmpl__

* chore(react): update deps

* chore(react): fix component template file

* chore(react): remove angular-devkit deps

* chore(react): remove angular-devkit deps
2021-02-10 21:30:55 -05:00
Jason Jean
f880bd295d
feat(react): remove references to angular devkit from @nrwl/web (#4705) 2021-02-04 16:56:44 -05:00
Jason Jean
06f84b3326
feat(react): migrate @nrwl/web schematics to devkit (#4666) 2021-02-02 18:56:35 -05:00
katerina
0fc65d8763 feat(storybook): Storybook v6 migration generator for default configurations
Co-authored-by: Philip Fulcher <philip@nrwl.io>
2021-02-01 09:17:49 -05:00
Jason Jean
b36c4b5cc1
fix(linter): add @nrwl/linter as a devDependency and error on improper enum schema (#4634) 2021-01-28 16:30:10 -05:00
Victor Savkin
14503c27c9 Revert "feat(storybook): storybook v6 migration generator for default configuration"
This reverts commit e3c46f3fefd39c3095651d6074a04c0590433ecb.
2021-01-28 16:26:19 -05:00
Katerina Skroumpelou
e3c46f3fef
feat(storybook): storybook v6 migration generator for default configuration
Co-authored-by: Philip Fulcher <philip@nrwl.io>
Co-authored-by: Juri <juri.strumpflohner@gmail.com>
2021-01-28 21:45:32 +01:00
Jesse M. Holmes
852d7391fb
fix(react): merge options.output.globals with extraGlobals (#4571)
ISSUES CLOSED: #3789
2021-01-25 13:41:00 -05:00
Victor Savkin
a25e081a84 feat(core): remove angular devkit deps 2021-01-25 12:52:30 -05:00
William Ghelfi
742ea79d53
Fix svgr/webpack conf (#4327)
* fix(misc): avoid issues with refs in SVGs

The previous "import friendly" syntax was actually disabling refs in SVGs parsed by svgr.

I found 3 possible solutions:
1. Removing "![path]"
2. Separating "+ref![path]" with another comma: "+ref,![path]"
3. Rewriting the loader entry in the style of the other loader entries

I chose the last one for added clarity within the file.

* fix(core): fix compilation errors
2021-01-15 09:09:55 -05:00
Sebastian Duque Gutierrez
d70d58fec3
Install @types/react-redux as devDependency for redux schematic (#4243)
* fix(react): add typings as devDep for react-redux schematic

Tell the user that --skip-nx-cache option can be used with the execution of targets. The option
will
be displayed in both 'nx --help' and 'nx [project][:target][:configuration] --help'
commands.
ISSUES CLOSED: 3338

ISSUES CLOSED: 4225

* feat(core): add move npm package workspace utility

Provide the moveNpmPackage workspace utilite to move one/multiple package(s) between dependencies or
devDependencies

ISSUES CLOSED: 4242

* feat(react): add 11.0.0 migration to move react-redux types to devDeps

Provide the moveNpmPackage workspace utilite to move one/multiple package(s) between dependencies
or
devDependencies
ISSUES CLOSED: 4242

* cleanup(core): rename moveNpmPackages param name to match type

Provide the moveNpmPackage workspace utilite to move one/multiple package(s) between
dependencies
or
devDependencies
ISSUES CLOSED: 4242
2021-01-08 14:53:00 -05:00
Victor Savkin
599923bc68 fix(misc): remov peer deps to make npm 7 install work
Closes #4436
2021-01-07 20:27:11 -05:00