@naturalcycles/dev-lib 15.0.5 → 15.0.6
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/bin/dev-lib.d.ts +2 -0
- package/dist/bin/up.d.ts +2 -0
- package/dist/bin/upnc.d.ts +2 -0
- package/dist/build.util.d.ts +12 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/init-from-dev-lib.command.d.ts +1 -0
- package/dist/jestOffline.util.d.ts +8 -0
- package/dist/lint.util.d.ts +17 -0
- package/dist/paths.d.ts +6 -0
- package/dist/test.util.d.ts +10 -0
- package/dist/testing/expect.util.d.ts +8 -0
- package/dist/testing/index.d.ts +8 -0
- package/dist/testing/mockAllKindsOfThings.d.ts +1 -0
- package/dist/testing/testing.util.d.ts +3 -0
- package/dist/testing/time.util.d.ts +8 -0
- package/dist/yarn.util.d.ts +2 -0
- package/package.json +3 -1
package/dist/bin/up.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare function buildEsmCjs(): Promise<void>;
|
|
2
|
+
export declare function buildProd(): Promise<void>;
|
|
3
|
+
/**
|
|
4
|
+
* Use '.' to indicate root.
|
|
5
|
+
*/
|
|
6
|
+
export declare function runTSCInFolders(tsconfigPaths: string[], args?: string[], parallel?: boolean): Promise<void>;
|
|
7
|
+
/**
|
|
8
|
+
* Pass '.' to run in root.
|
|
9
|
+
*/
|
|
10
|
+
export declare function runTSCInFolder(tsconfigPath: string, args?: string[]): Promise<void>;
|
|
11
|
+
export declare function runTSCProd(): Promise<void>;
|
|
12
|
+
export declare function buildCopy(): void;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function initFromDevLibCommand(): void;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Run all linters.
|
|
3
|
+
*/
|
|
4
|
+
export declare function lintAllCommand(): Promise<void>;
|
|
5
|
+
interface EslintAllOptions {
|
|
6
|
+
ext?: string;
|
|
7
|
+
fix?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Runs `eslint` command for all predefined paths (e.g /src, /scripts, etc).
|
|
11
|
+
*/
|
|
12
|
+
export declare function eslintAll(opt?: EslintAllOptions): Promise<void>;
|
|
13
|
+
export declare function runPrettier(): void;
|
|
14
|
+
export declare function stylelintAll(): void;
|
|
15
|
+
export declare function lintStagedCommand(): Promise<void>;
|
|
16
|
+
export declare function runCommitlintCommand(): void;
|
|
17
|
+
export {};
|
package/dist/paths.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { expectTypeOf } from 'expect-type';
|
|
2
|
+
import timekeeper from 'timekeeper';
|
|
3
|
+
export * from '../jestOffline.util';
|
|
4
|
+
export * from './expect.util';
|
|
5
|
+
export * from './mockAllKindsOfThings';
|
|
6
|
+
export * from './testing.util';
|
|
7
|
+
export * from './time.util';
|
|
8
|
+
export { expectTypeOf, timekeeper };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const mockAllKindsOfThings: () => any[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const MOCK_TS_2018_06_21 = 1529539200;
|
|
2
|
+
/**
|
|
3
|
+
* Locks time-related functions to return always same time.
|
|
4
|
+
* For deterministic tests.
|
|
5
|
+
*/
|
|
6
|
+
export declare function mockTime(ts?: number): void;
|
|
7
|
+
export declare function mockTimeMillis(millis?: number): void;
|
|
8
|
+
export declare function resetTime(): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturalcycles/dev-lib",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.6",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"prepare": "husky",
|
|
6
6
|
"tsn-debug": "tsn testScript.ts",
|
|
@@ -61,6 +61,8 @@
|
|
|
61
61
|
"cfg/overwrite/.gitignore",
|
|
62
62
|
"cfg"
|
|
63
63
|
],
|
|
64
|
+
"main": "dist/index.js",
|
|
65
|
+
"types": "dist/index.d.ts",
|
|
64
66
|
"bin": {
|
|
65
67
|
"dev-lib": "dist/bin/dev-lib.js",
|
|
66
68
|
"up": "dist/bin/up.js",
|