219 Commits

Author SHA1 Message Date
Nathanael
92ea179a46 fix(nextjs): change to use default next export instead of next-dev-server so prod mode is respected
ISSUES CLOSED: 5764
2021-05-28 16:36:58 +01:00
James Henry
a3c08a9153
feat(linter): do not set eslint parserOptions.project by default (#5798) 2021-05-28 13:35:34 +00:00
Kirils L
bffc239e6e
fix(nextjs): add @nrwl/next as a prod dependency for new workspaces (#5662) 2021-05-21 13:50:58 +00:00
vsavkin
319a90b6ab feat(web): add a plugin to coordinate webpack and nx builds 2021-05-19 16:12:02 -04:00
Juri Strumpflohner
75cbd54818
feat(nextjs): allow custom server to be written in TypeScript (#5510)
ISSUES CLOSED: #1933
2021-05-18 09:50:01 -04:00
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
Zachary DeRose
6fdf9d62f9
fix(repo): fixing issue with some options missing from docs (#5641) 2021-05-12 17:50:09 -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
da27b2bd6c
fix(nextjs): NODE_ENV defaults to production for builds (#5574) 2021-05-07 12:55:16 -04:00
Kirils L
d251a4f49f
feat(nextjs): update to 10.2.0 (#5503) 2021-05-06 00:05:40 +03:00
vsavkin
d767261fea fix(nextjs): default to build target for incremental serve
feat(core): support exclude with run-many
2021-04-29 15:57:26 -04:00
Jack Hsu
a7d8e2a735
feat(nextjs): add incremental build support to Next.js apps (#5360) 2021-04-20 12:01:27 -04:00
Kirils L
ffc69d41b4
feat(nextjs): add option to disable svgr (#5200) 2021-04-06 22:40:52 -04:00
Jack Hsu
76bc890f34
feat(nextjs): update Next.js to 10.1.3 (#5254) 2021-04-06 14:28:39 -04:00
kirjai
aefdf26a03 feat(nextjs): support next 10.1.2 2021-03-31 21:09:17 -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
Jack Hsu
3587492bb8
fix(nextjs): improve documentation for "nextConfig" option and provide better error messages (#5098) 2021-03-24 10:29:47 -04:00
Kirils L
14888e50f4
fix(nextjs): leverage nextjs for loading svgs (#5060)
omit our own svg loading fallback, so that next.js webpack config is used instead
2021-03-23 15:14:09 -04:00
Vivek
d1b09eaabd
cleanup(misc): make code more consistent and fix typos 2021-03-23 13:03:17 -04:00
Kirils L
0822d00e0c
fix(nextjs): support next 10.0.9 (#5033) 2021-03-17 19:40:42 +00:00
Sebastián Cruz
6e8349f6ed
Fix error when importing .js libraries into nextjs app (#4996)
ISSUES CLOSED: #4904
2021-03-17 19:46:38 +02:00
kirjai
9d863a7073 fix(nextjs): include peer dependencies in built package.json 2021-03-15 10:29:33 -04:00
Kirils Ladovs
aba5c44ec1
Tsconfig js migration (#4993)
* chore(gatsby): add migration to add js file patterns to tsconfig.app.json

* chore(nextjs): add migration to add js file patterns to tsconfig
2021-03-11 13:34:46 -05:00
Kirils Ladovs
253addef4a
chore(nextjs): add migration to remove tsconfig.app.json (#4988)
additionally, fix linter migration to migrate next.js apps correctly
2021-03-10 11:25:07 -05:00
Kirils Ladovs
df54518f33
fix(nextjs): remove tsconfig.app.json (#4970) 2021-03-09 17:39:17 -05: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
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
Jack Hsu
1591519f9e
Revert "Fix babel for NextJS and Gatsby (#4873)" (#4931)
This reverts commit affbaeeb7b624b8c42816ecca851d2fffd20d36e.
2021-03-01 13:55:44 -05:00
Damian Bielecki
affbaeeb7b
Fix babel for NextJS and Gatsby (#4873)
* chore(nextjs): replace babelrc with babel.config.js

* chore(gatsby): replace babelrc with babel.config.js
2021-03-01 09:33:34 -05:00
Katerina Skroumpelou
c9a2b2c1c0
feat(nextjs): allow custom distDir (#4885) 2021-02-26 14:35:22 -05:00
Jason Jean
fd18b5edec
feat(react): migrate next builders to devkit (#4861) 2021-02-23 11:39:20 -05: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
James Henry
4f758d435f
fix(core): restore tslint for next, clean up Linter enum usage (#4780)
* fix(core): restore tslint for next

* fix(nextjs): type issue
2021-02-12 09:12:16 -05: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
Tasos Bekos
1f534317d0 fix(nextjs): support shared assets
Closes #4552
2021-01-27 15:07:52 -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
Rick van Laarhoven
99d6b830c3 fix(nextjs): use html component from next/document 2021-01-05 11:15:10 -05:00
Jack Hsu
09a205c995
fix(nextjs): remove duplicated public folder in dist (#4389) 2020-12-23 14:48:38 -05:00
Tasos Bekos
7f70f3a153 feat(nextjs): add --js flag support 2020-12-19 14:19:52 -05:00
Jack Hsu
110fe37c00
fix(nextjs): add "@nrwl/workspace" to the generated package.json file for built next apps (#4348) 2020-12-18 16:17:04 -05:00
Tasos Bekos
db917a2b71 fix(nextjs): don't duplicate styles in styled components
Previously `styled-jsx` was not able to compile due to `styles` variable usage.
Also, `styleContent` were duplicated inside the styled page.
2020-12-08 20:14:35 -05:00
Tasos Bekos
b70be188d4 fix(nextjs): pin css-loader version for pnpm
`@zeit/next-less` & `@zeit/next-stylus` internal configuration is working only for specific CSS loader version, causing PNPM resolution to fail.
This commits adds a `resolution` property to make it explicit.
2020-12-08 11:10:42 -05:00
Tasos Bekos
25858397a7 fix(nextjs): use appropriate file extensions for Less & Stylus 2020-12-07 19:44:02 -05:00
Jack Hsu
0a5ee20e46
chore(react): update links for generated react apps (#4213) 2020-12-07 13:34:12 -05:00
Adam L Barrett
c062c6e657
fix(nextjs): copy the next.config.js file to the dist when building (#4179)
This is nessecary for the next server to respect config options
2020-12-04 11:04:32 -05:00
victor savkin
a24fb961d8 feat(core): format workspace.json based on version field 2020-12-03 20:20:04 -05:00
Adam L Barrett
3106a53c77
fix(nextjs): disable the default-server x-powered-by option on the express server (#4180)
This way, when disabling the same option in the next.config.js it doesn't just revert to express

ISSUES CLOSED: #3961
2020-12-03 10:48:58 -05:00