just-scripts 2.1.3 → 2.2.1
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/CHANGELOG.json +57 -1
- package/CHANGELOG.md +21 -2
- package/api-extractor.json +4 -0
- package/etc/just-scripts.api.md +538 -0
- package/lib/copy/CopyInstruction.d.ts +1 -1
- package/lib/copy/CopyInstruction.js +1 -1
- package/lib/tasks/apiExtractorTask.d.ts +1 -1
- package/lib/tasks/apiExtractorTask.d.ts.map +1 -1
- package/lib/tasks/eslintTask.d.ts +2 -0
- package/lib/tasks/eslintTask.d.ts.map +1 -1
- package/lib/tasks/eslintTask.js +2 -1
- package/lib/tasks/eslintTask.js.map +1 -1
- package/package.json +14 -12
- package/src/copy/CopyInstruction.ts +1 -1
- package/src/tasks/apiExtractorTask.ts +1 -1
- package/src/tasks/eslintTask.ts +4 -0
- package/lib/tasks/apiExtractorTypes.d.ts +0 -1022
- package/lib/tasks/apiExtractorTypes.d.ts.map +0 -1
- package/lib/tasks/apiExtractorTypes.js +0 -7
- package/lib/tasks/apiExtractorTypes.js.map +0 -1
- package/src/tasks/apiExtractorTypes.ts +0 -1049
package/lib/tasks/eslintTask.js
CHANGED
|
@@ -6,7 +6,7 @@ const just_scripts_utils_1 = require("just-scripts-utils");
|
|
|
6
6
|
const fs = require("fs");
|
|
7
7
|
function eslintTask(options = {}) {
|
|
8
8
|
return function eslint() {
|
|
9
|
-
const { files, configPath, ignorePath, fix, extensions, noEslintRc, maxWarnings, resolvePluginsPath, cache, cacheLocation, timing, outputFile, format, } = options;
|
|
9
|
+
const { files, configPath, ignorePath, fix, extensions, noEslintRc, maxWarnings, resolvePluginsPath, cache, cacheLocation, timing, outputFile, format, quiet, } = options;
|
|
10
10
|
const eslintCmd = just_task_1.resolve('eslint/bin/eslint.js');
|
|
11
11
|
// Try all possible extensions in the order listed here: https://eslint.org/docs/user-guide/configuring#configuration-file-formats
|
|
12
12
|
const eslintConfigPath = configPath || just_task_1.resolveCwd('.eslintrc', { extensions: ['.js', '.cjs', '.yaml', '.yml', '.json'] });
|
|
@@ -26,6 +26,7 @@ function eslintTask(options = {}) {
|
|
|
26
26
|
...(cacheLocation ? ['--cache-location', cacheLocation] : []),
|
|
27
27
|
...(outputFile ? ['--output-file', outputFile] : []),
|
|
28
28
|
...(format ? ['--format', format] : []),
|
|
29
|
+
...(quiet ? ['--quiet'] : []),
|
|
29
30
|
'--color',
|
|
30
31
|
];
|
|
31
32
|
just_task_1.logger.info(just_scripts_utils_1.encodeArgs(eslintArgs).join(' '));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eslintTask.js","sourceRoot":"","sources":["../../src/tasks/eslintTask.ts"],"names":[],"mappings":";;;AAAA,yCAAsE;AACtE,2DAAuD;AACvD,yBAAyB;
|
|
1
|
+
{"version":3,"file":"eslintTask.js","sourceRoot":"","sources":["../../src/tasks/eslintTask.ts"],"names":[],"mappings":";;;AAAA,yCAAsE;AACtE,2DAAuD;AACvD,yBAAyB;AA8BzB,SAAgB,UAAU,CAAC,UAA6B,EAAE;IACxD,OAAO,SAAS,MAAM;QACpB,MAAM,EACJ,KAAK,EACL,UAAU,EACV,UAAU,EACV,GAAG,EACH,UAAU,EACV,UAAU,EACV,WAAW,EACX,kBAAkB,EAClB,KAAK,EACL,aAAa,EACb,MAAM,EACN,UAAU,EACV,MAAM,EACN,KAAK,GACN,GAAG,OAAO,CAAC;QACZ,MAAM,SAAS,GAAG,mBAAO,CAAC,sBAAsB,CAAC,CAAC;QAClD,kIAAkI;QAClI,MAAM,gBAAgB,GACpB,UAAU,IAAI,sBAAU,CAAC,WAAW,EAAE,EAAE,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC;QAEnG,IAAI,SAAS,IAAI,gBAAgB,IAAI,EAAE,CAAC,UAAU,CAAC,gBAAgB,CAAC,EAAE;YACpE,MAAM,gBA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MAAM,CAAC,CAAC,CAAC,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;gBACvC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC7B,SAAS;aACV,CAAC;YAEF,kBAAM,CAAC,IAAI,CAAC,+BAAU,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;YAC9C,OAAO,0BAAK,CAAC,OAAO,CAAC,QAAQ,EAAE,UAAU,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,CAAC,MAAM,IAAI,EAAE,GAAG,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC;SAC3G;aAAM;YACL,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;SAC1B;IACH,CAAC,CAAC;AACJ,CAAC;AAlDD,gCAkDC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "just-scripts",
|
|
3
|
-
"version": "2.1
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"description": "Just Stack Scripts",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"repository": {
|
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
"just-scripts": "bin/just-scripts.js"
|
|
16
16
|
},
|
|
17
17
|
"scripts": {
|
|
18
|
+
"api": "api-extractor run",
|
|
19
|
+
"api:update": "api-extractor run --local",
|
|
18
20
|
"build": "tsc",
|
|
19
21
|
"start": "tsc -w --preserveWatchOutput",
|
|
20
22
|
"start-test": "jest --watch",
|
|
@@ -27,10 +29,10 @@
|
|
|
27
29
|
"dependencies": {
|
|
28
30
|
"chalk": "^4.0.0",
|
|
29
31
|
"diff-match-patch": "1.0.5",
|
|
30
|
-
"fs-extra": "^
|
|
32
|
+
"fs-extra": "^11.0.0",
|
|
31
33
|
"glob": "^7.1.3",
|
|
32
|
-
"just-scripts-utils": "^2.0.
|
|
33
|
-
"just-task": ">=1.
|
|
34
|
+
"just-scripts-utils": "^2.0.1",
|
|
35
|
+
"just-task": ">=1.8.0 <2.0.0",
|
|
34
36
|
"prompts": "^2.4.0",
|
|
35
37
|
"run-parallel-limit": "^1.0.6",
|
|
36
38
|
"semver": "^7.0.0",
|
|
@@ -38,13 +40,13 @@
|
|
|
38
40
|
"webpack-merge": "^5.7.3"
|
|
39
41
|
},
|
|
40
42
|
"devDependencies": {
|
|
41
|
-
"@types/diff-match-patch": "1.0.32",
|
|
42
|
-
"@types/glob": "7.2.0",
|
|
43
|
-
"@types/prompts": "2.4.2",
|
|
44
|
-
"@types/run-parallel-limit": "1.0.0",
|
|
45
|
-
"@types/supports-color": "8.1.1",
|
|
46
|
-
"@types/webpack": "4.41.33",
|
|
47
|
-
"async-done": "2.0.0",
|
|
48
|
-
"esbuild": "0.9.6"
|
|
43
|
+
"@types/diff-match-patch": "^1.0.32",
|
|
44
|
+
"@types/glob": "^7.2.0",
|
|
45
|
+
"@types/prompts": "^2.4.2",
|
|
46
|
+
"@types/run-parallel-limit": "^1.0.0",
|
|
47
|
+
"@types/supports-color": "^8.1.1",
|
|
48
|
+
"@types/webpack": "^4.41.33",
|
|
49
|
+
"async-done": "^2.0.0",
|
|
50
|
+
"esbuild": "^0.9.6"
|
|
49
51
|
}
|
|
50
52
|
}
|
|
@@ -59,7 +59,7 @@ export function copyFileToDestinationDirectoryWithRename(
|
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
61
|
* Copies files into a destination directory with different names.
|
|
62
|
-
* For example copyFilesToDestinationDirectoryWithRename([{sourceFilePath:'some/path/foo.js', destinationName:'bar.js'}], 'dest/target')
|
|
62
|
+
* For example `copyFilesToDestinationDirectoryWithRename([{sourceFilePath:'some/path/foo.js', destinationName:'bar.js'}], 'dest/target')`
|
|
63
63
|
* would result in the creation of the file 'dest/target/bar.js'.
|
|
64
64
|
*/
|
|
65
65
|
export function copyFilesToDestinationDirectoryWithRename(
|
|
@@ -2,7 +2,7 @@ import { logger, TaskFunction } from 'just-task';
|
|
|
2
2
|
import * as fs from 'fs-extra';
|
|
3
3
|
import * as path from 'path';
|
|
4
4
|
import { tryRequire } from '../tryRequire';
|
|
5
|
-
import * as ApiExtractorTypes from '
|
|
5
|
+
import type * as ApiExtractorTypes from '@microsoft/api-extractor';
|
|
6
6
|
|
|
7
7
|
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
|
8
8
|
|
package/src/tasks/eslintTask.ts
CHANGED
|
@@ -26,6 +26,8 @@ export interface EsLintTaskOptions {
|
|
|
26
26
|
outputFile?: string;
|
|
27
27
|
/** Can be set to dictate the format of use for report file generated with the output flag: https://eslint.org/docs/latest/user-guide/command-line-interface#-f---format */
|
|
28
28
|
format?: string;
|
|
29
|
+
/** Prevents the logging & auto-fixing of warnings */
|
|
30
|
+
quiet?: boolean;
|
|
29
31
|
}
|
|
30
32
|
|
|
31
33
|
export function eslintTask(options: EsLintTaskOptions = {}): TaskFunction {
|
|
@@ -44,6 +46,7 @@ export function eslintTask(options: EsLintTaskOptions = {}): TaskFunction {
|
|
|
44
46
|
timing,
|
|
45
47
|
outputFile,
|
|
46
48
|
format,
|
|
49
|
+
quiet,
|
|
47
50
|
} = options;
|
|
48
51
|
const eslintCmd = resolve('eslint/bin/eslint.js');
|
|
49
52
|
// Try all possible extensions in the order listed here: https://eslint.org/docs/user-guide/configuring#configuration-file-formats
|
|
@@ -67,6 +70,7 @@ export function eslintTask(options: EsLintTaskOptions = {}): TaskFunction {
|
|
|
67
70
|
...(cacheLocation ? ['--cache-location', cacheLocation] : []),
|
|
68
71
|
...(outputFile ? ['--output-file', outputFile] : []),
|
|
69
72
|
...(format ? ['--format', format] : []),
|
|
73
|
+
...(quiet ? ['--quiet'] : []),
|
|
70
74
|
'--color',
|
|
71
75
|
];
|
|
72
76
|
|