view-ignored 0.1.0 → 0.2.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 +37 -54
- package/bin/viewig +2 -2
- package/out/src/bin.d.ts +2 -0
- package/out/src/bin.js +3 -0
- package/out/src/browser/binds/index.d.ts +45 -0
- package/out/src/browser/binds/index.js +78 -0
- package/out/src/browser/binds/plugins/git.d.ts +3 -0
- package/out/src/browser/binds/plugins/git.js +24 -0
- package/out/src/browser/binds/plugins/npm.d.ts +11 -0
- package/out/src/browser/binds/plugins/npm.js +71 -0
- package/out/src/browser/binds/plugins/vsce.d.ts +9 -0
- package/out/src/browser/binds/plugins/vsce.js +21 -0
- package/out/src/browser/binds/plugins/yarn.d.ts +16 -0
- package/out/src/browser/binds/plugins/yarn.js +78 -0
- package/out/src/browser/binds/targets.d.ts +64 -0
- package/out/src/browser/binds/targets.js +56 -0
- package/out/src/browser/errors.d.ts +10 -0
- package/out/src/browser/errors.js +20 -0
- package/out/src/browser/fileinfo.d.ts +82 -0
- package/out/src/browser/fileinfo.js +78 -0
- package/{lib → out/src/browser}/index.d.ts +0 -1
- package/{lib → out/src}/browser/index.js +0 -1
- package/out/src/browser/lib.d.ts +141 -0
- package/out/src/browser/lib.js +126 -0
- package/out/src/browser/scanner.d.ts +103 -0
- package/out/src/browser/scanner.js +161 -0
- package/out/src/browser/sorting.d.ts +41 -0
- package/out/src/browser/sorting.js +133 -0
- package/out/src/browser/sourceinfo.d.ts +62 -0
- package/out/src/browser/sourceinfo.js +105 -0
- package/out/src/browser/styling.d.ts +90 -0
- package/out/src/browser/styling.js +153 -0
- package/out/src/cli.d.ts +92 -0
- package/out/src/cli.js +249 -0
- package/out/src/config.d.ts +141 -0
- package/out/src/config.js +257 -0
- package/{lib/browser → out/src}/index.d.ts +0 -1
- package/{lib → out/src}/index.js +0 -1
- package/{lib → out/src}/lib.d.ts +1 -2
- package/{lib → out/src}/lib.js +1 -2
- package/out/src/styling.d.ts +4 -0
- package/out/src/styling.js +40 -0
- package/package.json +20 -14
- package/lib/bin.d.ts +0 -3
- package/lib/bin.d.ts.map +0 -1
- package/lib/bin.js +0 -4
- package/lib/bin.js.map +0 -1
- package/lib/browser/binds/index.d.ts +0 -2
- package/lib/browser/binds/index.d.ts.map +0 -1
- package/lib/browser/binds/index.js +0 -2
- package/lib/browser/binds/index.js.map +0 -1
- package/lib/browser/binds/targets.d.ts +0 -38
- package/lib/browser/binds/targets.d.ts.map +0 -1
- package/lib/browser/binds/targets.js +0 -38
- package/lib/browser/binds/targets.js.map +0 -1
- package/lib/browser/binds.d.ts +0 -22
- package/lib/browser/binds.d.ts.map +0 -1
- package/lib/browser/binds.js +0 -14
- package/lib/browser/binds.js.map +0 -1
- package/lib/browser/fileinfo.d.ts +0 -35
- package/lib/browser/fileinfo.d.ts.map +0 -1
- package/lib/browser/fileinfo.js +0 -42
- package/lib/browser/fileinfo.js.map +0 -1
- package/lib/browser/index.d.ts.map +0 -1
- package/lib/browser/index.js.map +0 -1
- package/lib/browser/lib.d.ts +0 -122
- package/lib/browser/lib.d.ts.map +0 -1
- package/lib/browser/lib.js +0 -115
- package/lib/browser/lib.js.map +0 -1
- package/lib/browser/looker.d.ts +0 -60
- package/lib/browser/looker.d.ts.map +0 -1
- package/lib/browser/looker.js +0 -80
- package/lib/browser/looker.js.map +0 -1
- package/lib/browser/plugins/git.d.ts +0 -10
- package/lib/browser/plugins/git.d.ts.map +0 -1
- package/lib/browser/plugins/git.js +0 -23
- package/lib/browser/plugins/git.js.map +0 -1
- package/lib/browser/plugins/npm.d.ts +0 -12
- package/lib/browser/plugins/npm.d.ts.map +0 -1
- package/lib/browser/plugins/npm.js +0 -70
- package/lib/browser/plugins/npm.js.map +0 -1
- package/lib/browser/plugins/vsce.d.ts +0 -10
- package/lib/browser/plugins/vsce.d.ts.map +0 -1
- package/lib/browser/plugins/vsce.js +0 -23
- package/lib/browser/plugins/vsce.js.map +0 -1
- package/lib/browser/plugins/yarn.d.ts +0 -15
- package/lib/browser/plugins/yarn.d.ts.map +0 -1
- package/lib/browser/plugins/yarn.js +0 -46
- package/lib/browser/plugins/yarn.js.map +0 -1
- package/lib/browser/sorting.d.ts +0 -31
- package/lib/browser/sorting.d.ts.map +0 -1
- package/lib/browser/sorting.js +0 -121
- package/lib/browser/sorting.js.map +0 -1
- package/lib/browser/sourcepattern.d.ts +0 -25
- package/lib/browser/sourcepattern.d.ts.map +0 -1
- package/lib/browser/sourcepattern.js +0 -45
- package/lib/browser/sourcepattern.js.map +0 -1
- package/lib/browser/styling.d.ts +0 -16
- package/lib/browser/styling.d.ts.map +0 -1
- package/lib/browser/styling.js +0 -116
- package/lib/browser/styling.js.map +0 -1
- package/lib/browser/tools/index.d.ts +0 -3
- package/lib/browser/tools/index.d.ts.map +0 -1
- package/lib/browser/tools/index.js +0 -3
- package/lib/browser/tools/index.js.map +0 -1
- package/lib/browser/tools/sorting.d.ts +0 -31
- package/lib/browser/tools/sorting.d.ts.map +0 -1
- package/lib/browser/tools/sorting.js +0 -121
- package/lib/browser/tools/sorting.js.map +0 -1
- package/lib/browser/tools/styles.d.ts +0 -16
- package/lib/browser/tools/styles.d.ts.map +0 -1
- package/lib/browser/tools/styles.js +0 -116
- package/lib/browser/tools/styles.js.map +0 -1
- package/lib/cli.d.ts +0 -26
- package/lib/cli.d.ts.map +0 -1
- package/lib/cli.js +0 -134
- package/lib/cli.js.map +0 -1
- package/lib/config.d.ts +0 -80
- package/lib/config.d.ts.map +0 -1
- package/lib/config.js +0 -105
- package/lib/config.js.map +0 -1
- package/lib/git.d.ts +0 -13
- package/lib/git.d.ts.map +0 -1
- package/lib/git.js +0 -37
- package/lib/git.js.map +0 -1
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js.map +0 -1
- package/lib/lib.d.ts.map +0 -1
- package/lib/lib.js.map +0 -1
- package/lib/plugins/git.d.ts +0 -9
- package/lib/plugins/git.js +0 -22
- package/lib/plugins/git.js.map +0 -1
- package/lib/plugins/npm.d.ts +0 -12
- package/lib/plugins/npm.js +0 -74
- package/lib/plugins/npm.js.map +0 -1
- package/lib/plugins/vsce.d.ts +0 -9
- package/lib/plugins/vsce.js +0 -22
- package/lib/plugins/vsce.js.map +0 -1
- package/lib/plugins/yarn.d.ts +0 -15
- package/lib/plugins/yarn.js +0 -50
- package/lib/plugins/yarn.js.map +0 -1
- package/lib/tools/index.d.ts +0 -3
- package/lib/tools/index.js +0 -4
- package/lib/tools/index.js.map +0 -1
- package/lib/tools/methods.d.ts +0 -16
- package/lib/tools/methods.js +0 -81
- package/lib/tools/methods.js.map +0 -1
- package/lib/tools/sorting.d.ts +0 -30
- package/lib/tools/sorting.js +0 -121
- package/lib/tools/sorting.js.map +0 -1
- package/lib/tools/styles.d.ts +0 -15
- package/lib/tools/styles.js +0 -123
- package/lib/tools/styles.js.map +0 -1
- package/lib/util/index.d.ts +0 -3
- package/lib/util/index.js +0 -4
- package/lib/util/index.js.map +0 -1
- package/lib/util/presets.d.ts +0 -24
- package/lib/util/presets.js +0 -129
- package/lib/util/presets.js.map +0 -1
- package/lib/util/sorting.d.ts +0 -30
- package/lib/util/sorting.js +0 -121
- package/lib/util/sorting.js.map +0 -1
- package/lib/util/styles.d.ts +0 -8
- package/lib/util/styles.js +0 -52
- package/lib/util/styles.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fileinfo.js","sourceRoot":"","sources":["../../src/browser/fileinfo.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAa,MAAM,cAAc,CAAA;AAC5D,OAAO,IAAI,MAAM,MAAM,CAAA;AAiBvB;;GAEG;AACH,MAAM,OAAO,QAAQ;IAEpB,YACiB,QAAgB,EAChB,MAAc,EACd,MAAkB;QAFlB,aAAQ,GAAR,QAAQ,CAAQ;QAChB,WAAM,GAAN,MAAM,CAAQ;QACd,WAAM,GAAN,MAAM,CAAY;QAElC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OA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;YACjD,IAAI,YAAY,EAAE,CAAC;gBAClB,OAAO,QAAQ,GAAG,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAA;YAC9C,CAAC;YACD,OAAO,MAAM,CAAC,GAAG,GAAG,GAAG,GAAG,QAAQ,GAAG,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,CAAA;QAC/D,CAAC;QACD,IAAI,YAAY,EAAE,CAAC;YAClB,OAAO,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAA;QAC9B,CAAC;QACD,OAAO,MAAM,CAAC,GAAG,GAAG,GAAG,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC,IAAI,CAAA;IAC1D,CAAC;CACD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,UAAU,CAAA;AACvC,eAAe,WAAW,CAAA;AAC1B,cAAc,UAAU,CAAA"}
|
package/lib/browser/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,UAAU,CAAA;AACvC,eAAe,WAAW,CAAA;AAC1B,cAAc,UAAU,CAAA"}
|
package/lib/browser/lib.d.ts
DELETED
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
-
import { Looker } from "./looker.js";
|
|
3
|
-
import FastGlob from "fast-glob";
|
|
4
|
-
import { FileInfo } from "./fileinfo.js";
|
|
5
|
-
import { SourcePattern } from "./sourcepattern.js";
|
|
6
|
-
export * from "./looker.js";
|
|
7
|
-
export * from "./fileinfo.js";
|
|
8
|
-
export * from "./sourcepattern.js";
|
|
9
|
-
export * as Styling from "./styling.js";
|
|
10
|
-
export * as Sorting from "./sorting.js";
|
|
11
|
-
export * as Binding from "./binds/index.js";
|
|
12
|
-
import "./plugins/git.js";
|
|
13
|
-
import "./plugins/npm.js";
|
|
14
|
-
import "./plugins/vsce.js";
|
|
15
|
-
import "./plugins/yarn.js";
|
|
16
|
-
export type PatternType = ".*ignore" | "minimatch";
|
|
17
|
-
export declare const filterNameList: readonly ["ignored", "included", "all"];
|
|
18
|
-
export type FilterName = typeof filterNameList[number];
|
|
19
|
-
export interface FileSystemAdapter extends FastGlob.FileSystemAdapter {
|
|
20
|
-
readFileSync: (path: string) => Buffer;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* @see {@link ScanMethod}
|
|
24
|
-
*/
|
|
25
|
-
export interface LookMethodData {
|
|
26
|
-
looker: Looker;
|
|
27
|
-
filePath: string;
|
|
28
|
-
sourceFile: SourceFile;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Returns `true` if given source is valid, writes rules to the looker.
|
|
32
|
-
*/
|
|
33
|
-
export type ScanMethod = (data: LookMethodData) => boolean;
|
|
34
|
-
export interface SourceFile {
|
|
35
|
-
/**
|
|
36
|
-
* Source file path
|
|
37
|
-
*/
|
|
38
|
-
path: string;
|
|
39
|
-
/**
|
|
40
|
-
* Source file content
|
|
41
|
-
*/
|
|
42
|
-
content: string;
|
|
43
|
-
}
|
|
44
|
-
export interface Source {
|
|
45
|
-
/**
|
|
46
|
-
* Git configuration property.
|
|
47
|
-
*
|
|
48
|
-
* @see {@link https://git-scm.com/docs/git-config#Documentation/git-config.txt-coreignoreCase|git-config ignorecase}.
|
|
49
|
-
* @default false
|
|
50
|
-
*/
|
|
51
|
-
ignoreCase?: boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Additional patterns, which will be used as
|
|
54
|
-
* other patterns in the `.gitignore` file, or `package.json` "files" property.
|
|
55
|
-
*
|
|
56
|
-
* @default []
|
|
57
|
-
*/
|
|
58
|
-
addPatterns?: string[];
|
|
59
|
-
/**
|
|
60
|
-
* First valid source will be used as {@link Looker}.
|
|
61
|
-
*/
|
|
62
|
-
sources: SourceFile[] | SourcePattern;
|
|
63
|
-
/**
|
|
64
|
-
* Pattern parser name.
|
|
65
|
-
*/
|
|
66
|
-
patternType: PatternType;
|
|
67
|
-
/**
|
|
68
|
-
* {@link Looker} maker.
|
|
69
|
-
*/
|
|
70
|
-
method: ScanMethod;
|
|
71
|
-
}
|
|
72
|
-
export interface ScanFileOptions {
|
|
73
|
-
/**
|
|
74
|
-
* Custom implementation of methods for working with the file system.
|
|
75
|
-
*
|
|
76
|
-
* @default fs.*
|
|
77
|
-
*/
|
|
78
|
-
fs?: FileSystemAdapter;
|
|
79
|
-
/**
|
|
80
|
-
* The current working directory in which to search.
|
|
81
|
-
*
|
|
82
|
-
* @default process.cwd()
|
|
83
|
-
*/
|
|
84
|
-
cwd?: string;
|
|
85
|
-
/**
|
|
86
|
-
* Specifies the maximum number of concurrent requests from a reader to read
|
|
87
|
-
* directories.
|
|
88
|
-
*
|
|
89
|
-
* @default os.cpus().length
|
|
90
|
-
*/
|
|
91
|
-
concurrency?: number;
|
|
92
|
-
/**
|
|
93
|
-
* Specifies the maximum depth of a read directory relative to the start
|
|
94
|
-
* directory.
|
|
95
|
-
*
|
|
96
|
-
* @default Infinity
|
|
97
|
-
*/
|
|
98
|
-
deep?: number;
|
|
99
|
-
}
|
|
100
|
-
export interface LookFolderOptions extends ScanFileOptions {
|
|
101
|
-
/**
|
|
102
|
-
* Filter output.
|
|
103
|
-
*
|
|
104
|
-
* @default "included"
|
|
105
|
-
*/
|
|
106
|
-
filter?: FilterName;
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* Returns `undefined`, if the source is bad.
|
|
110
|
-
*/
|
|
111
|
-
export declare function scanFile(filePath: string, sources: Source[], options: ScanFileOptions): Promise<FileInfo | undefined>;
|
|
112
|
-
/**
|
|
113
|
-
* Scan project directory paths with results for each file path.
|
|
114
|
-
*/
|
|
115
|
-
export declare function scanPaths(allFilePaths: string[], sources: Source[], options: LookFolderOptions): Promise<FileInfo[] | undefined>;
|
|
116
|
-
export declare function scanPaths(allFilePaths: string[], target: string, options: LookFolderOptions): Promise<FileInfo[] | undefined>;
|
|
117
|
-
/**
|
|
118
|
-
* Scan project directory with results for each file path.
|
|
119
|
-
*/
|
|
120
|
-
export declare function scanProject(sources: Source[], options: LookFolderOptions): Promise<FileInfo[] | undefined>;
|
|
121
|
-
export declare function scanProject(target: string, options: LookFolderOptions): Promise<FileInfo[] | undefined>;
|
|
122
|
-
//# sourceMappingURL=lib.d.ts.map
|
package/lib/browser/lib.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../src/browser/lib.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,QAAQ,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAkB,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGnE,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA;AAC7B,cAAc,oBAAoB,CAAA;AAClC,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AACvC,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AACvC,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAA;AAG3C,OAAO,kBAAkB,CAAA;AACzB,OAAO,kBAAkB,CAAA;AACzB,OAAO,mBAAmB,CAAA;AAC1B,OAAO,mBAAmB,CAAA;AAG1B,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG,WAAW,CAAA;AAClD,eAAO,MAAM,cAAc,yCAA0C,CAAA;AACrE,MAAM,MAAM,UAAU,GAAG,OAAO,cAAc,CAAC,MAAM,CAAC,CAAA;AAEtD,MAAM,WAAW,iBAAkB,SAAQ,QAAQ,CAAC,iBAAiB;IACpE,YAAY,EAAE,CAAC,IAAI,EA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,EAAE,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,QAAQ,EAAE,GAAG,SAAS,CAAC,CAAA;AACvI,wBAAsB,SAAS,CAAC,YAAY,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,QAAQ,EAAE,GAAG,SAAS,CAAC,CAAA;AAiDpI;;GAEG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,QAAQ,EAAE,GAAG,SAAS,CAAC,CAAA;AAC3G,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,QAAQ,EAAE,GAAG,SAAS,CAAC,CAAA"}
|
package/lib/browser/lib.js
DELETED
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
import { Looker } from "./looker.js";
|
|
11
|
-
import { FileInfo } from "./fileinfo.js";
|
|
12
|
-
import { findDomination, SourcePattern } from "./sourcepattern.js";
|
|
13
|
-
import { targetGet } from "./binds/index.js";
|
|
14
|
-
export * from "./looker.js";
|
|
15
|
-
export * from "./fileinfo.js";
|
|
16
|
-
export * from "./sourcepattern.js";
|
|
17
|
-
export * as Styling from "./styling.js";
|
|
18
|
-
export * as Sorting from "./sorting.js";
|
|
19
|
-
export * as Binding from "./binds/index.js";
|
|
20
|
-
//#region default binds
|
|
21
|
-
import "./plugins/git.js";
|
|
22
|
-
import "./plugins/npm.js";
|
|
23
|
-
import "./plugins/vsce.js";
|
|
24
|
-
import "./plugins/yarn.js";
|
|
25
|
-
export const filterNameList = ["ignored", "included", "all"];
|
|
26
|
-
/**
|
|
27
|
-
* Returns `undefined`, if the source is bad.
|
|
28
|
-
*/
|
|
29
|
-
export function scanFile(filePath, sources, options) {
|
|
30
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
31
|
-
for (const source of sources) {
|
|
32
|
-
const looker = new Looker({
|
|
33
|
-
addPatterns: source.addPatterns,
|
|
34
|
-
ignoreCase: source.ignoreCase,
|
|
35
|
-
patternType: source.patternType,
|
|
36
|
-
});
|
|
37
|
-
const sources = source.sources instanceof SourcePattern
|
|
38
|
-
? yield source.sources.read(options)
|
|
39
|
-
: source.sources;
|
|
40
|
-
for (const file of sources) {
|
|
41
|
-
const l = looker.clone();
|
|
42
|
-
const isGoodSource = source.method({
|
|
43
|
-
sourceFile: file,
|
|
44
|
-
filePath: filePath,
|
|
45
|
-
looker: l
|
|
46
|
-
});
|
|
47
|
-
if (isGoodSource) {
|
|
48
|
-
return FileInfo.from(filePath, l, file);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
export function scanPaths(allFilePaths, arg2, options) {
|
|
55
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
56
|
-
var _a;
|
|
57
|
-
if (typeof arg2 === "string") {
|
|
58
|
-
const bind = targetGet(arg2);
|
|
59
|
-
if (bind === undefined) {
|
|
60
|
-
throw TypeError(`view-ignored can not find target '${arg2}'`);
|
|
61
|
-
}
|
|
62
|
-
return scanPaths(allFilePaths, bind.sources, (_a = bind.scanOptions) !== null && _a !== void 0 ? _a : {});
|
|
63
|
-
}
|
|
64
|
-
// Find good source
|
|
65
|
-
const { filter = "included" } = options;
|
|
66
|
-
const cache = new Map();
|
|
67
|
-
for (const source of arg2) {
|
|
68
|
-
let goodFound = false;
|
|
69
|
-
const resultList = [];
|
|
70
|
-
const sourceList = source.sources instanceof SourcePattern ? yield source.sources.read(options) : source.sources;
|
|
71
|
-
for (const filePath of allFilePaths) {
|
|
72
|
-
const possibleSource = findDomination(filePath, sourceList);
|
|
73
|
-
if (possibleSource === undefined) {
|
|
74
|
-
break;
|
|
75
|
-
}
|
|
76
|
-
const looker = cache.get(possibleSource.path);
|
|
77
|
-
let info;
|
|
78
|
-
if (looker === undefined) {
|
|
79
|
-
const newInfo = yield scanFile(filePath, [source], options);
|
|
80
|
-
if (newInfo === undefined) {
|
|
81
|
-
break;
|
|
82
|
-
}
|
|
83
|
-
info = newInfo;
|
|
84
|
-
cache.set(possibleSource.path, info.looker);
|
|
85
|
-
}
|
|
86
|
-
else {
|
|
87
|
-
info = FileInfo.from(filePath, looker, possibleSource);
|
|
88
|
-
}
|
|
89
|
-
const filterIgnore = (filter === "ignored") && info.ignored;
|
|
90
|
-
const filterInclude = (filter === "included") && !info.ignored;
|
|
91
|
-
const filterAll = filter === "all";
|
|
92
|
-
const shouldPush = filterIgnore || filterInclude || filterAll;
|
|
93
|
-
if (shouldPush) {
|
|
94
|
-
resultList.push(info);
|
|
95
|
-
}
|
|
96
|
-
goodFound || (goodFound = true);
|
|
97
|
-
}
|
|
98
|
-
if (goodFound) {
|
|
99
|
-
return resultList;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
return undefined;
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
export function scanProject(arg, options) {
|
|
106
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
107
|
-
const paths = yield new SourcePattern("**").scan(options);
|
|
108
|
-
if (typeof arg === "string") {
|
|
109
|
-
return yield scanPaths(paths, arg, options);
|
|
110
|
-
}
|
|
111
|
-
return yield scanPaths(paths, arg, options);
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
//#endregion
|
|
115
|
-
//# sourceMappingURL=lib.js.map
|
package/lib/browser/lib.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lib.js","sourceRoot":"","sources":["../../src/browser/lib.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA;AAC7B,cAAc,oBAAoB,CAAA;AAClC,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AACvC,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AACvC,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAA;AAE3C,uBAAuB;AACvB,OAAO,kBAAkB,CAAA;AACzB,OAAO,kBAAkB,CAAA;AACzB,OAAO,mBAAmB,CAAA;AAC1B,OAAO,mBAAmB,CAAA;AAI1B,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,SAAS,EAAE,UAAU,EAAE,KAAK,CAAU,CAAA;AAiGrE;;GAEG;AACH,MAAM,UAAgB,QAAQ,CAAC,QAAgB,EAAE,OAAiB,EAAE,OAAwB;;QAC3F,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;YAC9B,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC;gBACzB,WAAW,EAAE,MAAM,CAAC,WAAW;gBAC/B,UAAU,EAAE,MAAM,CAAC,UAAU;gBAC7B,WAAW,EAAE,MAAM,CAAC,WAAW;aAC/B,CAAC,CAAA;YAEF,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,YAAY,aAAa;gBACtD,CAAC,CAAC,MAAM,MAAM,CAAC,O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SAAS,GAAK,IAAI,EAAA;YACnB,CAAC;YACD,IAAI,SAAS,EAAE,CAAC;gBACf,OAAO,UAAU,CAAA;YAClB,CAAC;QACF,CAAC;QACD,OAAO,SAAS,CAAA;IACjB,CAAC;CAAA;AAMD,MAAM,UAAgB,WAAW,CAAC,GAAsB,EAAE,OAA0B;;QACnF,MAAM,KAAK,GAAG,MAAM,IAAI,aAAa,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC1D,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE,CAAC;YAC7B,OAAO,MAAM,SAAS,CAAC,KAAK,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;QAC7C,CAAC;QACD,OAAO,MAAM,SAAS,CAAC,KAAK,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;IAC7C,CAAC;CAAA;AACD,YAAY"}
|
package/lib/browser/looker.d.ts
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { PatternType } from "./lib.js";
|
|
2
|
-
export interface LookerOptions {
|
|
3
|
-
/**
|
|
4
|
-
* @see {@link Looker.isNegated}
|
|
5
|
-
*/
|
|
6
|
-
negated?: boolean;
|
|
7
|
-
patternType?: PatternType;
|
|
8
|
-
/**
|
|
9
|
-
* Git configuration property.
|
|
10
|
-
*
|
|
11
|
-
* @see {@link https://git-scm.com/docs/git-config#Documentation/git-config.txt-coreignoreCase|git-config ignorecase}.
|
|
12
|
-
* @default false
|
|
13
|
-
*/
|
|
14
|
-
ignoreCase?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Additional patterns, which will be used as
|
|
17
|
-
* other patterns in the `.gitignore` file, or `package.json` "files" property.
|
|
18
|
-
*
|
|
19
|
-
* @default []
|
|
20
|
-
*/
|
|
21
|
-
addPatterns?: string[];
|
|
22
|
-
}
|
|
23
|
-
export type LookerPattern = string | string[];
|
|
24
|
-
export declare class Looker {
|
|
25
|
-
/**
|
|
26
|
-
* If `true`, when calling {@link Looker.ignores}, method will return `true` for ignored path.
|
|
27
|
-
*
|
|
28
|
-
* @default false
|
|
29
|
-
*/
|
|
30
|
-
isNegated: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Defines way to check paths.
|
|
33
|
-
*
|
|
34
|
-
* @default ".*ignore"
|
|
35
|
-
*/
|
|
36
|
-
patternType: PatternType;
|
|
37
|
-
readonly ignoreCase: boolean;
|
|
38
|
-
private patternList;
|
|
39
|
-
private ignoreInstance;
|
|
40
|
-
constructor(options?: LookerOptions);
|
|
41
|
-
clone(): Looker;
|
|
42
|
-
negate(): this;
|
|
43
|
-
/**
|
|
44
|
-
* Adds new ignore rule.
|
|
45
|
-
* @param pattern .gitignore file specification pattern.
|
|
46
|
-
*/
|
|
47
|
-
add(pattern: LookerPattern): this;
|
|
48
|
-
/**
|
|
49
|
-
* Checks if the Looker should ignore dir entry path.
|
|
50
|
-
* @see {@link Looker.isNegated} can change the return value.
|
|
51
|
-
* @param path Dir entry path.
|
|
52
|
-
*/
|
|
53
|
-
ignores(path: string): boolean;
|
|
54
|
-
/**
|
|
55
|
-
* Checks if given pattern is valid.
|
|
56
|
-
* @param pattern Dir entry path.
|
|
57
|
-
*/
|
|
58
|
-
isValidPattern(pattern: LookerPattern): boolean;
|
|
59
|
-
}
|
|
60
|
-
//# sourceMappingURL=looker.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"looker.d.ts","sourceRoot":"","sources":["../../src/browser/looker.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAEtC,MAAM,WAAW,aAAa;IAC7B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB;AACD,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,EAAE,CAAA;AAC7C,qBAAa,MAAM;IAClB;;;;OAIG;IACI,SAAS,EAAE,OAAO,CAAA;IACzB;;;;OAIG;IACI,WAAW,EAAE,WAAW,CAAA;IAC/B,SAAgB,UAAU,EAAE,OAAO,CAAA;IACnC,OAAO,CAAC,WAAW,CAAe;IAClC,OAAO,CAAC,cAAc,CAAQ;gBAElB,OAAO,CAAC,EAAE,aAAa;IAQnC,KAAK,IAAI,MAAM;IASf,MAAM,IAAI,IAAI;IAKd;;;OAGG;IACH,GAAG,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IAajC;;;;OAIG;IACH,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAU9B;;;OAGG;IACH,cAAc,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO;CAiB/C"}
|
package/lib/browser/looker.js
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import ignore from "ignore";
|
|
2
|
-
import { minimatch } from "minimatch";
|
|
3
|
-
export class Looker {
|
|
4
|
-
constructor(options) {
|
|
5
|
-
var _a, _b, _c, _d;
|
|
6
|
-
this.patternList = [];
|
|
7
|
-
this.isNegated = (_a = options === null || options === void 0 ? void 0 : options.negated) !== null && _a !== void 0 ? _a : false;
|
|
8
|
-
this.patternType = (_b = options === null || options === void 0 ? void 0 : options.patternType) !== null && _b !== void 0 ? _b : ".*ignore";
|
|
9
|
-
this.ignoreCase = (_c = options === null || options === void 0 ? void 0 : options.ignoreCase) !== null && _c !== void 0 ? _c : false;
|
|
10
|
-
this.ignoreInstance = ignore.default(options);
|
|
11
|
-
this.add((_d = options === null || options === void 0 ? void 0 : options.addPatterns) !== null && _d !== void 0 ? _d : []);
|
|
12
|
-
}
|
|
13
|
-
clone() {
|
|
14
|
-
const cloned = new Looker({
|
|
15
|
-
addPatterns: this.patternList,
|
|
16
|
-
negated: this.isNegated,
|
|
17
|
-
patternType: this.patternType,
|
|
18
|
-
});
|
|
19
|
-
return cloned;
|
|
20
|
-
}
|
|
21
|
-
negate() {
|
|
22
|
-
this.isNegated = !this.isNegated;
|
|
23
|
-
return this;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Adds new ignore rule.
|
|
27
|
-
* @param pattern .gitignore file specification pattern.
|
|
28
|
-
*/
|
|
29
|
-
add(pattern) {
|
|
30
|
-
if (typeof pattern === "string") {
|
|
31
|
-
this.patternList.push(pattern);
|
|
32
|
-
this.ignoreInstance.add(pattern);
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
for (const pat of pattern) {
|
|
36
|
-
this.patternList.push(pat);
|
|
37
|
-
this.ignoreInstance.add(pat);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
return this;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Checks if the Looker should ignore dir entry path.
|
|
44
|
-
* @see {@link Looker.isNegated} can change the return value.
|
|
45
|
-
* @param path Dir entry path.
|
|
46
|
-
*/
|
|
47
|
-
ignores(path) {
|
|
48
|
-
let ignores;
|
|
49
|
-
if (this.patternType === ".*ignore") {
|
|
50
|
-
ignores = this.ignoreInstance.ignores(path);
|
|
51
|
-
}
|
|
52
|
-
else { // minimatch
|
|
53
|
-
ignores = this.patternList.some(pattern => minimatch(path, pattern));
|
|
54
|
-
}
|
|
55
|
-
return this.isNegated ? !ignores : ignores;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Checks if given pattern is valid.
|
|
59
|
-
* @param pattern Dir entry path.
|
|
60
|
-
*/
|
|
61
|
-
isValidPattern(pattern) {
|
|
62
|
-
if (Array.isArray(pattern)) {
|
|
63
|
-
return pattern.every(p => ignore.default.isPathValid(p));
|
|
64
|
-
}
|
|
65
|
-
if (this.patternType === ".*ignore") {
|
|
66
|
-
return ignore.default.isPathValid(pattern);
|
|
67
|
-
}
|
|
68
|
-
if (this.patternType === "minimatch") {
|
|
69
|
-
try {
|
|
70
|
-
minimatch.makeRe(pattern);
|
|
71
|
-
return true;
|
|
72
|
-
}
|
|
73
|
-
catch (error) {
|
|
74
|
-
return false;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
throw new TypeError(`Unknown pattern type '${this.patternType}'.`);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
//# sourceMappingURL=looker.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"looker.js","sourceRoot":"","sources":["../../src/browser/looker.ts"],"names":[],"mappings":"AAAA,OAAO,MAAkB,MAAM,QAAQ,CAAA;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAyBrC,MAAM,OAAO,MAAM;IAiBlB,YAAY,OAAuB;;QAH3B,gBAAW,GAAa,EAAE,CAAA;QAIjC,IAAI,CAAC,SAAS,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,mCAAI,KAAK,CAAA;QAC1C,IAAI,CAAC,WAAW,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,mCAAI,UAAU,CAAA;QACrD,IAAI,CAAC,UAAU,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,mCAAI,KAAK,CAAA;QAC9C,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA;QAC7C,IAAI,CAAC,GAAG,CAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,mCAAI,EAAE,CAAC,CAAA;IACrC,CAAC;IAED,KAAK;QACJ,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC;YACzB,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,OAAO,EAAE,IAAI,CAAC,SAAS;YACvB,WAAW,EAAE,IAAI,CAAC,WAAW;SAC7B,CAAC,CAAA;QACF,OAAO,MAAM,CAAC;IACf,CAAC;IAED,MAAM;QACL,IAAI,CAAC,SAAS,GAAG,CAAC,IAAI,CAAC,SAA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W,KAAK,UAAU,EAAE,CAAC;YACrC,OAAO,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAA;QAC3C,CAAC;QACD,IAAI,IAAI,CAAC,WAAW,KAAK,WAAW,EAAE,CAAC;YACtC,IAAI,CAAC;gBACJ,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;gBACzB,OAAO,IAAI,CAAA;YACZ,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBAChB,OAAO,KAAK,CAAA;YACb,CAAC;QACF,CAAC;QACD,MAAM,IAAI,SAAS,CAAC,yBAAyB,IAAI,CAAC,WAAW,IAAI,CAAC,CAAA;IACnE,CAAC;CACD"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Binding, ScanMethod, Source } from "../index.js";
|
|
2
|
-
export declare const id = "git";
|
|
3
|
-
export declare const name = "Git";
|
|
4
|
-
export declare const check = "git ls-tree -r <git-branch-name> --name-only";
|
|
5
|
-
export declare const addPatternsExclude: string[];
|
|
6
|
-
export declare const method: ScanMethod;
|
|
7
|
-
export declare const sources: Source[];
|
|
8
|
-
declare const bind: Binding.TargetBind;
|
|
9
|
-
export default bind;
|
|
10
|
-
//# sourceMappingURL=git.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"git.d.ts","sourceRoot":"","sources":["../../../src/browser/plugins/git.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAiB,MAAM,aAAa,CAAA;AAExE,eAAO,MAAM,EAAE,QAAQ,CAAA;AACvB,eAAO,MAAM,IAAI,QAAQ,CAAA;AACzB,eAAO,MAAM,KAAK,iDAAiD,CAAA;AAEnE,eAAO,MAAM,kBAAkB,EAAE,MAAM,EAGtC,CAAA;AAED,eAAO,MAAM,MAAM,EAAE,UAOpB,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,MAAM,EAE3B,CAAA;AAED,QAAA,MAAM,IAAI,EAAE,OAAO,CAAC,UAAqD,CAAA;AAEzE,eAAe,IAAI,CAAA"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Binding, SourcePattern } from "../index.js";
|
|
2
|
-
export const id = "git";
|
|
3
|
-
export const name = "Git";
|
|
4
|
-
export const check = `git ls-tree -r <git-branch-name> --name-only`;
|
|
5
|
-
export const addPatternsExclude = [
|
|
6
|
-
"**/.git/**",
|
|
7
|
-
"**/.DS_Store/**"
|
|
8
|
-
];
|
|
9
|
-
export const method = function (data) {
|
|
10
|
-
const { looker, sourceFile: source } = data;
|
|
11
|
-
if (!looker.isValidPattern(source.content)) {
|
|
12
|
-
return false;
|
|
13
|
-
}
|
|
14
|
-
looker.add(source.content);
|
|
15
|
-
return true;
|
|
16
|
-
};
|
|
17
|
-
export const sources = [
|
|
18
|
-
{ sources: new SourcePattern("**/.gitignore"), patternType: ".*ignore", method, addPatterns: addPatternsExclude },
|
|
19
|
-
];
|
|
20
|
-
const bind = { id, name, sources, testCommad: check };
|
|
21
|
-
Binding.targetSet(bind);
|
|
22
|
-
export default bind;
|
|
23
|
-
//# sourceMappingURL=git.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"git.js","sourceRoot":"","sources":["../../../src/browser/plugins/git.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAsB,aAAa,EAAE,MAAM,aAAa,CAAA;AAExE,MAAM,CAAC,MAAM,EAAE,GAAG,KAAK,CAAA;AACvB,MAAM,CAAC,MAAM,IAAI,GAAG,KAAK,CAAA;AACzB,MAAM,CAAC,MAAM,KAAK,GAAG,8CAA8C,CAAA;AAEnE,MAAM,CAAC,MAAM,kBAAkB,GAAa;IACxC,YAAY;IACZ,iBAAiB;CACpB,CAAA;AAED,MAAM,CAAC,MAAM,MAAM,GAAe,UAAU,IAAI;IAC5C,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;IAC3C,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC;QACzC,OAAO,KAAK,CAAA;IAChB,CAAC;IACD,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;IAC1B,OAAO,IAAI,CAAA;AACf,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAa;IAC7B,EAAE,OAAO,EAAE,IAAI,aAAa,CAAC,eAAe,CAAC,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,WAAW,EAAE,kBAAkB,EAAE;CACpH,CAAA;AAED,MAAM,IAAI,GAAuB,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,CAAA;AACzE,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,CAAA;AACvB,eAAe,IAAI,CAAA"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Binding, ScanMethod, Source } from "../index.js";
|
|
2
|
-
export declare const id = "npm";
|
|
3
|
-
export declare const name = "NPM";
|
|
4
|
-
export declare const check = "npm pack --dry-run";
|
|
5
|
-
export declare const addPatternsExclude: string[];
|
|
6
|
-
export declare const addPatternsInclude: string[];
|
|
7
|
-
export declare const methodGit: ScanMethod;
|
|
8
|
-
export declare const methodPackageJsonFiles: ScanMethod;
|
|
9
|
-
export declare const sources: Source[];
|
|
10
|
-
declare const bind: Binding.TargetBind;
|
|
11
|
-
export default bind;
|
|
12
|
-
//# sourceMappingURL=npm.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"npm.d.ts","sourceRoot":"","sources":["../../../src/browser/plugins/npm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAiB,MAAM,aAAa,CAAA;AAGxE,eAAO,MAAM,EAAE,QAAQ,CAAA;AACvB,eAAO,MAAM,IAAI,QAAQ,CAAA;AACzB,eAAO,MAAM,KAAK,uBAAuB,CAAA;AAEzC,eAAO,MAAM,kBAAkB,UAe9B,CAAC;AACF,eAAO,MAAM,kBAAkB,UAS9B,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,UAQvB,CAAA;AAED,eAAO,MAAM,sBAAsB,EAAE,UAmBpC,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,MAAM,EAI3B,CAAA;AAGD,QAAA,MAAM,IAAI,EAAE,OAAO,CAAC,UAAqD,CAAA;AAEzE,eAAe,IAAI,CAAA"}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { Binding, SourcePattern } from "../index.js";
|
|
2
|
-
import getValue from "get-value";
|
|
3
|
-
export const id = "npm";
|
|
4
|
-
export const name = "NPM";
|
|
5
|
-
export const check = "npm pack --dry-run";
|
|
6
|
-
export const addPatternsExclude = [
|
|
7
|
-
'.*.swp',
|
|
8
|
-
'._*',
|
|
9
|
-
'.DS_Store',
|
|
10
|
-
'.git',
|
|
11
|
-
'.gitignore',
|
|
12
|
-
'.hg',
|
|
13
|
-
'.npmignore',
|
|
14
|
-
'.npmrc',
|
|
15
|
-
'.lock-wscript',
|
|
16
|
-
'.svn',
|
|
17
|
-
'.wafpickle-*',
|
|
18
|
-
'config.gypi',
|
|
19
|
-
'CVS',
|
|
20
|
-
'npm-debug.log',
|
|
21
|
-
];
|
|
22
|
-
export const addPatternsInclude = [
|
|
23
|
-
'bin/',
|
|
24
|
-
'package.json',
|
|
25
|
-
'README',
|
|
26
|
-
'README.*',
|
|
27
|
-
'LICENSE',
|
|
28
|
-
'LICENSE.*',
|
|
29
|
-
'LICENCE',
|
|
30
|
-
'LICENCE.*',
|
|
31
|
-
];
|
|
32
|
-
export const methodGit = function (data) {
|
|
33
|
-
const { looker, sourceFile: source } = data;
|
|
34
|
-
looker.patternType = "minimatch";
|
|
35
|
-
if (!looker.isValidPattern(source.content)) {
|
|
36
|
-
return false;
|
|
37
|
-
}
|
|
38
|
-
looker.add(source.content);
|
|
39
|
-
return true;
|
|
40
|
-
};
|
|
41
|
-
export const methodPackageJsonFiles = function (data) {
|
|
42
|
-
const { looker, sourceFile: source } = data;
|
|
43
|
-
looker.isNegated = true;
|
|
44
|
-
let parsed;
|
|
45
|
-
try {
|
|
46
|
-
const json = JSON.parse(source.content);
|
|
47
|
-
if ((json === null || json === void 0 ? void 0 : json.constructor) !== Object) {
|
|
48
|
-
return false;
|
|
49
|
-
}
|
|
50
|
-
parsed = json;
|
|
51
|
-
}
|
|
52
|
-
catch (_a) {
|
|
53
|
-
return false;
|
|
54
|
-
}
|
|
55
|
-
const propVal = getValue(parsed, "files");
|
|
56
|
-
if (!Array.isArray(propVal)) {
|
|
57
|
-
return false;
|
|
58
|
-
}
|
|
59
|
-
looker.add(propVal);
|
|
60
|
-
return true;
|
|
61
|
-
};
|
|
62
|
-
export const sources = [
|
|
63
|
-
{ sources: new SourcePattern("**/package.json"), patternType: "minimatch", method: methodPackageJsonFiles, addPatterns: addPatternsInclude },
|
|
64
|
-
{ sources: new SourcePattern("**/.npmignore"), patternType: ".*ignore", method: methodGit, addPatterns: addPatternsExclude },
|
|
65
|
-
{ sources: new SourcePattern("**/.gitignore"), patternType: ".*ignore", method: methodGit, addPatterns: addPatternsExclude },
|
|
66
|
-
];
|
|
67
|
-
const bind = { id, name, sources, testCommad: check };
|
|
68
|
-
Binding.targetSet(bind);
|
|
69
|
-
export default bind;
|
|
70
|
-
//# sourceMappingURL=npm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"npm.js","sourceRoot":"","sources":["../../../src/browser/plugins/npm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAsB,aAAa,EAAE,MAAM,aAAa,CAAA;AACxE,OAAO,QAAQ,MAAM,WAAW,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,GAAG,KAAK,CAAA;AACvB,MAAM,CAAC,MAAM,IAAI,GAAG,KAAK,CAAA;AACzB,MAAM,CAAC,MAAM,KAAK,GAAG,oBAAo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ChB,CAAC;IACD,MAAM,OAAO,GAAG,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACzC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;QAC1B,OAAO,KAAK,CAAA;IAChB,CAAC;IACD,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;IACnB,OAAO,IAAI,CAAA;AACf,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAa;IAC7B,EAAE,OAAO,EAAE,IAAI,aAAa,CAAC,iBAAiB,CAAC,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,EAAE,sBAAsB,EAAE,WAAW,EAAE,kBAAkB,EAAE;IAC5I,EAAE,OAAO,EAAE,IAAI,aAAa,CAAC,eAAe,CAAC,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,kBAAkB,EAAE;IAC5H,EAAE,OAAO,EAAE,IAAI,aAAa,CAAC,eAAe,CAAC,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,kBAAkB,EAAE;CAC/H,CAAA;AAGD,MAAM,IAAI,GAAuB,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,CAAA;AACzE,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,CAAA;AACvB,eAAe,IAAI,CAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Binding, ScanMethod, Source } from "../index.js";
|
|
2
|
-
export declare const id = "vsce";
|
|
3
|
-
export declare const name = "VSC Extension";
|
|
4
|
-
export declare const check = "vsce ls";
|
|
5
|
-
export declare const addPatternsExclude: string[];
|
|
6
|
-
export declare const method: ScanMethod;
|
|
7
|
-
export declare const sources: Source[];
|
|
8
|
-
declare const bind: Binding.TargetBind;
|
|
9
|
-
export default bind;
|
|
10
|
-
//# sourceMappingURL=vsce.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vsce.d.ts","sourceRoot":"","sources":["../../../src/browser/plugins/vsce.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAiB,MAAM,aAAa,CAAA;AAExE,eAAO,MAAM,EAAE,SAAS,CAAA;AACxB,eAAO,MAAM,IAAI,kBAAkB,CAAA;AACnC,eAAO,MAAM,KAAK,YAAY,CAAA;AAG9B,eAAO,MAAM,kBAAkB,EAAE,MAAM,EAGtC,CAAA;AAED,eAAO,MAAM,MAAM,EAAE,UAOpB,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,MAAM,EAE3B,CAAA;AAED,QAAA,MAAM,IAAI,EAAE,OAAO,CAAC,UAAqD,CAAA;AAEzE,eAAe,IAAI,CAAA"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Binding, SourcePattern } from "../index.js";
|
|
2
|
-
export const id = "vsce";
|
|
3
|
-
export const name = "VSC Extension";
|
|
4
|
-
export const check = "vsce ls";
|
|
5
|
-
export const addPatternsExclude = [
|
|
6
|
-
"**/.git/**",
|
|
7
|
-
"**/.DS_Store/**"
|
|
8
|
-
];
|
|
9
|
-
export const method = function (data) {
|
|
10
|
-
const { looker, sourceFile: source } = data;
|
|
11
|
-
if (!looker.isValidPattern(source.content)) {
|
|
12
|
-
return false;
|
|
13
|
-
}
|
|
14
|
-
looker.add(source.content);
|
|
15
|
-
return true;
|
|
16
|
-
};
|
|
17
|
-
export const sources = [
|
|
18
|
-
{ sources: new SourcePattern("**/.vscodeignore"), patternType: "minimatch", method, addPatterns: addPatternsExclude },
|
|
19
|
-
];
|
|
20
|
-
const bind = { id, name, sources, testCommad: check };
|
|
21
|
-
Binding.targetSet(bind);
|
|
22
|
-
export default bind;
|
|
23
|
-
//# sourceMappingURL=vsce.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vsce.js","sourceRoot":"","sources":["../../../src/browser/plugins/vsce.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAsB,aAAa,EAAE,MAAM,aAAa,CAAA;AAExE,MAAM,CAAC,MAAM,EAAE,GAAG,MAAM,CAAA;AACxB,MAAM,CAAC,MAAM,IAAI,GAAG,eAAe,CAAA;AACnC,MAAM,CAAC,MAAM,KAAK,GAAG,SAAS,CAAA;AAG9B,MAAM,CAAC,MAAM,kBAAkB,GAAa;IACxC,YAAY;IACZ,iBAAiB;CACpB,CAAA;AAED,MAAM,CAAC,MAAM,MAAM,GAAe,UAAU,IAAI;IAC5C,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;IAC3C,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC;QACzC,OAAO,KAAK,CAAA;IAChB,CAAC;IACD,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;IAC1B,OAAO,IAAI,CAAA;AACf,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAa;IAC7B,EAAE,OAAO,EAAE,IAAI,aAAa,CAAC,kBAAkB,CAAC,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,kBAAkB,EAAE;CACxH,CAAA;AAED,MAAM,IAAI,GAAuB,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,CAAA;AACzE,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,CAAA;AACvB,eAAe,IAAI,CAAA"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Binding, Source } from "../index.js";
|
|
2
|
-
export declare const id = "yarn";
|
|
3
|
-
export declare const name = "Yarn";
|
|
4
|
-
/**
|
|
5
|
-
* [!WARNING] All patterns copied from npm plugin, so they should be verified with yarn docs.
|
|
6
|
-
*/
|
|
7
|
-
export declare const addPatternsExclude: string[];
|
|
8
|
-
/**
|
|
9
|
-
* [!WARNING] All patterns copied from npm plugin, so they should be verified with yarn docs.
|
|
10
|
-
*/
|
|
11
|
-
export declare const addPatternsInclude: string[];
|
|
12
|
-
export declare const sources: Source[];
|
|
13
|
-
declare const bind: Binding.TargetBind;
|
|
14
|
-
export default bind;
|
|
15
|
-
//# sourceMappingURL=yarn.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"yarn.d.ts","sourceRoot":"","sources":["../../../src/browser/plugins/yarn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAiB,MAAM,aAAa,CAAA;AAG5D,eAAO,MAAM,EAAE,SAAS,CAAA;AACxB,eAAO,MAAM,IAAI,SAAS,CAAA;AAE1B;;GAEG;AACH,eAAO,MAAM,kBAAkB,UAe9B,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,kBAAkB,UAS9B,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,MAAM,EAK3B,CAAA;AAED,QAAA,MAAM,IAAI,EAAE,OAAO,CAAC,UAAkC,CAAA;AAEtD,eAAe,IAAI,CAAA"}
|