84 Commits

Author SHA1 Message Date
Jack Hsu
bef152d94e
feat(bundling): remove esbuild 0.16.0 support (#16435) 2023-04-20 08:14:52 -06:00
Jack Hsu
bce05aebd8
feat(node): create fastify setup closer to what fastify-cli creates (#15096) 2023-02-18 15:23:56 +00:00
Jack Hsu
5cfd357e8f
feat(bundling): update esbuild to 0.17.5 (#14752) 2023-02-01 10:55:55 -07:00
Nicholas Cunningham
71a7ebd9e1
fix(node): remove connect framework from node app generator (#14567) 2023-01-23 17:51:18 -05:00
Jack Hsu
013bb74444
feat(node): add e2e project generator (#14429) 2023-01-17 15:38:52 -05:00
Nicholas Cunningham
a631af7b62
feat(node): support nodejs frameworks (#14199) 2023-01-06 15:04:11 -07:00
Jack Hsu
f49769a34a
feat(webpack): add webpack plugin (#11966) 2022-09-12 21:19:50 +01:00
Craigory Coppola
6948ffdcff fix(core): project graph should be read from executor context
These changes lower the risk of reading the cache during a write operation when multiple
processes are actively writing / reading the cache.
2022-08-19 12:50:07 -04:00
Herb
86b2015ddd
feat(node): expose webpack watchOptions to executor (#11453) 2022-08-18 12:34:33 -04:00
Jack Hsu
9cbfd65896
feat(node): update @types/node to 18.7.1 (#11545) 2022-08-11 14:15:50 +00:00
Chau Tran
0ce3b1a9f6
fix(express): tslib should be included if importHelpers is true (#11419)
ISSUES CLOSED: #11012
2022-08-11 20:42:29 +07:00
Leosvel Pérez Espinosa
01f7376169
cleanup(misc): consolidate tslib version in generated projects (#11185) 2022-07-19 12:59:37 -04:00
Jack Hsu
d657f912d9
feat(web): upgrade webpack plugin versions (#11191) 2022-07-18 15:23:30 -04:00
Jack Hsu
bf11bbf709
feat(node): update @types/node to 18.0.0 (#10916) 2022-06-27 14:33:48 +00:00
Jay Tavares
99b245b08d
feat(node): add deleteOutputPath option to @nrwl/node:webpack executor (#10073) 2022-06-08 17:48:45 -04:00
Denis Frenademetz
7418ae19c2
fix(node): use webpack compilation hooks to emit package.json (#10229)
Use the webpack plugin system to create the package.json, this allows for developers to use plugins like
CleanWebpackPlugin which clears the dist before the compilation starts. If this plugin is used in
combination with the old method of generating the package.json, then it is deleted on compilation start.
2022-06-08 10:46:03 -05:00
Jason Jean
04985be149
chore(repo): switch publishing to use lerna (#10293) 2022-05-20 00:35:47 +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
zhaoyunfeng
0e68c616fe
fix(node): webpack executor doesn't respect option outputFileName (#9740)
Co-authored-by: zhaoyunfeng <zhaoyunfeng@worktile.com>
2022-04-08 14:16:54 -04:00
Miroslav Jonaš
3b21f4dfea
fix(core): switch from appRootPath to workspaceRoot (#9600) 2022-03-30 09:15:20 -04:00
Victor Savkin
d4b5c30eba
cleanup(core): remove the indirection left after inlining ta… (#9469) 2022-03-23 22:18:17 -04:00
Victor Savkin
6f038e7a4a feat(core): reorganize packges to consolidate all cli-related code in nx 2022-03-14 16:42:51 -04:00
Jack Hsu
7084d19dd6
feat(node): improve @nrwl/node:node executor to handle build process correctly in watch and no-watch mode (#9180)
* Build only triggered once on file change
* Kill previous process if it exists
* Wait for build process to finish before exiting
2022-03-04 08:09:08 -05:00
Chau Tran
229f71ef17
feat(nest): use nrwl/js to generate library (#9164)
* chore(js): rename GeneratorSchema to LibraryGeneratorSchema

* fix(js): add publishable to library generator schema

* feat(nest): use nrwl/js for library generator

* fix(js): update documentation about publishable

* chore(nest): fix depcheck for nrwl/js

* chore(nest): update test snapshot

* chore(nest): update nestjs/swagger version in node e2e

* chore(js): rename loadTsPlugins function

* fix(nest): default standaloneConfig for library generator to true

* feat(nest): rename tsPlugins to transformers and add tsPlugins to aliases

* chore(nest): fix e2e test on generate a new nest library

Co-authored-by: Chau Tran <ctran@Chaus-MacBook-Pro.local>
2022-03-03 15:47:06 -05:00
Jérémy Levilain
ebeb588004
fix(node): webpack/terser stripping class names breaking reflection (#8784) 2022-02-18 09:18:00 -06: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
Alexandre Delattre
50baf92fc9 fix(node): disable name mangling when building for production
disable name mangling when building for production with optimization on,
in order not to break
features relying on runtime reflection

ISSUES CLOSED: #8537
2022-01-20 13:17:28 -05:00
Phillip Barta
e57cef0901
cleanup(repo): use devkit instead of devkit reexports from workspace (#7773) 2021-12-21 21:06:31 +00:00
Damian Bielecki
5fbcf7241a
fix(node): fix node optimization option (#7538) 2021-12-03 12:05:08 -06:00
Chau Tran
421d4f2f02
feat(node): add outputFileName to build executor (#7708)
Fixes  #4969
2021-11-11 17:01:20 -06:00
Chau Tran
9356f73380
feat(node): add tsPlugins to node:package executor (#7477)
node:build currently has tsPlugins options to invoke TypeScript Plugins (transformers). This PR
brings the same functionality to node:package

ISSUES CLOSED: #7420
2021-10-25 20:03:56 -05:00
Jack Hsu
bedad1cc77
fix(core): patch resolve logic for tsconfig paths (#7387) 2021-10-15 20:47:18 +00:00
Jack Hsu
8779a22be3
chore(core): move webpack utils into web and node packages (#7367) 2021-10-14 18:50:46 +00:00
Jack Hsu
3fe973e012
chore(node): optimize node webpack build (#7337) 2021-10-13 14:13:40 -04:00
Jack Hsu
4d6df58ac8
chore(node): remove build options deprecated since Nx 11 (#7331) 2021-10-13 07:47:51 +02:00
Jack Hsu
724b0c0e3c
feat(core): upgrade to webpack 5 (#7283)
* feat(core): upgrade to webpack 5

* chore(core): update webpack 5 docs
2021-10-13 00:34:28 -04:00
Lars von Qualen
6b37e4b2f1
feat(node): builder should support multiple entry files (#5741)
Adds a new option to the node build executor in order to enable multiple entry files.
2021-08-20 15:49:56 +00:00
Chau Tran
8297386d80
feat(node): add TS plugins support for build executor (#6677)
* feat(node): add TS plugins support for build executor

ISSUES CLOSED: #2147

* docs(node): add tsPlugins to node build executor schema

* chore(node): reformat schema json

* chore(repo): update yarn.lock

* cleanup(node): adjust tsPlugins test for node build executor

* cleanup(node): remove packageJson check for tsPlugins test

* cleanup(node): increase timeout for tsPlugins e2e test

* cleanup(node): use type import for typescript types instead of importing typescript

Co-authored-by: Chau Tran <ctran@Chaus-MacBook-Pro.local>
Co-authored-by: Miroslav Jonas <missing.manual@gmail.com>
2021-08-18 17:48:18 -04:00
Jason Jean
6fbf7ffa16
feat(misc): remove ts-node, tslib, and dotenv from empty workspace package.json (#6763) 2021-08-18 17:36:11 -04:00
Miroslav Jonaš
9508bd9e3b
cleanup(core): remove last references to workspace appRootPath (#6527)
* cleanup(core): remove last references to local appRootPath

* chore(core): add deprecation comment to appRootPath

* chore(node): fix failing test due to typescript change
2021-07-28 17:22:30 +02:00
Jack Hsu
369da3ee78
feat(web): add support for webpack 5 (#5892) 2021-06-29 08:41:01 -04:00
AgentEnder
472392a370 fix(node): node-externals fails in subdirectories 2021-06-25 16:39:23 -04:00
Phillip Barta
fe97444d78
feat(core): migrate prettier to v2.3.1 (#5623) 2021-06-17 16:44:30 +02:00
John Dengis
b4d27fcfd7
fix(node): don't clobber packageJson.main if it exists (#5836)
Only assign packageJson.main to OUT_FILENAME if it is nullish in generatePackageJson
2021-06-04 16:58:30 -04:00
Tasos Bekos
156e3c2c40 chore(repo): use jest-circus runner 2021-04-26 15:16:09 -04:00
Tasos Bekos
59eca00728 feat(node): support webpackConfig as array 2021-04-06 18:31:38 +03: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
kirjai
9d863a7073 fix(nextjs): include peer dependencies in built package.json 2021-03-15 10:29:33 -04:00
Jason Jean
d4629be208
feat(node): migrate @nrwl/node builders to devkit (#5012) 2021-03-12 23:06:32 +00:00