linguist-js 2.5.3 → 2.5.5
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/dist/cli.d.ts +1 -1
- package/dist/cli.js +107 -107
- package/dist/helpers/convert-pcre.js +38 -37
- package/dist/helpers/load-data.js +30 -30
- package/dist/helpers/read-file.js +23 -23
- package/dist/helpers/walk-tree.js +64 -64
- package/dist/index.d.ts +4 -4
- package/dist/index.js +375 -375
- package/dist/schema.d.ts +37 -37
- package/dist/schema.js +2 -2
- package/dist/types.d.ts +47 -47
- package/dist/types.js +2 -2
- package/ext/documentation.yml +5 -1
- package/ext/generated.rb +64 -16
- package/ext/heuristics.yml +128 -70
- package/ext/languages.yml +481 -28
- package/ext/vendor.yml +6 -3
- package/package.json +11 -11
- package/readme.md +3 -2
package/ext/vendor.yml
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
- (^|/)\.indent\.pro
|
|
30
30
|
- (\.|-)min\.(js|css)$
|
|
31
31
|
- ([^\s]*)import\.(css|less|scss|styl)$
|
|
32
|
-
- (^|/)bootstrap([^/.]*)(
|
|
32
|
+
- (^|/)bootstrap([^/.]*)(\..*)?\.(js|css|less|scss|styl)$
|
|
33
33
|
- (^|/)custom\.bootstrap([^\s]*)(js|css|less|scss|styl)$
|
|
34
34
|
- (^|/)font-?awesome\.(css|less|scss|styl)$
|
|
35
35
|
- (^|/)font-?awesome/.*\.(css|less|scss|styl)$
|
|
@@ -103,7 +103,9 @@
|
|
|
103
103
|
- (^|/)env/
|
|
104
104
|
- (^|/)fabfile\.py$
|
|
105
105
|
- (^|/)waf$
|
|
106
|
-
- (^|/)\.osx
|
|
106
|
+
- (^|/)\.osx$
|
|
107
|
+
|
|
108
|
+
- \.xctemplate/
|
|
107
109
|
- \.imageset/
|
|
108
110
|
- (^|/)Carthage/
|
|
109
111
|
- (^|/)Sparkle/
|
|
@@ -151,7 +153,6 @@
|
|
|
151
153
|
- (^|/)foundation(\..*)?\.js$
|
|
152
154
|
- (^|/)Vagrantfile$
|
|
153
155
|
- (^|/)\.[Dd][Ss]_[Ss]tore$
|
|
154
|
-
- (^|/)vignettes/
|
|
155
156
|
- (^|/)inst/extdata/
|
|
156
157
|
- (^|/)octicons\.css
|
|
157
158
|
- (^|/)sprockets-octicons\.scss
|
|
@@ -164,3 +165,5 @@
|
|
|
164
165
|
- (^|/)Jenkinsfile$
|
|
165
166
|
- (^|/)\.gitpod\.Dockerfile$
|
|
166
167
|
- (^|/)\.github/
|
|
168
|
+
- (^|/)\.obsidian/
|
|
169
|
+
- (^|/)\.teamcity/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "linguist-js",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.5",
|
|
4
4
|
"description": "Analyse languages used in a folder. Powered by GitHub Linguist, although it doesn't need to be installed.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"node": ">=12"
|
|
12
12
|
},
|
|
13
13
|
"scripts": {
|
|
14
|
-
"download-files": "npx tsx@
|
|
15
|
-
"
|
|
16
|
-
"perf": "tsc && node test/perf",
|
|
14
|
+
"download-files": "npx tsx@3 build/download-files",
|
|
15
|
+
"pre-publish": "npm run download-files && npm test && npm run test:perf",
|
|
16
|
+
"test:perf": "tsc && node test/perf",
|
|
17
17
|
"test": "tsc && node test/folder && echo --- && node test/unit"
|
|
18
18
|
},
|
|
19
19
|
"files": [
|
|
@@ -40,18 +40,18 @@
|
|
|
40
40
|
"homepage": "https://github.com/Nixinova/Linguist#readme",
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"binary-extensions": "^2.2.0",
|
|
43
|
-
"commander": "^9.
|
|
43
|
+
"commander": "^9.5.0 <10",
|
|
44
44
|
"common-path-prefix": "^3.0.0",
|
|
45
|
-
"cross-fetch": "^3.1.
|
|
46
|
-
"ignore": "^5.2.
|
|
47
|
-
"isbinaryfile": "^4.0.8",
|
|
45
|
+
"cross-fetch": "^3.1.6",
|
|
46
|
+
"ignore": "^5.2.4",
|
|
47
|
+
"isbinaryfile": "^4.0.8 <5",
|
|
48
48
|
"js-yaml": "^4.1.0",
|
|
49
49
|
"node-cache": "^5.1.2"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/js-yaml": "^4.0.5",
|
|
53
|
-
"@types/node": "
|
|
54
|
-
"deep-object-diff": "^1.1.
|
|
55
|
-
"typescript": "~
|
|
53
|
+
"@types/node": "ts5.1",
|
|
54
|
+
"deep-object-diff": "^1.1.9",
|
|
55
|
+
"typescript": "~5.1.3"
|
|
56
56
|
}
|
|
57
57
|
}
|
package/readme.md
CHANGED
|
@@ -145,8 +145,9 @@ linguist --help
|
|
|
145
145
|
Analyse the language of all files found in a folder.
|
|
146
146
|
- `<folders...>`:
|
|
147
147
|
The folders to analyse (defaults to `./`).
|
|
148
|
-
- `--ignoredFiles <
|
|
149
|
-
A list of
|
|
148
|
+
- `--ignoredFiles <glob1> [[--ignoredFiles] <glob2> ...]`:
|
|
149
|
+
A list of file path globs to ignore.
|
|
150
|
+
When specifying more than one glob, this option can either be called with multiple values given (e.g., `--ignoredFiles *.txt *.json`) or be called multiple times (e.g., `--ignoredFiles *.txt --ignoredFiles *.json`). Both ways are equivalent.
|
|
150
151
|
- `--ignoredLanguages`:
|
|
151
152
|
A list of languages to ignore.
|
|
152
153
|
- `--categories <categories...>`:
|