untracked 1.4.4 → 1.4.8
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 +0 -2
- package/package.json +18 -20
- package/src/getProductionDeps.js +1 -1
- package/src/load-config.js +18 -2
- package/CHANGELOG.md +0 -171
package/README.md
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|

|
|
4
4
|
[](https://travis-ci.org/Kikobeats/untracked)
|
|
5
|
-
[](https://david-dm.org/Kikobeats/untracked)
|
|
6
|
-
[](https://david-dm.org/Kikobeats/untracked#info=devDependencies)
|
|
7
5
|
[](https://www.npmjs.org/package/untracked)
|
|
8
6
|
|
|
9
7
|
<div align="center">
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "untracked",
|
|
3
3
|
"description": "Universal way for ignoring unnecessary common files to fit your bundle",
|
|
4
4
|
"homepage": "https://nicedoc.io/Kikobeats/untracked",
|
|
5
|
-
"version": "1.4.
|
|
5
|
+
"version": "1.4.8",
|
|
6
6
|
"main": "src/index.js",
|
|
7
7
|
"bin": {
|
|
8
8
|
"untracked": "bin/index.js"
|
|
@@ -35,24 +35,22 @@
|
|
|
35
35
|
"webpack"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"
|
|
39
|
-
"lodash": "~4.17.
|
|
40
|
-
"meow": "~
|
|
41
|
-
"update-notifier": "~5.
|
|
38
|
+
"joycon": "~3.1.1",
|
|
39
|
+
"lodash": "~4.17.21",
|
|
40
|
+
"meow": "~9.0.0",
|
|
41
|
+
"update-notifier": "~5.1.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@commitlint/cli": "latest",
|
|
45
45
|
"@commitlint/config-conventional": "latest",
|
|
46
46
|
"ci-publish": "latest",
|
|
47
47
|
"conventional-github-releaser": "latest",
|
|
48
|
-
"coveralls": "latest",
|
|
49
48
|
"finepack": "latest",
|
|
50
49
|
"git-authors-cli": "latest",
|
|
51
|
-
"
|
|
52
|
-
"husky": "latest",
|
|
53
|
-
"lint-staged": "latest",
|
|
50
|
+
"nano-staged": "latest",
|
|
54
51
|
"npm-check-updates": "latest",
|
|
55
52
|
"prettier-standard": "latest",
|
|
53
|
+
"simple-git-hooks": "latest",
|
|
56
54
|
"standard": "latest",
|
|
57
55
|
"standard-markdown": "latest",
|
|
58
56
|
"standard-version": "latest"
|
|
@@ -69,7 +67,7 @@
|
|
|
69
67
|
"contributors": "(git-authors-cli && finepack && git add package.json && git commit -m 'build: contributors' --no-verify) || true",
|
|
70
68
|
"coveralls": "nyc report --reporter=text-lcov | coveralls",
|
|
71
69
|
"lint": "standard-markdown README.md && standard",
|
|
72
|
-
"postrelease": "npm run release:tags && npm run release:github && ci-publish",
|
|
70
|
+
"postrelease": "npm run release:tags && npm run release:github && (ci-publish || npm publish --access=public)",
|
|
73
71
|
"prerelease": "npm run update:check && npm run contributors",
|
|
74
72
|
"pretest": "npm run lint",
|
|
75
73
|
"pretty": "prettier-standard index.js {core,test,bin}/**/*.js --single-quote",
|
|
@@ -87,19 +85,19 @@
|
|
|
87
85
|
"@commitlint/config-conventional"
|
|
88
86
|
]
|
|
89
87
|
},
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
"lint-staged": {
|
|
97
|
-
"*.js": [
|
|
98
|
-
"prettier-standard",
|
|
99
|
-
"git add"
|
|
88
|
+
"nano-staged": {
|
|
89
|
+
"*.js,!*.min.js,": [
|
|
90
|
+
"prettier-standard"
|
|
91
|
+
],
|
|
92
|
+
"*.md": [
|
|
93
|
+
"standard-markdown"
|
|
100
94
|
],
|
|
101
95
|
"package.json": [
|
|
102
96
|
"finepack"
|
|
103
97
|
]
|
|
98
|
+
},
|
|
99
|
+
"simple-git-hooks": {
|
|
100
|
+
"commit-msg": "npx commitlint --edit",
|
|
101
|
+
"pre-commit": "npx nano-staged"
|
|
104
102
|
}
|
|
105
103
|
}
|
package/src/getProductionDeps.js
CHANGED
|
@@ -16,7 +16,7 @@ const flattenDeps = (pkg, acc) => {
|
|
|
16
16
|
const readProductionDeps = () => {
|
|
17
17
|
let output
|
|
18
18
|
try {
|
|
19
|
-
output = execSync('npm ls --prod --json 2>/dev/null')
|
|
19
|
+
output = execSync('npm ls --prod --all --json 2>/dev/null')
|
|
20
20
|
} catch (err) {
|
|
21
21
|
output = err.stdout
|
|
22
22
|
}
|
package/src/load-config.js
CHANGED
|
@@ -1,12 +1,28 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
const config = require('cosmiconfig').cosmiconfig('untracked')
|
|
4
3
|
const { get } = require('lodash')
|
|
4
|
+
const JoyCon = require('joycon')
|
|
5
5
|
|
|
6
6
|
const DEFAULT = {
|
|
7
7
|
blacklist: require('./default/blacklist')
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
+
const loadConfig = async cwd => {
|
|
11
|
+
const joycon = new JoyCon({
|
|
12
|
+
cwd,
|
|
13
|
+
packageKey: 'untracked',
|
|
14
|
+
files: [
|
|
15
|
+
'package.json',
|
|
16
|
+
'.untrackedrc',
|
|
17
|
+
'.untrackedrc.json',
|
|
18
|
+
'.untrackedrc.js',
|
|
19
|
+
'untracked.config.js'
|
|
20
|
+
]
|
|
21
|
+
})
|
|
22
|
+
const { data: configFile } = await joycon.load()
|
|
23
|
+
return configFile
|
|
24
|
+
}
|
|
25
|
+
|
|
10
26
|
const createCollection = (configFile, propName) => {
|
|
11
27
|
const collection = new Set(get(configFile, `config.${propName}`, []))
|
|
12
28
|
DEFAULT[propName] && DEFAULT[propName].forEach(item => collection.add(item))
|
|
@@ -14,7 +30,7 @@ const createCollection = (configFile, propName) => {
|
|
|
14
30
|
}
|
|
15
31
|
|
|
16
32
|
module.exports = async ({ cwd = process.cwd() }) => {
|
|
17
|
-
const configFile = await
|
|
33
|
+
const configFile = await loadConfig(cwd)
|
|
18
34
|
|
|
19
35
|
return {
|
|
20
36
|
whitelist: createCollection(configFile, 'whitelist'),
|
package/CHANGELOG.md
DELETED
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
|
-
|
|
5
|
-
### [1.4.4](https://github.com/Kikobeats/untracked/compare/v1.4.3...v1.4.4) (2020-12-25)
|
|
6
|
-
|
|
7
|
-
### [1.4.3](https://github.com/Kikobeats/untracked/compare/v1.4.2...v1.4.3) (2020-11-30)
|
|
8
|
-
|
|
9
|
-
### [1.4.2](https://github.com/Kikobeats/untracked/compare/v1.4.1...v1.4.2) (2020-11-30)
|
|
10
|
-
|
|
11
|
-
### [1.4.1](https://github.com/Kikobeats/untracked/compare/v1.4.0...v1.4.1) (2020-10-30)
|
|
12
|
-
|
|
13
|
-
## 1.4.0 (2020-05-07)
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
### Features
|
|
17
|
-
|
|
18
|
-
* improve filtering ([9373577](https://github.com/Kikobeats/untracked/commit/93735771cacb613e068c34a6459320e48c42d60f))
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
### Bug Fixes
|
|
22
|
-
|
|
23
|
-
* **package:** update cosmiconfig to version 4.0.0 ([5905265](https://github.com/Kikobeats/untracked/commit/59052654ce433b5f594948bc4266cc5fab378222))
|
|
24
|
-
* **package:** update cosmiconfig to version 5.0.0 ([5f5d471](https://github.com/Kikobeats/untracked/commit/5f5d471cc8b723c94385763f6d5adc6c4732126a))
|
|
25
|
-
* **package:** update cosmiconfig to version 5.1.0 ([fe701ca](https://github.com/Kikobeats/untracked/commit/fe701cae4e20bc5f290373eddd23eaa385e8155f))
|
|
26
|
-
* **package:** update cosmiconfig to version 5.2.0 ([d84a41c](https://github.com/Kikobeats/untracked/commit/d84a41cbe67ba2538ef960e6f0ab35cc7f497d11))
|
|
27
|
-
* **package:** update update-notifier to version 2.4.0 ([1d5b950](https://github.com/Kikobeats/untracked/commit/1d5b9502b7818947b09613a91b7c8bdd5a865e63))
|
|
28
|
-
* **package:** update update-notifier to version 2.5.0 ([80fe27c](https://github.com/Kikobeats/untracked/commit/80fe27cf603edcfe7afb5d0a1e61db8d735e73e6))
|
|
29
|
-
* **package:** update update-notifier to version 2.6.0 ([0516c26](https://github.com/Kikobeats/untracked/commit/0516c26cdc5ac967327af107482c6b12c385ac1c))
|
|
30
|
-
* add more cases ([c53aea1](https://github.com/Kikobeats/untracked/commit/c53aea15edaf9ec82384588d460dfd00ca49663d))
|
|
31
|
-
* **package:** update meow to version 5.0.0 ([3a60363](https://github.com/Kikobeats/untracked/commit/3a603631599921cf62a4e1ed3061a31ca5950603))
|
|
32
|
-
|
|
33
|
-
## 1.3.0 (2020-01-20)
|
|
34
|
-
|
|
35
|
-
* build: update dependencies ([afa5bff](https://github.com/Kikobeats/untracked/commit/afa5bff))
|
|
36
|
-
* docs: add lambda-prune ([60005d8](https://github.com/Kikobeats/untracked/commit/60005d8))
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
<a name="1.2.3"></a>
|
|
41
|
-
## 1.2.3 (2019-06-21)
|
|
42
|
-
|
|
43
|
-
* build: exclude txt extension ([03162ba](https://github.com/Kikobeats/untracked/commit/03162ba))
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
<a name="1.2.2"></a>
|
|
48
|
-
## 1.2.2 (2019-06-20)
|
|
49
|
-
|
|
50
|
-
* build: migrate hooks ([3d8abd9](https://github.com/Kikobeats/untracked/commit/3d8abd9))
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
<a name="1.2.1"></a>
|
|
55
|
-
## 1.2.1 (2019-06-20)
|
|
56
|
-
|
|
57
|
-
* build: tweaks ([9cf1860](https://github.com/Kikobeats/untracked/commit/9cf1860))
|
|
58
|
-
* build: update dependencies ([676d3a1](https://github.com/Kikobeats/untracked/commit/676d3a1))
|
|
59
|
-
* build: update dependencies ([b1d0ed8](https://github.com/Kikobeats/untracked/commit/b1d0ed8))
|
|
60
|
-
* build: use lodash as dependency ([9707fbc](https://github.com/Kikobeats/untracked/commit/9707fbc))
|
|
61
|
-
* docs: add docker ([23b19d4](https://github.com/Kikobeats/untracked/commit/23b19d4))
|
|
62
|
-
* docs: add Heroku section ([080632f](https://github.com/Kikobeats/untracked/commit/080632f))
|
|
63
|
-
* docs: add yarn command ([9f88758](https://github.com/Kikobeats/untracked/commit/9f88758))
|
|
64
|
-
* docs: revamped ([ef6ca02](https://github.com/Kikobeats/untracked/commit/ef6ca02))
|
|
65
|
-
* [ImgBot] Optimize images ([12c3c0d](https://github.com/Kikobeats/untracked/commit/12c3c0d))
|
|
66
|
-
* Fix incorrect file name on `Up` documentation ([0d76d9b](https://github.com/Kikobeats/untracked/commit/0d76d9b))
|
|
67
|
-
* Update README.md ([85c3617](https://github.com/Kikobeats/untracked/commit/85c3617))
|
|
68
|
-
* Update README.md ([edda309](https://github.com/Kikobeats/untracked/commit/edda309))
|
|
69
|
-
* Update README.md ([ebf6c68](https://github.com/Kikobeats/untracked/commit/ebf6c68))
|
|
70
|
-
* fix(package): update cosmiconfig to version 5.2.0 ([d84a41c](https://github.com/Kikobeats/untracked/commit/d84a41c))
|
|
71
|
-
* fix(package): update update-notifier to version 2.6.0 ([0516c26](https://github.com/Kikobeats/untracked/commit/0516c26))
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
<a name="1.2.0"></a>
|
|
76
|
-
# 1.2.0 (2019-03-17)
|
|
77
|
-
|
|
78
|
-
* build: add markup format ([252817f](https://github.com/Kikobeats/untracked/commit/252817f))
|
|
79
|
-
* fix(package): update cosmiconfig to version 5.1.0 ([fe701ca](https://github.com/Kikobeats/untracked/commit/fe701ca))
|
|
80
|
-
* Update README.md ([5dfe905](https://github.com/Kikobeats/untracked/commit/5dfe905))
|
|
81
|
-
* Update README.md ([fdf65de](https://github.com/Kikobeats/untracked/commit/fdf65de))
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
<a name="1.1.1"></a>
|
|
86
|
-
## 1.1.1 (2018-12-03)
|
|
87
|
-
|
|
88
|
-
* fix: add more cases ([c53aea1](https://github.com/Kikobeats/untracked/commit/c53aea1))
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
<a name="1.1.0"></a>
|
|
93
|
-
# 1.1.0 (2018-12-03)
|
|
94
|
-
|
|
95
|
-
* feat: improve filtering ([9373577](https://github.com/Kikobeats/untracked/commit/9373577))
|
|
96
|
-
* Update package.json ([3f3d726](https://github.com/Kikobeats/untracked/commit/3f3d726))
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
<a name="1.0.8"></a>
|
|
101
|
-
## 1.0.8 (2018-05-10)
|
|
102
|
-
|
|
103
|
-
* Migrate to last cosmiconfig version ([da960d9](https://github.com/Kikobeats/untracked/commit/da960d9))
|
|
104
|
-
* fix(package): update cosmiconfig to version 5.0.0 ([5f5d471](https://github.com/Kikobeats/untracked/commit/5f5d471))
|
|
105
|
-
* fix(package): update meow to version 5.0.0 ([3a60363](https://github.com/Kikobeats/untracked/commit/3a60363))
|
|
106
|
-
* fix(package): update update-notifier to version 2.4.0 ([1d5b950](https://github.com/Kikobeats/untracked/commit/1d5b950))
|
|
107
|
-
* fix(package): update update-notifier to version 2.5.0 ([80fe27c](https://github.com/Kikobeats/untracked/commit/80fe27c))
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
<a name="1.0.7"></a>
|
|
112
|
-
## 1.0.7 (2018-03-06)
|
|
113
|
-
|
|
114
|
-
* Update ([8529fae](https://github.com/Kikobeats/untracked/commit/8529fae))
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
<a name="1.0.6"></a>
|
|
119
|
-
## 1.0.6 (2018-02-09)
|
|
120
|
-
|
|
121
|
-
* Fix files field ([25af8a5](https://github.com/Kikobeats/untracked/commit/25af8a5))
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
<a name="1.0.5"></a>
|
|
126
|
-
## 1.0.5 (2018-02-09)
|
|
127
|
-
|
|
128
|
-
* Add files field ([128f499](https://github.com/Kikobeats/untracked/commit/128f499))
|
|
129
|
-
* Add more files to ignore ([3168d74](https://github.com/Kikobeats/untracked/commit/3168d74))
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
<a name="1.0.4"></a>
|
|
134
|
-
## 1.0.4 (2018-01-23)
|
|
135
|
-
|
|
136
|
-
* Add more files to ignore ([afa1036](https://github.com/Kikobeats/untracked/commit/afa1036))
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
<a name="1.0.3"></a>
|
|
141
|
-
## 1.0.3 (2018-01-19)
|
|
142
|
-
|
|
143
|
-
* Add license variation ([84a14ed](https://github.com/Kikobeats/untracked/commit/84a14ed))
|
|
144
|
-
* Update README.md ([25c69c4](https://github.com/Kikobeats/untracked/commit/25c69c4))
|
|
145
|
-
* fix(package): update cosmiconfig to version 4.0.0 ([5905265](https://github.com/Kikobeats/untracked/commit/5905265))
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
<a name="1.0.2"></a>
|
|
150
|
-
## 1.0.2 (2017-12-25)
|
|
151
|
-
|
|
152
|
-
* Add more rules ([12b1e25](https://github.com/Kikobeats/untracked/commit/12b1e25))
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
<a name="1.0.1"></a>
|
|
157
|
-
## 1.0.1 (2017-12-24)
|
|
158
|
-
|
|
159
|
-
* Resolve all production deps ([419048a](https://github.com/Kikobeats/untracked/commit/419048a))
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
<a name="1.0.0"></a>
|
|
164
|
-
# 1.0.0 (2017-12-24)
|
|
165
|
-
|
|
166
|
-
* Add keywords ([808686d](https://github.com/Kikobeats/untracked/commit/808686d))
|
|
167
|
-
* First commit ([99fe61e](https://github.com/Kikobeats/untracked/commit/99fe61e))
|
|
168
|
-
* Update README.md ([e2daef5](https://github.com/Kikobeats/untracked/commit/e2daef5))
|
|
169
|
-
* Update README.md ([35c7803](https://github.com/Kikobeats/untracked/commit/35c7803))
|
|
170
|
-
* Update README.md ([f68bd82](https://github.com/Kikobeats/untracked/commit/f68bd82))
|
|
171
|
-
* docs(readme): add Greenkeeper badge ([3f8696a](https://github.com/Kikobeats/untracked/commit/3f8696a))
|