573 Commits

Author SHA1 Message Date
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
Jack Hsu
7913f31cff
fix(react): use normalized app name in host/remote generators (#9909) 2022-04-21 02:54:39 +00:00
Jason Jean
cb7fb22bca
feat(core): remove @types/node from default workspace (#9853)
Signed-off-by: Jason Jean <jasonjean1993@gmail.com>
2022-04-20 12:43:23 -04:00
Jack Hsu
e32932d267
feat(react): add ability to serve remote apps in dev or static mode (#9893) 2022-04-20 12:27:49 -04:00
James Henry
46e7b4d49c
chore(core): improve help output for generators and executors (#9800) 2022-04-12 14:05:55 -04:00
Giora Guttsait
75b0744955
fix(core): init generators should not crash when trying to remove dependencies when package.json does not have dependencies (#9765)
Co-authored-by: Craigory Coppola <craigorycoppola@gmail.com>
2022-04-12 09:10:13 -04:00
Nicholas Cunningham
12f0f195d2
feat(react): add support for MFEs (#9413)
* feat(react): Add MFE  Generator for Host and Remote Apps
Host generator will be able use the mfe-remote generator when remotes are passed into the CLI for the mfe-host command

* docs(react): React Documentation Update

Co-authored-by: Nicholas Cunningham <nico@Nicholass-MacBook-Pro.local>
Co-authored-by: Nicholas Cunningham <ndcunningham>
2022-04-04 15:44:18 -04:00
CommanderRoot
05a9544806
cleanup(misc): replace deprecated String.prototype.substr()
* cleanup(misc): replace deprecated String.prototype.substr()

.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated

Signed-off-by: Tobias Speicher <rootcommander@gmail.com>

* fix(js): fix slice change

Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
2022-04-01 23:04:26 +00:00
Jack Hsu
cb4126c442
fix(react): pass configuration from context when reading build target options (#9656)
Closes #7924
2022-04-01 17:48:40 -04:00
Benjamin Cabanes
cea9c0c146
docs(core): add description to web package (#9526) 2022-03-25 19:26:31 +00:00
Isaac Mann
753277ad50
docs(nxdev): customize webpack guide (#8857)
* docs(nxdev): customize webpack guide

* docs(core): add webpack-merge

* docs(core): webpack config example

Co-authored-by: Isaac Mann <isaacplmann+git@gmail.com>
2022-03-25 11:27:16 -04:00
Victor Savkin
2071c2e5da
fix(repo): fix builds 2022-03-24 16:37:00 -04:00
Benjamin Cabanes
6dae32cc3a
docs(nxdev): support packages schemas metadata & discoverability (#9383) 2022-03-24 12:00:06 -04:00
Victor Savkin
d4b5c30eba
cleanup(core): remove the indirection left after inlining ta… (#9469) 2022-03-23 22:18:17 -04:00
Miroslav Jonaš
41914d2961
fix(web): ensure file server works on windows (#9449) 2022-03-22 22:39:42 +01:00
Nicholas Cunningham
cdbea9106b
fix(react): fix conflicting NODE_ENV values between an application and webpack Plugins (DefinePlugin) (#9460)
ISSUES CLOSED: #7924

Co-authored-by: Nicholas Cunningham <ndcunningham>
2022-03-22 15:02:43 -04:00
Benjamin Cabanes
1723e8e6b3
docs(nxdev): remove unused versions & flavors feature (#9462) 2022-03-22 17:44:35 +00:00
Matthias Stemmler
dff05dcbde
fix(web): fix handling of buildLibsFromSource: false in dev-server executor (#9326)
* modify buildOptions.tsConfig before creating Webpack config
* do not join buildOptions.tsConfig to root path as it is already an absolute path
2022-03-18 16:21:56 -04:00
Sorin Davidoi
f5dfb837a2
fix(web): don't allow arbitrary code execution in file-server (#9330)
The Node documentation for `exec` states:

> Never pass unsanitized user input to this function. Any input containing shell metacharacters may be used to trigger arbitrary command execution.

The `outputPath`, `options.buildTarget` and `options.maxParallel` come from `nx.json`. Careful crafting of these fields can result in NX executing arbitrary commands.

This patch fixes this by using `execFile`, which does not spawn a shell.
2022-03-18 16:16:31 -04:00
Austin
48d32acca3
feat(web): add proxy config support to file-server executor (#9225) 2022-03-15 16:11:17 -04:00
Jack Hsu
cd81a2061e
fix(react): update package.json only with shallow dependencies (#9297) 2022-03-11 14:43:34 -05:00
Jack Hsu
ec533c521d
feat(react): update packages (#9296) 2022-03-11 12:18:40 -05:00
Victor Savkin
4e9375f5f4 chore(repo): update the version of nx 2022-03-11 10:40:40 -05:00
Jason Jean
94687e993c
chore(repo): ensure license file exists for all published packages (#9274) 2022-03-10 18:33:06 -05:00
Phillip Barta
dbb4988278
feat(web): update license-webpack-plugin to improve performance (#9058) 2022-03-10 12:06:57 -05:00
Sid monta
37278fdece
fix(web): fix(web): allow use multiple config in custom webpack configuration file (#9188)
When use a custom configuration file for webpack build target allow to run webpack with
multiple
configuration options.
ISSUES CLOSED: #9186
2022-03-10 15:16:04 +00:00
Colum Ferry
1440f8362c
fix(web): file-server withDeps is deprecated (#9170)
* fix(web): file-server withDeps is deprecated

* docs(web): fix spacing issue
2022-03-09 11:32:12 -05: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
Nicholas Cunningham
68e94353f0
fix(web): fixes force down compilation for non esm bundles (#8907)
When you use swc as the compiler for a library the types should be generated

ISSUES CLOSED: #8639
2022-02-24 09:37:41 -05:00
Miroslav Jonaš
b251234af9
feat(core): use stricter types for project graph node references (#8813) 2022-02-16 11:45:04 +01:00
Phillip Barta
5bf37f00bd
fix(web): remove deep import of webpack ProgressPlugin (#8892) 2022-02-11 15:14:18 -05:00
Xinan
3c25a1ce02
fix(web): support custom webpack config written in TypeScript for web:build (#8939) 2022-02-11 15:04:20 -05:00
Phillip Barta
1f3fbab947
chore(web): update webpack-subresource-integrity to 5.1.0 (#8890) 2022-02-10 18:26:14 -05:00
Phillip Barta
49173ef717
chore(web): removed unused dependency rimraf (#8891) 2022-02-10 12:44:57 -05:00
Jack Hsu
85da21bf29
fix(react): update storybook config to skip type checking (#8922) 2022-02-10 17:32:52 +02:00
Jack Hsu
475143b3b4
feat(react): add postcssConfig option to apps to enable auto-loading or set a single path (#8849) 2022-02-05 12:24:07 -05:00
Leosvel Pérez Espinosa
cf7a18bd14
fix(angular): prevent adding dependencies when generating apps and specifying skipPackageJson (#8806) 2022-02-01 16:32:47 -05:00
Jack Hsu
120e987580
fix(react): fix issue with postcss and images in webpack config (#8802)
Fixes #8300
2022-02-01 11:43:01 -05:00
Nicholas Cunningham
20975e0aac
fix(web): web executor referencing wrong file (#8670)
ISSUES CLOSED: #8607
2022-01-28 14:00:55 -05:00
Phillip Barta
e668dc00ac
chore(core): update license-webpack-plugin to 4.0.0 (#8632) 2022-01-28 13:43:11 -05:00
Phillip Barta
15ff29640c
chore(repo): update open to 8.4.0 (#8629) 2022-01-28 13:27:44 -05:00
Phillip Barta
be91d1f99a
fix(core): stop inlining tsconfig-paths-webpack-plugin and use version with fix (#8357) 2022-01-27 08:59:46 -05:00
Phillip Barta
78c9f158a7
fix(web): remove terser from dependencies and update terser-webpack-plugin (#8631) 2022-01-27 08:53:24 -05:00
Benjamin Cabanes
0959194ce0
feat(core): update deps (#8713) 2022-01-26 22:17:10 -05:00
Victor Savkin
298ceba5b3
chore(repo): readme fixes 2022-01-24 09:39:31 -05:00
Isaac Mann
07ebdb36a3
feat(core): add nx graph as alias of nx dep-graph (#8539)
* feat(core): add nx graph as alias of nx dep-graph

* docs(core): add note about old dep-graph syntax

* cleanup(core): formatting

* feat(core): formatting

* feat(core): formatting

Co-authored-by: Isaac Mann <isaacplmann+git@gmail.com>
2022-01-21 11:15:23 -05:00
Jack Hsu
f231cfc01b
feat(repo): move gatsby plugin to nx-labs repo (#8617) 2022-01-20 12:00:51 -05:00
Victor Savkin
9e75918154
feat(core): speed up file map creation (#8597) 2022-01-19 15:30:21 -05:00
Jason Jean
65010c4e0b
fix(react): lock version of mini-css-extract-plugin (#8547) 2022-01-14 16:36:14 -05:00
Phillip Barta
4464da09f5
chore(repo): removed unused packages (#8536) 2022-01-14 13:36:55 -05:00