Skip to content

Extend the schematics node-package task to allow installing individual packages globally. #15782

@djencks

Description

@djencks

🚀 Feature request

Command (mark with an x)

- [ ] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

schematics

Description

A clear and concise description of the problem or missing capability...

While the original purpose of schematics is to provide scaffolding for node.js projects, they can also be used to set up scaffolding for non-javascript projects that happen to use node based tools. In this case, installing packages locally doesn't make sense, whereas installing tools globally can be extremely useful. In particular, I'm working on some schematics to set up antora projects and installing antora globally is pretty much a necessary feature. Rather than including a customized copy of the node-package task I think it makes sense to enhance the built-in task.

Describe the solution you'd like

If you have a solution in mind, please describe it.

Enhance the schematics node-package task with a global flag.

Describe alternatives you've considered

Have you considered any alternative solutions or workarounds?

I can package this with my schematics, but this seems like a generally useful feature.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions