angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Run schematic task in child directory.

Open Bored-Bohr opened this issue 7 years ago • 2 comments

Bug Report or Feature Request (mark with an x)

- [ ] bug report -> please search issues before submitting
- [x] feature request

Command (mark with an x)

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

Versions

node: v8.12.0 npm: 6.4.1 Angular CLI: 7.0.4 OS: win32 x64 (OS Build 14393.2551)

Repro steps

context.addTask(new RunSchematicTask(schematicName, options));

Desired functionality

I believe that it would be useful to be able to execute a schematic task from the child directory. Currently, new RunSchematicTask generates a HostTree from the current host and transfers the parentContext.

It would be useful for a case such as running a schematic in ng-new as a task that installs dependencies and calls _readPackageJson which relies on an absolute path for the package.json.

Bored-Bohr avatar Nov 09 '18 20:11 Bored-Bohr

Just a heads up that we kicked off a community voting process for your feature request. There are 20 days until the voting process ends.

Find more details about Angular's feature request process in our documentation.

angular-robot[bot] avatar Feb 01 '22 18:02 angular-robot[bot]

Thank you for submitting your feature request! Looks like during the polling process it didn't collect a sufficient number of votes to move to the next stage.

We want to keep Angular rich and ergonomic and at the same time be mindful about its scope and learning journey. If you think your request could live outside Angular's scope, we'd encourage you to collaborate with the community on publishing it as an open source package.

You can find more details about the feature request process in our documentation.

angular-robot[bot] avatar Feb 21 '22 13:02 angular-robot[bot]