sevenwestmedia-labs / nx-plugins Goto Github PK
View Code? Open in Web Editor NEWPlugins for nx.dev
License: MIT License
Plugins for nx.dev
License: MIT License
I need to add --flags
and args to my process, but no such provision exists.
Can we add ...(options.args || [])
to the final bit? Or however we get args thru with nodemon. For instance, my node build via esbuild needs --port=xyz
and --hostname=xyz
etc. Some i can pass thru the env, but not all
The best feature I like about this project is the stack auto discovery.
Why not add @wanews/nx-pulumi:preview, so I can just run
nx affected --target=preview --env=prod --all
to see all preview of my stacks.
Thanks!
Hello there, I stumbled upon this repo after failing to get https://github.com/ZachJW34/nx-plus running (doesn't support nx 13 and seems to be using custom webpack to build the apps / libs, instead of utilising vite / vue cli to the fullest), are there any plans to support generating and building publishable Vue libraries?
Hi!
I tried creating a new project with this plugin and I came accross this error.
Steps:
@wanews/x-vite
Tried with nx latest
. Then I noticed you main branch nx version was 12.3.6
so I tried with that as well.
Looking forward for this plugin so we can get faster builds ๐
โ projects npx [email protected] testingrepo
npx: installed 48 in 5.752s
โ What to create in the new workspace ยท empty
โ Use Nx Cloud? (It's free and doesn't require registration.) ยท No
> NX Nx is creating your workspace.
To make sure the command works reliably in all environments, and that the preset is applied correctly,
Nx will run "npm install" several times. Please wait.
โ Installing dependencies with npm
โ Nx has successfully created the workspace.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
> NX NOTE Nx CLI is not installed globally.
This means that you might have to use "yarn nx" or "npx nx" to execute commands in the workspace.
Run "yarn global add nx" or "npm install -g nx" to be able to execute command directly.
โ projects cd testingrepo
โ testingrepo git:(master) npm i -D @wanews/nx-vite
npm WARN @wanews/[email protected] requires a peer of @vitejs/plugin-react-refresh@>1.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @wanews/[email protected] requires a peer of nodemon@>2.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @wanews/[email protected] requires a peer of react@>17.0.2 but none is installed. You must install peer dependencies yourself.
npm WARN @wanews/[email protected] requires a peer of react-dom@>17.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @wanews/[email protected] requires a peer of vite@>2.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @wanews/[email protected] requires a peer of vite-tsconfig-paths@>3.0.0 but none is installed. You must install peer dependencies yourself.
+ @wanews/[email protected]
added 1 package from 1 contributor and audited 210 packages in 1.24s
37 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
โ testingrepo git:(master) โ npx nx generate @wanews/nx-vite:react website
UPDATE workspace.json
UPDATE nx.json
CREATE apps/website/.babelrc
CREATE apps/website/.eslintrc.json
CREATE apps/website/README.md
CREATE apps/website/index.html
CREATE apps/website/jest.config.js
CREATE apps/website/package.json
CREATE apps/website/src/App.tsx
CREATE apps/website/src/main.tsx
CREATE apps/website/tsconfig.json
โ testingrepo git:(master) โ npx nx run website:serve
> nx run website:serve
Cannot find module 'execa'
Require stack:
- /home/apolo/projects/testingrepo/node_modules/@wanews/nx-vite/src/executors/serve/executor.js
- /home/apolo/projects/testingrepo/node_modules/@nrwl/tao/src/shared/workspace.js
- /home/apolo/projects/testingrepo/node_modules/@nrwl/tao/src/commands/run.js
- /home/apolo/projects/testingrepo/node_modules/@nrwl/tao/index.js
- /home/apolo/projects/testingrepo/node_modules/@nrwl/cli/lib/run-cli.js
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
> NX ERROR Running target "website:serve" failed
Failed tasks:
- website:serve
Node + NPM version
โ testingrepo git:(master) โ node -v
v14.17.3
โ testingrepo git:(master) โ npm -v
6.14.13
Hello, everyone,
I would like to use a esbuild plugin with a transform option.
But I can't pass any functions via the project.json.
How could be integrated? Maybe similar the plugins array itself?
"options": {
"plugins": [{
"package": "esbuild-sass-plugin",
"args": {
"type" : "style",
"transform": "postcssModules"
}
}]
},
Running npx nx generate @wanews/nx-pulumi:create-stack --environment=<env name> --projectName=<nx project name> --no-interactive --dry-run
will run the actual command instead of dry-run. The CLI dry-run argument is ignored.
Troublesome especially with vscode Nx console plugin since that automatically runs the dry-run when filling in the environment name.
Hello,
Thanks once again for maintaining this plugin! Using the latest version trying to restore my config, i get only [object Object]
in my newly created yaml file.
I believe it is related to the below when the s3 dependency was swapped over:
aws/aws-sdk-js-v3#1877
Not sure if this affects anything else in the repo.
Cheers!
@wanews/nx-typescript-project-references
depends on tsup
"^5.12.9" which depends on an esbuild version that's incompatible with TypeScript 4.9.
This can be "fixed" by adding "resolutions": { "tsup": "6.6.0" }
to package.json, but it'd be nice to upgrade the dependency.
Should note that latest esbuild breaks @wanews/nx-esbuild
(personally migrating to official plugins for that)
Hi,
I really like what you are up to here, and it can potentially solve all my pain points with NX. So really excited to play around with it.
When trying to run the migrate command on our current NX codebase, I am receiving the following error:
devkit_1.writeJson is not a function
Is this due to my NX version?
While running
npx nx generate @wanews/nx-vite:react test
getting issue - Package "@wanews/nx-vite" was found but does not support schematics.
Any @pointer?? @JakeGinnivan
Hi,
I'm new in using NX, so maybe i miss some steps here.
Basically i finally able to use your nx-vite plugin and finally created the folder into my workspace successfully. However, i have troubles in few areas :
In noticed in your repo that there's tsconfig.setting.json
whereas in my newly created nx workspace there's only tsconfig.base.json
so i need to change it manually.
i used --preset=empty
for creating the workspace.
the changes i need to make to tsconfig.json is :
from
{
"extends": "../../tsconfig.settings.json",
"compilerOptions": {
"outDir": "./out-tsc",
"rootDir": "./src",
"types": ["jest", "node"]
},
"include": ["src/**/*.ts", "src/**/*.tsx"]
}
to
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "./dist",
"jsx": "react-jsx",
"types": ["jest", "node"]
},
"include": ["src"]
}
nx run <my app>:serve
when i run serve, i got an error.
Command failed with exit code 243: npx vite <my app path>--open
Error: Command failed with exit code 243: npx vite <my app path> --open
at makeError (/<my app path>/node_modules/execa/lib/error.js:60:11)
at handlePromise (/<my app path>node_modules/execa/index.js:118:26)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
can you show me where did i go wrong or is it actually a bug ?
It looks like the readJson
function throws if the package.json
is not in an app. The docs seem to indicate that this should not be a fatal case, and it should instead just fallback to the root package.json
.
Hello and thank you for your work.
We have noticed that the nx-pulumi plugin depends on aws-sdk. It is pulling unnecessary libraries for us since we are using azure.
Is it possible to remove that peer dependency.
Thank you.
With @wanews/[email protected]
+ [email protected]
, following error occurs:
Cannot find module 'nx/src/shared/tree'
Require stack:
- node_modules/@wanews/nx-esbuild/src/executors/build/executor.js
- node_modules/nx/src/config/workspaces.js
- node_modules/nx/src/command-line/run.js
- node_modules/nx/bin/run-executor.js
Looks like path to tree has been refactored from packages/nx/src/shared/tree.ts
to packages/nx/src/config/tree.ts
Related PR:
cleanup(core): create more meaningful file structure in nx package #9621
https://github.com/nrwl/nx/pull/9621/files#diff-ecb44f754a1e1420adb824a5bbd14c752c5c3ce076b49e17ed51450ff8c7b3e4
Hi there, I'm new to nx
so I could be misreading the project. I'm looking at the generators for init
and init-standalone
and found the standalone does not contain an up
target
I'm starting with an empty workspace (choosing ts
during create-nx-workspace
) and attempting to deploy an API gateway as described in this tutorial: https://www.pulumi.com/registry/packages/aws/how-to-guides/rest-api/
I'm open to do a PR if it would be accepted
We have @wanews/typescript-project-references
and @wanews/nx-esbuild
Has the generator which converts an NX project, and a package
executor which will package a library for NPM publish (using tsup atm).
Has a generator to create a node project, and executors to build (for prod) and serve (for local dev) that node project.
corporate-subs-dash
and corporate-subs-dash-deploy
/corporate-subs-dash-infrastructure
What should the projects be named? For a minimum the typescript one should probably be prefixed with nx-
I hoped your tool could help to enable support for project references in nx. I tried it. It emits the following error:
โฏ npx nx generate @wanews/nx-typescript-project-references:migrate
project_graph_1.createProjectGraphAsync is not a function
Unable to resolve @wanews/nx-vite:react. Cannot find module '@wanews/nx-vite/package.json'
โฏ npx nx generate @wanews/nx-vite:react downstream-vite
Unable to resolve @wanews/nx-vite:react.
Cannot find module '@wanews/nx-vite/package.json'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.