@putout/plugin-gitignore 2.1.0 → 3.1.0
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.
- package/README.md +13 -7
- package/lib/gitignore.js +3 -2
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
# @putout/plugin-gitignore [![NPM version][NPMIMGURL]][NPMURL]
|
|
1
|
+
# @putout/plugin-gitignore [![NPM version][NPMIMGURL]][NPMURL]
|
|
2
2
|
|
|
3
3
|
[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-gitignore.svg?style=flat&longCache=true
|
|
4
4
|
[NPMURL]: https://npmjs.org/package/@putout/plugin-gitignore"npm"
|
|
5
|
-
[DependencyStatusURL]: https://david-dm.org/coderaiser/putout?path=packages/plugin-gitignore
|
|
6
|
-
[DependencyStatusIMGURL]: https://david-dm.org/coderaiser/putout.svg?path=packages/plugin-gitignore
|
|
7
5
|
|
|
8
|
-
`putout
|
|
6
|
+
🐊[`Putout`](https://github.com/coderaiser/putout) plugin helps with 🐊[`Putout`](https://github.com/coderaiser/putout) plugins development.
|
|
9
7
|
|
|
10
8
|
## Install
|
|
11
9
|
|
|
@@ -22,9 +20,8 @@ By default, all files enebled, if you want disable some of them use `dissmiss` p
|
|
|
22
20
|
"rules": {
|
|
23
21
|
"gitignore": ["on", {
|
|
24
22
|
"dismiss": [
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"*.swp"
|
|
23
|
+
"*.swp",
|
|
24
|
+
"coverage"
|
|
28
25
|
]
|
|
29
26
|
}]
|
|
30
27
|
}
|
|
@@ -49,6 +46,15 @@ Adds `*.swp` into .gitignore.
|
|
|
49
46
|
node_modules
|
|
50
47
|
```
|
|
51
48
|
|
|
49
|
+
## Add `.idea` Files
|
|
50
|
+
|
|
51
|
+
Adds `*.swp` into .gitignore.
|
|
52
|
+
|
|
53
|
+
```diff
|
|
54
|
+
+.idea
|
|
55
|
+
node_modules
|
|
56
|
+
```
|
|
57
|
+
|
|
52
58
|
## License
|
|
53
59
|
|
|
54
60
|
MIT
|
package/lib/gitignore.js
CHANGED
|
@@ -5,10 +5,10 @@ const {StringLiteral} = types;
|
|
|
5
5
|
const getValue = ({value}) => value;
|
|
6
6
|
|
|
7
7
|
const names = [
|
|
8
|
-
'.
|
|
9
|
-
'.putoutcache',
|
|
8
|
+
'.idea',
|
|
10
9
|
'*.swp',
|
|
11
10
|
'yarn-error.log',
|
|
11
|
+
'coverage',
|
|
12
12
|
];
|
|
13
13
|
|
|
14
14
|
module.exports.report = () => `Dot files should be added to .gitignore`;
|
|
@@ -43,6 +43,7 @@ module.exports.replace = ({options}) => {
|
|
|
43
43
|
if (!list.includes(name))
|
|
44
44
|
__a.elements.push(StringLiteral(name));
|
|
45
45
|
}
|
|
46
|
+
|
|
46
47
|
return path;
|
|
47
48
|
},
|
|
48
49
|
};
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@putout/plugin-gitignore",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.1.0",
|
|
4
|
+
"type": "commonjs",
|
|
4
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
5
|
-
"description": "putout plugin helps
|
|
6
|
-
"homepage": "
|
|
6
|
+
"description": "putout plugin helps with .gitignore",
|
|
7
|
+
"homepage": "https://github.com/coderaiser/putout/tree/master/packages/plugin-gitignore#readme",
|
|
7
8
|
"main": "lib/gitignore.js",
|
|
8
9
|
"release": false,
|
|
9
10
|
"tag": false,
|
|
@@ -30,18 +31,17 @@
|
|
|
30
31
|
"gitignore"
|
|
31
32
|
],
|
|
32
33
|
"devDependencies": {
|
|
33
|
-
"@putout/test": "^
|
|
34
|
-
"
|
|
35
|
-
"eslint": "^
|
|
34
|
+
"@putout/test": "^4.0.0",
|
|
35
|
+
"c8": "^7.5.0",
|
|
36
|
+
"eslint": "^8.0.1",
|
|
36
37
|
"eslint-plugin-node": "^11.0.0",
|
|
37
|
-
"eslint-plugin-putout": "^
|
|
38
|
-
"lerna": "^
|
|
38
|
+
"eslint-plugin-putout": "^12.0.0",
|
|
39
|
+
"lerna": "^4.0.0",
|
|
39
40
|
"madrun": "^8.0.1",
|
|
40
|
-
"nodemon": "^2.0.1"
|
|
41
|
-
"nyc": "^15.0.1"
|
|
41
|
+
"nodemon": "^2.0.1"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"putout": ">=
|
|
44
|
+
"putout": ">=14"
|
|
45
45
|
},
|
|
46
46
|
"license": "MIT",
|
|
47
47
|
"engines": {
|