Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Commit a8b7b6f

Browse files
author
Cdok
committed
Updated readme to reflect npm install method
1 parent 85d929b commit a8b7b6f

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

copyright/README.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,30 @@ This tool reads from the `headers/copyright-header.extension` files to select wh
77
Add the following to your `package.json`
88

99
```json
10-
"copyright:lint": "copyright.js glob",
11-
"copyright:fix" "copyright.js glob --fix"
10+
"copyright:lint": "copyright glob",
11+
"copyright:fix" "copyright glob --fix",
1212
```
1313

1414
```bash
1515
npm install mobify-code-style --save
16-
npm run lint:copyright
16+
npm run copyright:lint
1717
```
1818

1919
## Example
2020

21+
Add the following to your `package.json` file
22+
23+
```json
24+
"copyright:fix": "copyright ./src/**/*.js --fix",
25+
```
26+
27+
Then run
28+
2129
```bash
22-
node copyright.js ../../some-project/bin/**/*.js
30+
npm run copyright:lint
2331
```
2432

25-
This command would add the copyright header from `headers/copyright-header.js` to all `.js` files in the `some-project/bin` directory
33+
This will add copyright headers to _all_ `.js` files in the `src` directory in the root of your project.
2634

2735
## Lint Mode
2836

0 commit comments

Comments
 (0)