@weapp-tailwindcss/cli 0.0.0-alpha.6 → 0.0.0-alpha.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/dist/index.cjs +378 -263
- package/dist/index.d.cts +38 -5
- package/dist/index.d.mts +38 -5
- package/dist/index.d.ts +38 -5
- package/dist/index.mjs +374 -262
- package/package.json +20 -21
package/dist/index.d.cts
CHANGED
|
@@ -3,10 +3,23 @@ import { FSWatcher } from 'fs-extra';
|
|
|
3
3
|
import { UserDefinedOptions } from 'weapp-tailwindcss';
|
|
4
4
|
import { WatchOptions } from 'gulp';
|
|
5
5
|
import { Result } from 'postcss-load-config';
|
|
6
|
+
import { Options } from 'sass';
|
|
7
|
+
import { Settings } from 'gulp-typescript';
|
|
6
8
|
import * as cosmiconfig from 'cosmiconfig';
|
|
7
9
|
|
|
8
10
|
declare function createCli(): Command;
|
|
9
11
|
|
|
12
|
+
declare class GlobsSet {
|
|
13
|
+
includeSet: Set<string>;
|
|
14
|
+
excludeSet: Set<string>;
|
|
15
|
+
constructor();
|
|
16
|
+
isExcludeGlob(value: string): boolean;
|
|
17
|
+
addSingle(value: string): Set<string>;
|
|
18
|
+
add(...value: string[] | string[][]): void;
|
|
19
|
+
dump(): string[];
|
|
20
|
+
dumpIgnored(): string[];
|
|
21
|
+
}
|
|
22
|
+
|
|
10
23
|
declare enum AssetType {
|
|
11
24
|
JavaScript = "javascript",
|
|
12
25
|
Json = "json",
|
|
@@ -14,6 +27,18 @@ declare enum AssetType {
|
|
|
14
27
|
Html = "html"
|
|
15
28
|
}
|
|
16
29
|
|
|
30
|
+
interface GulpLessOptions {
|
|
31
|
+
modifyVars?: object | undefined;
|
|
32
|
+
paths?: string[] | undefined;
|
|
33
|
+
plugins?: any[] | undefined;
|
|
34
|
+
relativeUrls?: boolean | undefined;
|
|
35
|
+
}
|
|
36
|
+
interface GulpSassOptions extends Options<'sync'> {
|
|
37
|
+
errLogToConsole?: boolean | undefined;
|
|
38
|
+
onSuccess?: ((css: string) => any) | undefined;
|
|
39
|
+
onError?: ((err: Error) => any) | undefined;
|
|
40
|
+
sync?: boolean | undefined;
|
|
41
|
+
}
|
|
17
42
|
interface BuildOptions {
|
|
18
43
|
weappTailwindcssOptions: UserDefinedOptions;
|
|
19
44
|
outDir: string;
|
|
@@ -29,27 +54,35 @@ interface BuildOptions {
|
|
|
29
54
|
json?: string[];
|
|
30
55
|
};
|
|
31
56
|
postcssOptions?: Partial<Omit<Result, 'file'>>;
|
|
57
|
+
preprocessorOptions?: {
|
|
58
|
+
sass?: boolean | GulpSassOptions;
|
|
59
|
+
less?: boolean | GulpLessOptions;
|
|
60
|
+
};
|
|
32
61
|
watchOptions: WatchOptions;
|
|
62
|
+
typescriptOptions: boolean | {
|
|
63
|
+
settings?: Settings;
|
|
64
|
+
tsConfigFileName?: string;
|
|
65
|
+
};
|
|
33
66
|
}
|
|
34
67
|
type UserConfig = Partial<BuildOptions>;
|
|
35
68
|
|
|
36
|
-
declare function createBuilder(options?: Partial<BuildOptions>): {
|
|
69
|
+
declare function createBuilder(options?: Partial<BuildOptions>): Promise<{
|
|
37
70
|
watcher: FSWatcher | undefined;
|
|
38
71
|
build(): Promise<any>;
|
|
39
72
|
watch(): any;
|
|
40
|
-
globsSet:
|
|
41
|
-
}
|
|
73
|
+
globsSet: GlobsSet;
|
|
74
|
+
}>;
|
|
42
75
|
declare function build(options?: Partial<BuildOptions>): Promise<{
|
|
43
76
|
watcher: FSWatcher | undefined;
|
|
44
77
|
build(): Promise<any>;
|
|
45
78
|
watch(): any;
|
|
46
|
-
globsSet:
|
|
79
|
+
globsSet: GlobsSet;
|
|
47
80
|
}>;
|
|
48
81
|
declare function watch(options?: Partial<BuildOptions>): Promise<{
|
|
49
82
|
watcher: FSWatcher | undefined;
|
|
50
83
|
build(): Promise<any>;
|
|
51
84
|
watch(): any;
|
|
52
|
-
globsSet:
|
|
85
|
+
globsSet: GlobsSet;
|
|
53
86
|
}>;
|
|
54
87
|
|
|
55
88
|
type WeappTwCosmiconfigResult = {
|
package/dist/index.d.mts
CHANGED
|
@@ -3,10 +3,23 @@ import { FSWatcher } from 'fs-extra';
|
|
|
3
3
|
import { UserDefinedOptions } from 'weapp-tailwindcss';
|
|
4
4
|
import { WatchOptions } from 'gulp';
|
|
5
5
|
import { Result } from 'postcss-load-config';
|
|
6
|
+
import { Options } from 'sass';
|
|
7
|
+
import { Settings } from 'gulp-typescript';
|
|
6
8
|
import * as cosmiconfig from 'cosmiconfig';
|
|
7
9
|
|
|
8
10
|
declare function createCli(): Command;
|
|
9
11
|
|
|
12
|
+
declare class GlobsSet {
|
|
13
|
+
includeSet: Set<string>;
|
|
14
|
+
excludeSet: Set<string>;
|
|
15
|
+
constructor();
|
|
16
|
+
isExcludeGlob(value: string): boolean;
|
|
17
|
+
addSingle(value: string): Set<string>;
|
|
18
|
+
add(...value: string[] | string[][]): void;
|
|
19
|
+
dump(): string[];
|
|
20
|
+
dumpIgnored(): string[];
|
|
21
|
+
}
|
|
22
|
+
|
|
10
23
|
declare enum AssetType {
|
|
11
24
|
JavaScript = "javascript",
|
|
12
25
|
Json = "json",
|
|
@@ -14,6 +27,18 @@ declare enum AssetType {
|
|
|
14
27
|
Html = "html"
|
|
15
28
|
}
|
|
16
29
|
|
|
30
|
+
interface GulpLessOptions {
|
|
31
|
+
modifyVars?: object | undefined;
|
|
32
|
+
paths?: string[] | undefined;
|
|
33
|
+
plugins?: any[] | undefined;
|
|
34
|
+
relativeUrls?: boolean | undefined;
|
|
35
|
+
}
|
|
36
|
+
interface GulpSassOptions extends Options<'sync'> {
|
|
37
|
+
errLogToConsole?: boolean | undefined;
|
|
38
|
+
onSuccess?: ((css: string) => any) | undefined;
|
|
39
|
+
onError?: ((err: Error) => any) | undefined;
|
|
40
|
+
sync?: boolean | undefined;
|
|
41
|
+
}
|
|
17
42
|
interface BuildOptions {
|
|
18
43
|
weappTailwindcssOptions: UserDefinedOptions;
|
|
19
44
|
outDir: string;
|
|
@@ -29,27 +54,35 @@ interface BuildOptions {
|
|
|
29
54
|
json?: string[];
|
|
30
55
|
};
|
|
31
56
|
postcssOptions?: Partial<Omit<Result, 'file'>>;
|
|
57
|
+
preprocessorOptions?: {
|
|
58
|
+
sass?: boolean | GulpSassOptions;
|
|
59
|
+
less?: boolean | GulpLessOptions;
|
|
60
|
+
};
|
|
32
61
|
watchOptions: WatchOptions;
|
|
62
|
+
typescriptOptions: boolean | {
|
|
63
|
+
settings?: Settings;
|
|
64
|
+
tsConfigFileName?: string;
|
|
65
|
+
};
|
|
33
66
|
}
|
|
34
67
|
type UserConfig = Partial<BuildOptions>;
|
|
35
68
|
|
|
36
|
-
declare function createBuilder(options?: Partial<BuildOptions>): {
|
|
69
|
+
declare function createBuilder(options?: Partial<BuildOptions>): Promise<{
|
|
37
70
|
watcher: FSWatcher | undefined;
|
|
38
71
|
build(): Promise<any>;
|
|
39
72
|
watch(): any;
|
|
40
|
-
globsSet:
|
|
41
|
-
}
|
|
73
|
+
globsSet: GlobsSet;
|
|
74
|
+
}>;
|
|
42
75
|
declare function build(options?: Partial<BuildOptions>): Promise<{
|
|
43
76
|
watcher: FSWatcher | undefined;
|
|
44
77
|
build(): Promise<any>;
|
|
45
78
|
watch(): any;
|
|
46
|
-
globsSet:
|
|
79
|
+
globsSet: GlobsSet;
|
|
47
80
|
}>;
|
|
48
81
|
declare function watch(options?: Partial<BuildOptions>): Promise<{
|
|
49
82
|
watcher: FSWatcher | undefined;
|
|
50
83
|
build(): Promise<any>;
|
|
51
84
|
watch(): any;
|
|
52
|
-
globsSet:
|
|
85
|
+
globsSet: GlobsSet;
|
|
53
86
|
}>;
|
|
54
87
|
|
|
55
88
|
type WeappTwCosmiconfigResult = {
|
package/dist/index.d.ts
CHANGED
|
@@ -3,10 +3,23 @@ import { FSWatcher } from 'fs-extra';
|
|
|
3
3
|
import { UserDefinedOptions } from 'weapp-tailwindcss';
|
|
4
4
|
import { WatchOptions } from 'gulp';
|
|
5
5
|
import { Result } from 'postcss-load-config';
|
|
6
|
+
import { Options } from 'sass';
|
|
7
|
+
import { Settings } from 'gulp-typescript';
|
|
6
8
|
import * as cosmiconfig from 'cosmiconfig';
|
|
7
9
|
|
|
8
10
|
declare function createCli(): Command;
|
|
9
11
|
|
|
12
|
+
declare class GlobsSet {
|
|
13
|
+
includeSet: Set<string>;
|
|
14
|
+
excludeSet: Set<string>;
|
|
15
|
+
constructor();
|
|
16
|
+
isExcludeGlob(value: string): boolean;
|
|
17
|
+
addSingle(value: string): Set<string>;
|
|
18
|
+
add(...value: string[] | string[][]): void;
|
|
19
|
+
dump(): string[];
|
|
20
|
+
dumpIgnored(): string[];
|
|
21
|
+
}
|
|
22
|
+
|
|
10
23
|
declare enum AssetType {
|
|
11
24
|
JavaScript = "javascript",
|
|
12
25
|
Json = "json",
|
|
@@ -14,6 +27,18 @@ declare enum AssetType {
|
|
|
14
27
|
Html = "html"
|
|
15
28
|
}
|
|
16
29
|
|
|
30
|
+
interface GulpLessOptions {
|
|
31
|
+
modifyVars?: object | undefined;
|
|
32
|
+
paths?: string[] | undefined;
|
|
33
|
+
plugins?: any[] | undefined;
|
|
34
|
+
relativeUrls?: boolean | undefined;
|
|
35
|
+
}
|
|
36
|
+
interface GulpSassOptions extends Options<'sync'> {
|
|
37
|
+
errLogToConsole?: boolean | undefined;
|
|
38
|
+
onSuccess?: ((css: string) => any) | undefined;
|
|
39
|
+
onError?: ((err: Error) => any) | undefined;
|
|
40
|
+
sync?: boolean | undefined;
|
|
41
|
+
}
|
|
17
42
|
interface BuildOptions {
|
|
18
43
|
weappTailwindcssOptions: UserDefinedOptions;
|
|
19
44
|
outDir: string;
|
|
@@ -29,27 +54,35 @@ interface BuildOptions {
|
|
|
29
54
|
json?: string[];
|
|
30
55
|
};
|
|
31
56
|
postcssOptions?: Partial<Omit<Result, 'file'>>;
|
|
57
|
+
preprocessorOptions?: {
|
|
58
|
+
sass?: boolean | GulpSassOptions;
|
|
59
|
+
less?: boolean | GulpLessOptions;
|
|
60
|
+
};
|
|
32
61
|
watchOptions: WatchOptions;
|
|
62
|
+
typescriptOptions: boolean | {
|
|
63
|
+
settings?: Settings;
|
|
64
|
+
tsConfigFileName?: string;
|
|
65
|
+
};
|
|
33
66
|
}
|
|
34
67
|
type UserConfig = Partial<BuildOptions>;
|
|
35
68
|
|
|
36
|
-
declare function createBuilder(options?: Partial<BuildOptions>): {
|
|
69
|
+
declare function createBuilder(options?: Partial<BuildOptions>): Promise<{
|
|
37
70
|
watcher: FSWatcher | undefined;
|
|
38
71
|
build(): Promise<any>;
|
|
39
72
|
watch(): any;
|
|
40
|
-
globsSet:
|
|
41
|
-
}
|
|
73
|
+
globsSet: GlobsSet;
|
|
74
|
+
}>;
|
|
42
75
|
declare function build(options?: Partial<BuildOptions>): Promise<{
|
|
43
76
|
watcher: FSWatcher | undefined;
|
|
44
77
|
build(): Promise<any>;
|
|
45
78
|
watch(): any;
|
|
46
|
-
globsSet:
|
|
79
|
+
globsSet: GlobsSet;
|
|
47
80
|
}>;
|
|
48
81
|
declare function watch(options?: Partial<BuildOptions>): Promise<{
|
|
49
82
|
watcher: FSWatcher | undefined;
|
|
50
83
|
build(): Promise<any>;
|
|
51
84
|
watch(): any;
|
|
52
|
-
globsSet:
|
|
85
|
+
globsSet: GlobsSet;
|
|
53
86
|
}>;
|
|
54
87
|
|
|
55
88
|
type WeappTwCosmiconfigResult = {
|