@weapp-tailwindcss/cli 0.0.0-alpha.0 → 0.0.0-alpha.2
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 +523 -62
- package/dist/index.d.cts +42 -3
- package/dist/index.d.mts +42 -3
- package/dist/index.d.ts +42 -3
- package/dist/index.mjs +520 -61
- package/package.json +5 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,14 +1,53 @@
|
|
|
1
1
|
import { Command } from 'commander';
|
|
2
|
+
import { FSWatcher } from 'fs-extra';
|
|
2
3
|
import { UserDefinedOptions } from 'weapp-tailwindcss';
|
|
4
|
+
import { WatchOptions } from 'gulp';
|
|
3
5
|
import * as cosmiconfig from 'cosmiconfig';
|
|
4
6
|
|
|
5
7
|
declare function createCli(): Command;
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
declare enum AssetType {
|
|
10
|
+
JavaScript = "javascript",
|
|
11
|
+
Json = "json",
|
|
12
|
+
Css = "css",
|
|
13
|
+
Html = "html"
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
interface BuildOptions {
|
|
8
17
|
weappTailwindcssOptions: UserDefinedOptions;
|
|
9
18
|
outDir: string;
|
|
19
|
+
root: string;
|
|
20
|
+
clean: boolean;
|
|
21
|
+
src: string;
|
|
22
|
+
exclude: string[] | ((type: AssetType) => string[]);
|
|
23
|
+
include: string[] | ((type: AssetType) => string[]);
|
|
24
|
+
extensions: {
|
|
25
|
+
javascript: string[];
|
|
26
|
+
html: string[];
|
|
27
|
+
css: string[];
|
|
28
|
+
json: string[];
|
|
29
|
+
};
|
|
30
|
+
watchOptions: WatchOptions;
|
|
10
31
|
}
|
|
11
|
-
|
|
32
|
+
|
|
33
|
+
declare function createBuilder(options?: Partial<BuildOptions>): {
|
|
34
|
+
watcher: FSWatcher | undefined;
|
|
35
|
+
build(): Promise<any>;
|
|
36
|
+
watch(): any;
|
|
37
|
+
globsSet: Set<string>;
|
|
38
|
+
};
|
|
39
|
+
declare function build(options?: Partial<BuildOptions>): Promise<{
|
|
40
|
+
watcher: FSWatcher | undefined;
|
|
41
|
+
build(): Promise<any>;
|
|
42
|
+
watch(): any;
|
|
43
|
+
globsSet: Set<string>;
|
|
44
|
+
}>;
|
|
45
|
+
declare function watch(options?: Partial<BuildOptions>): {
|
|
46
|
+
watcher: FSWatcher | undefined;
|
|
47
|
+
build(): Promise<any>;
|
|
48
|
+
watch(): any;
|
|
49
|
+
globsSet: Set<string>;
|
|
50
|
+
};
|
|
12
51
|
|
|
13
52
|
type WeappTwCosmiconfigResult = {
|
|
14
53
|
config: UserConfig;
|
|
@@ -28,4 +67,4 @@ type UserConfig = {
|
|
|
28
67
|
};
|
|
29
68
|
declare function defineConfig(options: UserConfig): UserConfig;
|
|
30
69
|
|
|
31
|
-
export { type UserConfig, createCli, createConfigLoader,
|
|
70
|
+
export { type UserConfig, build, createBuilder, createCli, createConfigLoader, defineConfig, watch };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,14 +1,53 @@
|
|
|
1
1
|
import { Command } from 'commander';
|
|
2
|
+
import { FSWatcher } from 'fs-extra';
|
|
2
3
|
import { UserDefinedOptions } from 'weapp-tailwindcss';
|
|
4
|
+
import { WatchOptions } from 'gulp';
|
|
3
5
|
import * as cosmiconfig from 'cosmiconfig';
|
|
4
6
|
|
|
5
7
|
declare function createCli(): Command;
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
declare enum AssetType {
|
|
10
|
+
JavaScript = "javascript",
|
|
11
|
+
Json = "json",
|
|
12
|
+
Css = "css",
|
|
13
|
+
Html = "html"
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
interface BuildOptions {
|
|
8
17
|
weappTailwindcssOptions: UserDefinedOptions;
|
|
9
18
|
outDir: string;
|
|
19
|
+
root: string;
|
|
20
|
+
clean: boolean;
|
|
21
|
+
src: string;
|
|
22
|
+
exclude: string[] | ((type: AssetType) => string[]);
|
|
23
|
+
include: string[] | ((type: AssetType) => string[]);
|
|
24
|
+
extensions: {
|
|
25
|
+
javascript: string[];
|
|
26
|
+
html: string[];
|
|
27
|
+
css: string[];
|
|
28
|
+
json: string[];
|
|
29
|
+
};
|
|
30
|
+
watchOptions: WatchOptions;
|
|
10
31
|
}
|
|
11
|
-
|
|
32
|
+
|
|
33
|
+
declare function createBuilder(options?: Partial<BuildOptions>): {
|
|
34
|
+
watcher: FSWatcher | undefined;
|
|
35
|
+
build(): Promise<any>;
|
|
36
|
+
watch(): any;
|
|
37
|
+
globsSet: Set<string>;
|
|
38
|
+
};
|
|
39
|
+
declare function build(options?: Partial<BuildOptions>): Promise<{
|
|
40
|
+
watcher: FSWatcher | undefined;
|
|
41
|
+
build(): Promise<any>;
|
|
42
|
+
watch(): any;
|
|
43
|
+
globsSet: Set<string>;
|
|
44
|
+
}>;
|
|
45
|
+
declare function watch(options?: Partial<BuildOptions>): {
|
|
46
|
+
watcher: FSWatcher | undefined;
|
|
47
|
+
build(): Promise<any>;
|
|
48
|
+
watch(): any;
|
|
49
|
+
globsSet: Set<string>;
|
|
50
|
+
};
|
|
12
51
|
|
|
13
52
|
type WeappTwCosmiconfigResult = {
|
|
14
53
|
config: UserConfig;
|
|
@@ -28,4 +67,4 @@ type UserConfig = {
|
|
|
28
67
|
};
|
|
29
68
|
declare function defineConfig(options: UserConfig): UserConfig;
|
|
30
69
|
|
|
31
|
-
export { type UserConfig, createCli, createConfigLoader,
|
|
70
|
+
export { type UserConfig, build, createBuilder, createCli, createConfigLoader, defineConfig, watch };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,53 @@
|
|
|
1
1
|
import { Command } from 'commander';
|
|
2
|
+
import { FSWatcher } from 'fs-extra';
|
|
2
3
|
import { UserDefinedOptions } from 'weapp-tailwindcss';
|
|
4
|
+
import { WatchOptions } from 'gulp';
|
|
3
5
|
import * as cosmiconfig from 'cosmiconfig';
|
|
4
6
|
|
|
5
7
|
declare function createCli(): Command;
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
declare enum AssetType {
|
|
10
|
+
JavaScript = "javascript",
|
|
11
|
+
Json = "json",
|
|
12
|
+
Css = "css",
|
|
13
|
+
Html = "html"
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
interface BuildOptions {
|
|
8
17
|
weappTailwindcssOptions: UserDefinedOptions;
|
|
9
18
|
outDir: string;
|
|
19
|
+
root: string;
|
|
20
|
+
clean: boolean;
|
|
21
|
+
src: string;
|
|
22
|
+
exclude: string[] | ((type: AssetType) => string[]);
|
|
23
|
+
include: string[] | ((type: AssetType) => string[]);
|
|
24
|
+
extensions: {
|
|
25
|
+
javascript: string[];
|
|
26
|
+
html: string[];
|
|
27
|
+
css: string[];
|
|
28
|
+
json: string[];
|
|
29
|
+
};
|
|
30
|
+
watchOptions: WatchOptions;
|
|
10
31
|
}
|
|
11
|
-
|
|
32
|
+
|
|
33
|
+
declare function createBuilder(options?: Partial<BuildOptions>): {
|
|
34
|
+
watcher: FSWatcher | undefined;
|
|
35
|
+
build(): Promise<any>;
|
|
36
|
+
watch(): any;
|
|
37
|
+
globsSet: Set<string>;
|
|
38
|
+
};
|
|
39
|
+
declare function build(options?: Partial<BuildOptions>): Promise<{
|
|
40
|
+
watcher: FSWatcher | undefined;
|
|
41
|
+
build(): Promise<any>;
|
|
42
|
+
watch(): any;
|
|
43
|
+
globsSet: Set<string>;
|
|
44
|
+
}>;
|
|
45
|
+
declare function watch(options?: Partial<BuildOptions>): {
|
|
46
|
+
watcher: FSWatcher | undefined;
|
|
47
|
+
build(): Promise<any>;
|
|
48
|
+
watch(): any;
|
|
49
|
+
globsSet: Set<string>;
|
|
50
|
+
};
|
|
12
51
|
|
|
13
52
|
type WeappTwCosmiconfigResult = {
|
|
14
53
|
config: UserConfig;
|
|
@@ -28,4 +67,4 @@ type UserConfig = {
|
|
|
28
67
|
};
|
|
29
68
|
declare function defineConfig(options: UserConfig): UserConfig;
|
|
30
69
|
|
|
31
|
-
export { type UserConfig, createCli, createConfigLoader,
|
|
70
|
+
export { type UserConfig, build, createBuilder, createCli, createConfigLoader, defineConfig, watch };
|