@weapp-tailwindcss/cli 0.0.0-alpha.8 → 1.0.0
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/README.md +1 -14
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +54 -0
- package/dist/index.d.mts +54 -0
- package/dist/index.d.ts +54 -0
- package/dist/index.mjs +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,16 +1,3 @@
|
|
|
1
1
|
# @weapp-tailwindcss/cli
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
{
|
|
5
|
-
"setting": {
|
|
6
|
-
"packNpmManually": true,
|
|
7
|
-
"packNpmRelationList": [
|
|
8
|
-
{
|
|
9
|
-
"packageJsonPath": "./package.json",
|
|
10
|
-
"miniprogramNpmDistDir": "./dist"
|
|
11
|
-
}
|
|
12
|
-
]
|
|
13
|
-
},
|
|
14
|
-
"miniprogramRoot": "dist/"
|
|
15
|
-
}
|
|
16
|
-
```
|
|
3
|
+
<https://weapp-tw.icebreaker.top/docs/quick-start/native/install>
|
package/dist/index.cjs
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -40,25 +40,79 @@ interface GulpSassOptions extends Options<'sync'> {
|
|
|
40
40
|
sync?: boolean | undefined;
|
|
41
41
|
}
|
|
42
42
|
interface BuildOptions {
|
|
43
|
+
/**
|
|
44
|
+
* @group 0.重要配置
|
|
45
|
+
* @description 传递给 `weapp-tailwindcss` 的选项, [参考配置](/docs/api/interfaces/UserDefinedOptions)
|
|
46
|
+
*/
|
|
43
47
|
weappTailwindcssOptions: UserDefinedOptions;
|
|
48
|
+
/**
|
|
49
|
+
* @group 1.打包配置
|
|
50
|
+
* @default `dist`
|
|
51
|
+
* @description 输出目录
|
|
52
|
+
*/
|
|
44
53
|
outDir: string;
|
|
54
|
+
/**
|
|
55
|
+
* @group 1.打包配置
|
|
56
|
+
* @default `process.cwd()`
|
|
57
|
+
* @description 根目录
|
|
58
|
+
*/
|
|
45
59
|
root: string;
|
|
60
|
+
/**
|
|
61
|
+
* @group 3.一般配置
|
|
62
|
+
* @default `true`
|
|
63
|
+
* @description build 的时候是否清除
|
|
64
|
+
*/
|
|
46
65
|
clean: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* @group 1.打包配置
|
|
68
|
+
* @default `.`
|
|
69
|
+
* @description src 目录,相对路径,通常用于原生 typescript 项目
|
|
70
|
+
*/
|
|
47
71
|
src: string;
|
|
72
|
+
/**
|
|
73
|
+
* @group 1.打包配置
|
|
74
|
+
* @description 排除的文件目录
|
|
75
|
+
*/
|
|
48
76
|
exclude: string[] | ((type: AssetType) => string[]);
|
|
77
|
+
/**
|
|
78
|
+
* @group 1.打包配置
|
|
79
|
+
* @description 包括的文件目录
|
|
80
|
+
*/
|
|
49
81
|
include: string[] | ((type: AssetType) => string[]);
|
|
82
|
+
/**
|
|
83
|
+
* @group 1.打包配置
|
|
84
|
+
* @description 包括的文件后缀分类
|
|
85
|
+
*/
|
|
50
86
|
extensions: {
|
|
51
87
|
javascript?: string[];
|
|
52
88
|
html?: string[];
|
|
53
89
|
css?: string[];
|
|
54
90
|
json?: string[];
|
|
55
91
|
};
|
|
92
|
+
/**
|
|
93
|
+
* @group 1.打包配置
|
|
94
|
+
* @description postcss 配置,默认会去请求 `root` 下的 `postcss.config.js`
|
|
95
|
+
*/
|
|
56
96
|
postcssOptions?: Partial<Omit<Result, 'file'>>;
|
|
97
|
+
/**
|
|
98
|
+
* @group 2.编译支持
|
|
99
|
+
* @description 预处理配置,支持 sass 和 less,需要传入来开启编译
|
|
100
|
+
* @description 启用 sass 需要安装 sass, less 同样
|
|
101
|
+
*/
|
|
57
102
|
preprocessorOptions?: {
|
|
58
103
|
sass?: boolean | GulpSassOptions;
|
|
59
104
|
less?: boolean | GulpLessOptions;
|
|
60
105
|
};
|
|
106
|
+
/**
|
|
107
|
+
* @group 1.打包配置
|
|
108
|
+
* @description weapp-tw dev 的 watch 配置
|
|
109
|
+
*/
|
|
61
110
|
watchOptions: WatchOptions;
|
|
111
|
+
/**
|
|
112
|
+
* @group 2.编译支持
|
|
113
|
+
* @description typescript 的编译配置,默认不传伟不编译 ts
|
|
114
|
+
* @description 需要安装 typescript
|
|
115
|
+
*/
|
|
62
116
|
typescriptOptions: boolean | {
|
|
63
117
|
settings?: Settings;
|
|
64
118
|
tsConfigFileName?: string;
|
package/dist/index.d.mts
CHANGED
|
@@ -40,25 +40,79 @@ interface GulpSassOptions extends Options<'sync'> {
|
|
|
40
40
|
sync?: boolean | undefined;
|
|
41
41
|
}
|
|
42
42
|
interface BuildOptions {
|
|
43
|
+
/**
|
|
44
|
+
* @group 0.重要配置
|
|
45
|
+
* @description 传递给 `weapp-tailwindcss` 的选项, [参考配置](/docs/api/interfaces/UserDefinedOptions)
|
|
46
|
+
*/
|
|
43
47
|
weappTailwindcssOptions: UserDefinedOptions;
|
|
48
|
+
/**
|
|
49
|
+
* @group 1.打包配置
|
|
50
|
+
* @default `dist`
|
|
51
|
+
* @description 输出目录
|
|
52
|
+
*/
|
|
44
53
|
outDir: string;
|
|
54
|
+
/**
|
|
55
|
+
* @group 1.打包配置
|
|
56
|
+
* @default `process.cwd()`
|
|
57
|
+
* @description 根目录
|
|
58
|
+
*/
|
|
45
59
|
root: string;
|
|
60
|
+
/**
|
|
61
|
+
* @group 3.一般配置
|
|
62
|
+
* @default `true`
|
|
63
|
+
* @description build 的时候是否清除
|
|
64
|
+
*/
|
|
46
65
|
clean: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* @group 1.打包配置
|
|
68
|
+
* @default `.`
|
|
69
|
+
* @description src 目录,相对路径,通常用于原生 typescript 项目
|
|
70
|
+
*/
|
|
47
71
|
src: string;
|
|
72
|
+
/**
|
|
73
|
+
* @group 1.打包配置
|
|
74
|
+
* @description 排除的文件目录
|
|
75
|
+
*/
|
|
48
76
|
exclude: string[] | ((type: AssetType) => string[]);
|
|
77
|
+
/**
|
|
78
|
+
* @group 1.打包配置
|
|
79
|
+
* @description 包括的文件目录
|
|
80
|
+
*/
|
|
49
81
|
include: string[] | ((type: AssetType) => string[]);
|
|
82
|
+
/**
|
|
83
|
+
* @group 1.打包配置
|
|
84
|
+
* @description 包括的文件后缀分类
|
|
85
|
+
*/
|
|
50
86
|
extensions: {
|
|
51
87
|
javascript?: string[];
|
|
52
88
|
html?: string[];
|
|
53
89
|
css?: string[];
|
|
54
90
|
json?: string[];
|
|
55
91
|
};
|
|
92
|
+
/**
|
|
93
|
+
* @group 1.打包配置
|
|
94
|
+
* @description postcss 配置,默认会去请求 `root` 下的 `postcss.config.js`
|
|
95
|
+
*/
|
|
56
96
|
postcssOptions?: Partial<Omit<Result, 'file'>>;
|
|
97
|
+
/**
|
|
98
|
+
* @group 2.编译支持
|
|
99
|
+
* @description 预处理配置,支持 sass 和 less,需要传入来开启编译
|
|
100
|
+
* @description 启用 sass 需要安装 sass, less 同样
|
|
101
|
+
*/
|
|
57
102
|
preprocessorOptions?: {
|
|
58
103
|
sass?: boolean | GulpSassOptions;
|
|
59
104
|
less?: boolean | GulpLessOptions;
|
|
60
105
|
};
|
|
106
|
+
/**
|
|
107
|
+
* @group 1.打包配置
|
|
108
|
+
* @description weapp-tw dev 的 watch 配置
|
|
109
|
+
*/
|
|
61
110
|
watchOptions: WatchOptions;
|
|
111
|
+
/**
|
|
112
|
+
* @group 2.编译支持
|
|
113
|
+
* @description typescript 的编译配置,默认不传伟不编译 ts
|
|
114
|
+
* @description 需要安装 typescript
|
|
115
|
+
*/
|
|
62
116
|
typescriptOptions: boolean | {
|
|
63
117
|
settings?: Settings;
|
|
64
118
|
tsConfigFileName?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -40,25 +40,79 @@ interface GulpSassOptions extends Options<'sync'> {
|
|
|
40
40
|
sync?: boolean | undefined;
|
|
41
41
|
}
|
|
42
42
|
interface BuildOptions {
|
|
43
|
+
/**
|
|
44
|
+
* @group 0.重要配置
|
|
45
|
+
* @description 传递给 `weapp-tailwindcss` 的选项, [参考配置](/docs/api/interfaces/UserDefinedOptions)
|
|
46
|
+
*/
|
|
43
47
|
weappTailwindcssOptions: UserDefinedOptions;
|
|
48
|
+
/**
|
|
49
|
+
* @group 1.打包配置
|
|
50
|
+
* @default `dist`
|
|
51
|
+
* @description 输出目录
|
|
52
|
+
*/
|
|
44
53
|
outDir: string;
|
|
54
|
+
/**
|
|
55
|
+
* @group 1.打包配置
|
|
56
|
+
* @default `process.cwd()`
|
|
57
|
+
* @description 根目录
|
|
58
|
+
*/
|
|
45
59
|
root: string;
|
|
60
|
+
/**
|
|
61
|
+
* @group 3.一般配置
|
|
62
|
+
* @default `true`
|
|
63
|
+
* @description build 的时候是否清除
|
|
64
|
+
*/
|
|
46
65
|
clean: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* @group 1.打包配置
|
|
68
|
+
* @default `.`
|
|
69
|
+
* @description src 目录,相对路径,通常用于原生 typescript 项目
|
|
70
|
+
*/
|
|
47
71
|
src: string;
|
|
72
|
+
/**
|
|
73
|
+
* @group 1.打包配置
|
|
74
|
+
* @description 排除的文件目录
|
|
75
|
+
*/
|
|
48
76
|
exclude: string[] | ((type: AssetType) => string[]);
|
|
77
|
+
/**
|
|
78
|
+
* @group 1.打包配置
|
|
79
|
+
* @description 包括的文件目录
|
|
80
|
+
*/
|
|
49
81
|
include: string[] | ((type: AssetType) => string[]);
|
|
82
|
+
/**
|
|
83
|
+
* @group 1.打包配置
|
|
84
|
+
* @description 包括的文件后缀分类
|
|
85
|
+
*/
|
|
50
86
|
extensions: {
|
|
51
87
|
javascript?: string[];
|
|
52
88
|
html?: string[];
|
|
53
89
|
css?: string[];
|
|
54
90
|
json?: string[];
|
|
55
91
|
};
|
|
92
|
+
/**
|
|
93
|
+
* @group 1.打包配置
|
|
94
|
+
* @description postcss 配置,默认会去请求 `root` 下的 `postcss.config.js`
|
|
95
|
+
*/
|
|
56
96
|
postcssOptions?: Partial<Omit<Result, 'file'>>;
|
|
97
|
+
/**
|
|
98
|
+
* @group 2.编译支持
|
|
99
|
+
* @description 预处理配置,支持 sass 和 less,需要传入来开启编译
|
|
100
|
+
* @description 启用 sass 需要安装 sass, less 同样
|
|
101
|
+
*/
|
|
57
102
|
preprocessorOptions?: {
|
|
58
103
|
sass?: boolean | GulpSassOptions;
|
|
59
104
|
less?: boolean | GulpLessOptions;
|
|
60
105
|
};
|
|
106
|
+
/**
|
|
107
|
+
* @group 1.打包配置
|
|
108
|
+
* @description weapp-tw dev 的 watch 配置
|
|
109
|
+
*/
|
|
61
110
|
watchOptions: WatchOptions;
|
|
111
|
+
/**
|
|
112
|
+
* @group 2.编译支持
|
|
113
|
+
* @description typescript 的编译配置,默认不传伟不编译 ts
|
|
114
|
+
* @description 需要安装 typescript
|
|
115
|
+
*/
|
|
62
116
|
typescriptOptions: boolean | {
|
|
63
117
|
settings?: Settings;
|
|
64
118
|
tsConfigFileName?: string;
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weapp-tailwindcss/cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "The cli of weapp-tailwindcss",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"weapp",
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"author": "SonOfMagic <qq1324318532@gmail.com>",
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"bugs": {
|
|
14
|
-
"url": "https://github.com/sonofmagic/weapp-tailwindcss
|
|
14
|
+
"url": "https://github.com/sonofmagic/weapp-tailwindcss/issues"
|
|
15
15
|
},
|
|
16
|
-
"homepage": "https://weapp-tw.icebreaker.top",
|
|
16
|
+
"homepage": "https://weapp-tw.icebreaker.top/docs/quick-start/native/install",
|
|
17
17
|
"sideEffects": false,
|
|
18
18
|
"type": "commonjs",
|
|
19
19
|
"exports": {
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"less": "*",
|
|
54
54
|
"sass": "*",
|
|
55
55
|
"typescript": "*",
|
|
56
|
-
"weapp-tailwindcss": "3.2.0
|
|
56
|
+
"weapp-tailwindcss": "3.2.0"
|
|
57
57
|
},
|
|
58
58
|
"peerDependenciesMeta": {
|
|
59
59
|
"less": {
|