rename-component
v1.0.7
Published
A schematic for renaming Angular components
Downloads
16
Readme
Getting Started with Schematics
================================
It includes a schematic that allows you to rename Angular components efficiently.This repository provides a basic Schematic implementation that serves as a starting point to create and publish Schematics to NPM.
Features
Rename Angular Component
Quickly rename an Angular component across your project files.Renames all related component files and updates their respective import statements across module.ts, component.ts, and routing.module.ts files, ensuring that all references are accurately adjusted throughout your project.
Customizable Options
Specify the path, old name, and new name for the component.
Installation
To ensure seamless integration and efficient development, our package is a mandatory addition to your devDependencies
To install and use the schematics, you first need to have @angular-devkit/schematics-cli
globally installed. You can install it using:
npm install -g @angular-devkit/schematics-cli
npm install --save-dev rename-component
eg:
npx schematics rename-component:rename-component --path=src/app/hello/hello.component.ts --old=Hello --new=Bye