-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move dependencies to devDependencies (nx, ts-morph, tslib, @nx/devkit, angular-eslint/bundled-angular-compiler) #410
Comments
Last comment on #304
|
Moving to What we can do is to deprecate # instead of
# ng add ngxtension
# we will have
npm i ngxtension
npm i -D @nx/devkit
npx ng g ngxtension:init For migrations (and npm i -D ts-morph @angular-eslint/bundled-angular-compiler
npx ng update ngxtension The DX does decrease a bit but we will not have bloated node_modules anymore and also unblock @marcj as well. |
Have you looked into This PR gives an example for |
@jdegand |
Is there any progress on this issue? I am most interested in splitting into two packages, personally. That would at least solve the problem of someone wanting to use the awesome helpers like |
For everyone, who needs a quick solution: "overrides": {
"ngxtension": {
"nx": "npm:[email protected]",
"@nx/devkit": "npm:[email protected]",
"ts-morph": "npm:[email protected]"
}
} to my package.json, which replaces the dependencies with empty packages. |
Is there any progress or update on this issue? This is becoming a bigger nuisance for one of our applications. Since nx is a dependency in ngxtension, it is being security scanned as a production dependency. BlackDuck will tag certain nx's dependencies as vulnerabilities, failing our production scan. |
guess we have to fork this one |
Hey folks, sorry for going hiatus on this issue. It's been on the back of my mind but I got busy with a new baby. Immediate plan is to publish ngxtension-plugin as a standalone lib and will update docs on all schematics/generators available as well as ng-add. Expecting 4.6 or 4.7 over the weekend depending on whether we cut any release in between. |
This publishes `ngxtension-plugin` as an npm package separately. Closes #410 BREAKING CHANGE: `ngxtension` no longer contains the generators/schematics. - If you set up scripts / commands that use `ngxtension` generators/schematics, please install `ngxtension-plugin` under `devDependencies` and use `ngxtension-plugin` generators/schematics instead. - If you use `initGenerator` programmatically from `ngxtension`, please update your import to `ngxtension-plugin`
congrats on the baby @nartc! Hope everything is well. please reach out if you need help with the code |
v5 has been released (to stay true to semver). Now we have 2 packages: |
In the
ngxtension
package we have lots of dependencies that will be installed in a project that hasngxtension
as dependency: https://github.com/ngxtension/ngxtension-platform/blob/main/libs/ngxtension/package.json#L32None of these are actually required. Please remove them or move them to
devDependencies
.In my current project I try to build the angular package via Docker based on Alpine, which fails because it thanks to ngextension it tries to pull in
nx
:This prevents me from using ngextension, since I deploy on ARM machines. Also this bloats my node_modules and installs
nx
every time unnecessarily.The text was updated successfully, but these errors were encountered: