docs add npm link information for @angular-devkit/schematics and @ang…#15781
docs add npm link information for @angular-devkit/schematics and @ang…#15781djencks wants to merge 1 commit intoangular:masterfrom
Conversation
|
Can you update the commit message to include a colon after |
57ce08b to
383aa28
Compare
packages/angular/cli/README.md
Outdated
| npm run build | ||
| cd dist/@angular/cli | ||
| npm link | ||
| (cd dist/@angular/cli;npm link) |
There was a problem hiding this comment.
Thinking about this a bit more the npm links should be something like
npm link dist/@angular/cli
npm link dist/@angular-devkit/schematics
Also, if you are using @angular/cli you don't need to use @angular-devkit/schematics-cli
…gular-devkit/schematics-cli The @angular-cli/README.md appears to be the build/link documentation also for @angular-devkit/schematics and @angular-devkit/schematics-cli, but following the instructions does not result in usable local schematics. Add sufficient commands so these projects can be used as local packages and the schematics command works.
383aa28 to
509b6d5
Compare
|
I updated the npm link commands, and think I found a way to use npm link to get schematics-cli to use the local schematics build. I'm not developing schematics for angular but using schematics to assemble scaffolding for another project, and per the existing documentation I was using schematics-cli during development. As my local work has moved beyond this stage I don't any longer have a setup to actually test that these commands work but the results of running them look reasonable. |
|
I can't tell from the GitHub interface if I'm expected to do anything else at this point. |
| # these need to be run after each npm run build | ||
| # in addition, npm link of schematics-cli installs the published copy of @angular-devkit/schematics into node_modules | ||
| # To induce the schematics command to use the locally compiled version of @angular-devkit/schematics: | ||
| (cd dist/@angular-devkit/schematics-cli; npm link @angular-devkit/schematics) |
There was a problem hiding this comment.
use && instead of ; as the later will not work on Windows.
|
Closing as this PR is stale. Feel free to open a new PR. Thanks. |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |


…ular-devkit/schematics-cli
The @angular-cli/README.md appears to be the build/link documentation
also for @angular-devkit/schematics and
@angular-devkit/schematics-cli, but following the instructions does
not result in usable local schematics. Add sufficient commands so
these projects can be used as local packages and the schematics
command works.
Fixes #15779