Skip to content

Commit 19bb1b2

Browse files
Publish release on NPM
1 parent 7bc8ad3 commit 19bb1b2

File tree

3 files changed

+50
-3
lines changed

3 files changed

+50
-3
lines changed

README.md

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# ngx-stylesweep
2+
3+
`ngx-stylesweep` is a command-line tool that removes empty style files from your Angular components.
4+
5+
## Support
6+
7+
This tool traverses your Angular project's source directory, identifies Angular components with style files, and deletes
8+
any style files that are
9+
empty. It also updates the respective component files to remove references to the deleted style files.
10+
11+
This tool comes with support for Angular `@Component`'s `styleUrl` attribute. Support for `styleUrls` and other style
12+
attributes is coming soon.
13+
14+
## Installation
15+
16+
Install `ngx-stylesweep` in your project as a dev dependency using npm:
17+
18+
```bash
19+
npm install -D @bernardogiordano/ngx-stylesweep
20+
```
21+
22+
You can also install it globally:
23+
24+
```bash
25+
npm install -g @bernardogiordano/ngx-stylesweep
26+
```
27+
28+
## Usage
29+
30+
To use `ngx-stylesweep`, run the following command in your project's root directory:
31+
32+
```bash
33+
ngx-stylesweep -p /path/to/your/angular/project
34+
35+
Options:
36+
-V, --version output the version number
37+
-p, --path <path> Path to the root source directory (default: ".")
38+
-h, --help display help for command
39+
```
40+
41+
## Contributing
42+
43+
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
44+
45+
## License
46+
47+
`ngx-stylesweep` is licensed under the MIT License.

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bernardogiordano/ngx-stylesweep",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "ngx-stylesweep is a command-line tool that removes empty style files from your Angular components.",
55
"main": "./dist/index.js",
66
"files": [

0 commit comments

Comments
 (0)