selective-standalone
v1.0.0-alpha.0
Published
Migrate to standalone one component at a time.
Downloads
11
Readme
Selective standalone migration
Migrate to standalone one component at a time.
Description
[!WARNING]
The project, though functional, is in the alpha stage. Expect bugs and relatively frequent changes.
Angular Schematic automating the standalone migration for a single selected component (whenever possible).
The script will look for obvious circular dependencies and help you handle some of the cases.
Features
- Search and refactor selected component to standalone.
- Migrate same module dependencies to prevent creating circular dependencies.
- Browse template dependency tree (WEB UI only).
Usage
Installation
npm i -D selective-standaloneRunning the schematic
This depends on whether and how @angular-devkit/schematics-cli is installed.
Not installed:
npx @angular-devkit/schematics-cli selective-standalone:runInstalled within project:
npx schematics selective-standalone:runInstalled globally:
schematics selective-standalone:runUsage examples
SOON
TL;DR: Follow instructions in the terminal to operate.
Development
SOON
TL;DR:
- Requires
node(developed using v22.14.0). - Run
npm ito install dependencies. - Run
npm run buildto build the project (this will create/distdirectory). - For quick iteration:
- Run
npm linkwithin this project's category - Run
npm link selective-standalonewithin your Angular project selective-standaloneshould be now available as if installed- No need to re-link after
npm run build, just re-run the schematic itself.
- Run
License
This project is licensed under the MIT License - see the LICENSE.md file for details.
Acknowledgments
Inspiration, code snippets, etc.
- Angular's standalone-migration
- awesome-readme
