@weapp-tailwindcss/cli 0.0.0-alpha.6 → 0.0.0-alpha.7

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.d.mts CHANGED
@@ -3,6 +3,8 @@ 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;
@@ -14,6 +16,18 @@ declare enum AssetType {
14
16
  Html = "html"
15
17
  }
16
18
 
19
+ interface GulpLessOptions {
20
+ modifyVars?: object | undefined;
21
+ paths?: string[] | undefined;
22
+ plugins?: any[] | undefined;
23
+ relativeUrls?: boolean | undefined;
24
+ }
25
+ interface GulpSassOptions extends Options<'sync'> {
26
+ errLogToConsole?: boolean | undefined;
27
+ onSuccess?: ((css: string) => any) | undefined;
28
+ onError?: ((err: Error) => any) | undefined;
29
+ sync?: boolean | undefined;
30
+ }
17
31
  interface BuildOptions {
18
32
  weappTailwindcssOptions: UserDefinedOptions;
19
33
  outDir: string;
@@ -29,16 +43,24 @@ interface BuildOptions {
29
43
  json?: string[];
30
44
  };
31
45
  postcssOptions?: Partial<Omit<Result, 'file'>>;
46
+ preprocessorOptions?: {
47
+ sass?: boolean | GulpSassOptions;
48
+ less?: boolean | GulpLessOptions;
49
+ };
32
50
  watchOptions: WatchOptions;
51
+ typescriptOptions: boolean | {
52
+ settings?: Settings;
53
+ tsConfigFileName?: string;
54
+ };
33
55
  }
34
56
  type UserConfig = Partial<BuildOptions>;
35
57
 
36
- declare function createBuilder(options?: Partial<BuildOptions>): {
58
+ declare function createBuilder(options?: Partial<BuildOptions>): Promise<{
37
59
  watcher: FSWatcher | undefined;
38
60
  build(): Promise<any>;
39
61
  watch(): any;
40
62
  globsSet: Set<string>;
41
- };
63
+ }>;
42
64
  declare function build(options?: Partial<BuildOptions>): Promise<{
43
65
  watcher: FSWatcher | undefined;
44
66
  build(): Promise<any>;
package/dist/index.d.ts CHANGED
@@ -3,6 +3,8 @@ 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;
@@ -14,6 +16,18 @@ declare enum AssetType {
14
16
  Html = "html"
15
17
  }
16
18
 
19
+ interface GulpLessOptions {
20
+ modifyVars?: object | undefined;
21
+ paths?: string[] | undefined;
22
+ plugins?: any[] | undefined;
23
+ relativeUrls?: boolean | undefined;
24
+ }
25
+ interface GulpSassOptions extends Options<'sync'> {
26
+ errLogToConsole?: boolean | undefined;
27
+ onSuccess?: ((css: string) => any) | undefined;
28
+ onError?: ((err: Error) => any) | undefined;
29
+ sync?: boolean | undefined;
30
+ }
17
31
  interface BuildOptions {
18
32
  weappTailwindcssOptions: UserDefinedOptions;
19
33
  outDir: string;
@@ -29,16 +43,24 @@ interface BuildOptions {
29
43
  json?: string[];
30
44
  };
31
45
  postcssOptions?: Partial<Omit<Result, 'file'>>;
46
+ preprocessorOptions?: {
47
+ sass?: boolean | GulpSassOptions;
48
+ less?: boolean | GulpLessOptions;
49
+ };
32
50
  watchOptions: WatchOptions;
51
+ typescriptOptions: boolean | {
52
+ settings?: Settings;
53
+ tsConfigFileName?: string;
54
+ };
33
55
  }
34
56
  type UserConfig = Partial<BuildOptions>;
35
57
 
36
- declare function createBuilder(options?: Partial<BuildOptions>): {
58
+ declare function createBuilder(options?: Partial<BuildOptions>): Promise<{
37
59
  watcher: FSWatcher | undefined;
38
60
  build(): Promise<any>;
39
61
  watch(): any;
40
62
  globsSet: Set<string>;
41
- };
63
+ }>;
42
64
  declare function build(options?: Partial<BuildOptions>): Promise<{
43
65
  watcher: FSWatcher | undefined;
44
66
  build(): Promise<any>;