Jack Hsu
4e49d527ba
feat(bundling): extract rollup plugins into withNx function for use with run-commands ( #26168 )
...
This PR adds `withNx` function to `@nx/rollup/with-nx` so it can be used
in `rollup.config.js` to replicate what `@nx/rollup:rollup` executor
does without needing to use the executor.
e.g.
```js
// rollup.config.js
const { withNx } = require("@nx/rollup/with-nx");
module.exports = withNx(
{
main: "./src/index.ts",
outputPath: "./dist",
tsConfig: "./tsconfig.lib.json",
compiler: "babel",
external: ["react", "react-dom", "react/jsx-runtime"],
format: ["esm"],
assets: [{ input: ".", output: ".", glob: "README.md" }],
},
{
// Provide additional rollup configuration here. See: https://rollupjs.org/configuration-options
// e.g.
// output: { sourcemap: true },
}
);
```
## Notes
1. Existing `@nx/rollup:rollup` continues to encapsulate rollup options
and will not support an isolated mode.
2. Newly created JS and React libs with `--bundler=rollup` will use the
new `withNx` function and explicit `rollup.config.js`.
3. If `NX_ADD_PLUGINS=false` or `useInferencePlugins: false` is set,
then new projects will continue to use the `@nx/rollup:rollup` executor.
2024-05-31 10:50:10 -04:00
Leosvel Pérez Espinosa
217a349adc
fix(testing): handle existing jest preset file correctly ( #23437 )
...
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->
<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->
## Current Behavior
<!-- This is the behavior we have today -->
## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->
## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->
Fixes #20449
2024-05-17 08:26:29 -06:00
Colum Ferry
7dcd043362
fix(js): do not default to commonjs type field in package.json ( #22819 )
2024-04-15 15:55:34 +01:00
Austin Fahsl
38179ad278
feat(js): replace publish script with nx release config ( #21474 )
2024-03-05 17:53:07 -05:00
Craigory Coppola
a89c73483e
feat(core): use flag in nx.json for toggling crystal ( #21980 )
2024-02-29 15:18:46 -05:00
Jack Hsu
26b266faf4
fix(core): update generated README pages with more useful instructions ( #21976 )
2024-02-23 16:09:57 -05:00
Jason Jean
396ffc4636
feat(core): enable project crystal by default ( #21403 )
...
Co-authored-by: Katerina Skroumpelou <sk.katherine@gmail.com>
Co-authored-by: Jack Hsu <jack.hsu@gmail.com>
Co-authored-by: Colum Ferry <cferry09@gmail.com>
Co-authored-by: Leosvel Pérez Espinosa <leosvel.perez.espinosa@gmail.com>
Co-authored-by: Emily Xiong <xiongemi@gmail.com>
Co-authored-by: Nicholas Cunningham <ndcunningham@gmail.com>
2024-02-02 03:40:59 -05:00
Colum Ferry
0b3e1f6ec4
feat(core): log to guide users to show details after project generation ( #21350 )
2024-01-30 10:58:49 -05:00
Leosvel Pérez Espinosa
e4758358b0
feat(misc): optionally update package.json scripts in init generators ( #21204 )
2024-01-22 13:51:41 -05:00
Miroslav Jonaš
ff5d1bef83
feat(linter): default lintFilePatterns to {projectRoot} ( #20313 )
2023-11-27 08:39:38 -05:00
Katerina Skroumpelou
34552539fe
fix(vite): vitest should use v8 as default ( #20156 )
2023-11-10 13:07:33 +00:00
Katerina Skroumpelou
7942ea3c83
feat(js): skipPackageJson in js lib generator ( #19821 )
2023-10-26 12:53:02 -04:00
Nicholas Cunningham
04e4e25db1
fix(js): should respect vitest test environment ( #19859 )
2023-10-26 09:17:29 -06:00
Katerina Skroumpelou
541af1129f
fix(vite): configuration generator fixes ( #19628 )
2023-10-16 19:20:42 +03:00
Miroslav Jonaš
0bc693342e
feat(linter): rename @nx/linter to @nx/eslint ( #19515 )
2023-10-16 11:52:19 -04:00
Colum Ferry
80fde79374
feat(misc): remove deprecated Angular CLI usage of schematics and builders ( #19557 )
2023-10-13 17:14:16 +01:00
Miroslav Jonaš
8bf6a97a29
fix(linter): fix linter standalone patterns in Js and Next ( #19508 )
2023-10-10 21:24:11 +02:00
Miroslav Jonaš
aa223621f7
fix(linter): ensure config manipulations are run only if config is supported ( #19035 )
2023-09-07 13:17:22 +02:00
Jack Hsu
90ca436d81
feat(linter): add option to ignore files based on pattern ( #18863 )
2023-08-28 16:27:14 -04:00
Miroslav Jonaš
e34219ab96
feat(linter): add flat config support to generators ( #18534 )
2023-08-23 01:36:58 +02:00
Craigory Coppola
e2ff519db2
feat(misc): save directory and name format to nx json defaults ( #18683 )
2023-08-17 17:48:42 -04:00
Leosvel Pérez Espinosa
61d73fc907
fix(js): expose schematic using the generator function with a default for the project name and root format ( #18681 )
2023-08-17 14:55:56 -04:00
Leosvel Pérez Espinosa
ce7fc740ae
cleanup(misc): rename projectDirectory to projectRoot in helper return value ( #18586 )
2023-08-11 16:43:07 +01:00
Leosvel Pérez Espinosa
730260320d
feat(js): provide a new way of generating project name and root directory for libraries ( #18420 )
2023-08-10 13:30:46 -04:00
Jack Hsu
4c2f98ebf9
fix(js): generate correct standalone setup ( #18355 )
2023-07-27 19:18:39 -04:00
Jack Hsu
810b584c33
fix(js): generate ts standalone project with better import path ( #18197 )
2023-07-25 16:35:29 -04:00
Miroslav Jonaš
f4f4eb66e2
feat(linter): add dependency-checks to buildable lib generator ( #18015 )
2023-07-20 10:28:20 -04:00
Jack Hsu
b07d24ef42
feat(js): create package.json with proper defaults ( #18091 )
...
Co-authored-by: Miroslav Jonaš <meeroslav@users.noreply.github.com>
2023-07-18 08:53:18 +02:00
Jack Hsu
38fa586b78
feat(testing): rename jest-project generator to "configuration" generator for consistency in naming ( #18006 )
2023-07-07 16:17:41 -04:00
Jack Hsu
8d5ef222cc
feat(testing): add support for additional environment options when generating vite config ( #17560 )
2023-06-13 13:30:52 -04:00
Jack Hsu
08339ee49f
feat(js): do not generate root babel.config.json for babel projects ( #17289 )
2023-06-06 15:45:33 -04:00
Jack Hsu
3634abb3fc
feat(js): allow root js lib project to be generated ( #17245 )
2023-05-26 12:11:10 -04:00
Emily Xiong
be2ccb802e
feat(js): add verdaccio executor ( #16928 )
2023-05-25 11:10:16 -04:00
Jason Jean
6b928bc250
feat(js): refactor usages of npmScope ( #16947 )
2023-05-15 16:06:24 -04:00
Ashley Hunter
fbf8d9c99f
feat(js): adding simpleName option to library generator ( #16025 )
2023-04-27 11:28:34 -04:00
Jason Jean
7b0f96b1ba
feat(nx-plugin): simplify generated plugin code ( #16590 )
2023-04-26 18:38:04 -04:00
Craigory Coppola
b374bd342c
fix(js): ensure publishable libraries are not marked as private ( #16549 )
2023-04-25 15:07:37 -04:00
Craigory Coppola
219ad67e74
fix(nx-plugin): generated root plugin should not have wonky paths ( #16445 )
2023-04-21 13:25:22 -04:00
Jason Jean
76dfc62412
feat(web): replace usages of @nrwl with @nx ( #16376 )
2023-04-19 10:59:41 -04:00
Jason Jean
5a0a4e8d26
feat(repo): replace usages of @nrwl/ with @nx/ in tooling packages ( #16351 )
2023-04-18 12:15:33 -04:00
Jason Jean
2d195007b0
feat(core): switch packages to use the @nx scope ( #16069 )
2023-04-14 19:56:37 -04:00
Miroslav Jonaš
cafb49ac84
feat(core): remove @nrwl/workspace:lib ( #16122 )
2023-04-12 15:28:09 -04:00
Jack Hsu
0578116fbf
feat(nextjs): update to Next.js 13.3.0 ( #16130 )
2023-04-12 10:47:44 -04:00
Craigory Coppola
6e7234c1aa
feat(nx-plugin): reuse utilities from create-nx-workspace for create-nx-plugin ( #15743 )
2023-03-31 17:23:21 -04:00
Leosvel Pérez Espinosa
4eb7cc7bf1
fix(misc): skip formatting files in nested generator calls ( #15961 )
2023-03-31 11:22:18 -04:00
Leosvel Pérez Espinosa
7c9b66e24b
fix(misc): cleanup deps to support pnpm v7 in create-nx-workspace ( #15859 )
2023-03-23 11:41:07 -06:00
Jack Hsu
7ebca5107e
feat(bundling): add for esbuild to enable/disable package.json generation ( #15777 )
2023-03-21 08:48:16 -04:00
Katerina Skroumpelou
16ad3086be
fix(js): libraries should be buildable by default ( #15533 )
2023-03-09 14:20:19 -05:00
Colum Ferry
8744698a01
feat(devkit): move runTasksInSerial to devkit ( #15467 )
2023-03-06 13:55:44 -05:00
Phillip Barta
8c1d035b0b
feat(js): added a minimal option to the library generator ( #13561 )
2023-03-03 19:32:57 +00:00