angular-v20-bulk-file-refactor 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of angular-v20-bulk-file-refactor might be problematic. Click here for more details.
- package/README.md +17 -3
- package/bin/cli.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
A CLI tool to automate file renaming and content refactoring for Angular 20 projects. This tool updates file names and TypeScript file contents to align with Angular 20 conventions, handling patterns like `.component`, `.service`, `.directive`, and `.model`.
|
|
4
4
|
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## ⚠️ Important Note
|
|
8
|
+
|
|
9
|
+
> **The project path you provide must include `/src/app`**
|
|
10
|
+
>
|
|
11
|
+
> If you omit `/src/app`, the tool will **not work** and will throw an error.
|
|
12
|
+
>
|
|
13
|
+
> Example:
|
|
14
|
+
> ✅ `npx angular-v20-bulk-file-refactor /path/to/angular/project/src/app`
|
|
15
|
+
> ❌ `npx angular-v20-bulk-file-refactor /path/to/angular/project`
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
5
19
|
## Installation
|
|
6
20
|
|
|
7
21
|
### Global Installation
|
|
@@ -14,7 +28,7 @@ npm install -g angular-v20-bulk-file-refactor
|
|
|
14
28
|
Run the tool directly:
|
|
15
29
|
|
|
16
30
|
```bash
|
|
17
|
-
angular-v20-bulk-file-refactor /path/to/your/angular/project
|
|
31
|
+
angular-v20-bulk-file-refactor /path/to/your/angular/project/src/app
|
|
18
32
|
```
|
|
19
33
|
|
|
20
34
|
### Local Installation
|
|
@@ -27,7 +41,7 @@ npm install angular-v20-bulk-file-refactor
|
|
|
27
41
|
Run the tool using `npx`:
|
|
28
42
|
|
|
29
43
|
```bash
|
|
30
|
-
npx angular-v20-bulk-file-refactor /path/to/your/angular/project
|
|
44
|
+
npx angular-v20-bulk-file-refactor /path/to/your/angular/project/src/app
|
|
31
45
|
```
|
|
32
46
|
|
|
33
47
|
Alternatively, add a script to your `package.json`:
|
|
@@ -43,7 +57,7 @@ Alternatively, add a script to your `package.json`:
|
|
|
43
57
|
Then run:
|
|
44
58
|
|
|
45
59
|
```bash
|
|
46
|
-
npm run refactor -- /path/to/your/angular/project
|
|
60
|
+
npm run refactor -- /path/to/your/angular/project/src/app
|
|
47
61
|
```
|
|
48
62
|
|
|
49
63
|
## Usage
|
package/bin/cli.js
CHANGED
|
@@ -4,7 +4,7 @@ const { execFile } = require('child_process');
|
|
|
4
4
|
const path = require('path');
|
|
5
5
|
|
|
6
6
|
program
|
|
7
|
-
.version('1.0.
|
|
7
|
+
.version('1.0.7')
|
|
8
8
|
.description('CLI tool to refactor Angular 20 project files by renaming and updating contents')
|
|
9
9
|
.argument('<projectPath>', 'Path to the Angular project folder')
|
|
10
10
|
.option('-s, --skip-dirs <dirs>', 'Comma-separated list of directories to skip', 'models,partials')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "angular-v20-bulk-file-refactor",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"description": "A CLI tool to automate file renaming and TypeScript refactoring for Angular 20 projects, aligning with conventions for components, services, directives, models, and standalone components.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|