-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
187 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,9 @@ | |
"iife", | ||
"jridgewell", | ||
"jsxdev", | ||
"kwai", | ||
"nerv", | ||
"nextjs", | ||
"nocheck", | ||
"nosources", | ||
"pnpm", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
export * from './html' | ||
export * from './http' | ||
export * from './inject' | ||
export * from './miniCI' | ||
|
||
export * from './mock' | ||
export * from './indie' | ||
|
||
export * from './platformKwai' | ||
export * from './platformLark' | ||
export * from './platformXhs' | ||
export * from './platformNextJs' | ||
export * from './platformAlipayDd' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** | ||
* Options for `@tarojs/plugin-indie` | ||
* | ||
* @see https://github.com/NervJS/taro-plugin-indie | ||
*/ | ||
|
||
export interface PluginIndieOptions { | ||
/** | ||
* 插件支持自定义小程序样式处理规则 | ||
* @see https://github.com/NervJS/taro-plugin-indie?tab=readme-ov-file#1-pathstyleimportwithcustomrule | ||
*/ | ||
pathStyleImportWithCustomRule?: (filename: string) => boolean | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* Options for `@tarojs/plugin-mini-ci` | ||
* | ||
* @see https://github.com/NervJS/taro/tree/main/packages/taro-plugin-mini-ci | ||
*/ | ||
|
||
export interface PluginMiniCIOptions {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/** | ||
* Options for `@tarojs/plugin-mock` | ||
* | ||
* @see https://github.com/NervJS/taro-plugin-mock | ||
*/ | ||
|
||
import type { LiteralUnion } from '../../utility-types' | ||
|
||
type HTTPMethod = LiteralUnion< | ||
'GET' | 'POST' | 'HEAD' | 'PUT' | 'DELETE' | 'CONNECT' | 'OPTIONS' | 'TRACE' | 'PATCH' | ||
> | ||
|
||
export interface PluginMockOptions { | ||
/** | ||
* 数据 Mock 服务地址 | ||
* @default `127.0.0.1` | ||
*/ | ||
host?: string | ||
|
||
/** | ||
* 数据 Mock 服务端口 | ||
* @default 9527 | ||
*/ | ||
port?: number | ||
|
||
/** | ||
* 数据 Mock 接口,可以使用 `mock` 目录下文件 | ||
* @see https://github.com/NervJS/taro-plugin-mock?tab=readme-ov-file#%E5%8F%82%E6%95%B0 | ||
*/ | ||
mocks?: Record<`${HTTPMethod} ${string}`, Record<string, any>> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* Options for `@tarojs/plugin-platform-alipay-dd` | ||
* | ||
* @see https://github.com/NervJS/taro-plugin-platform-alipay-dd | ||
*/ | ||
|
||
export interface PluginPlatformAlipayDdOptions {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* Options for `@tarojs/plugin-platform-kwai` | ||
* | ||
* @see https://github.com/NervJS/taro-plugin-platform-kwai | ||
*/ | ||
|
||
export interface PluginPlatformKwaiOptions {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/** | ||
* Options for `@tarojs/plugin-platform-lark` | ||
* | ||
* @see https://github.com/NervJS/taro-plugin-platform-lark | ||
*/ | ||
|
||
export interface PluginPlatformLarkOptions { | ||
/** | ||
* Lark 小程序是否支持 PC 端的组件属性 | ||
* @default false | ||
*/ | ||
pc?: boolean | ||
|
||
/** | ||
* Lark 小程序编译时的入口文件 | ||
* @see https://github.com/NervJS/taro-plugin-platform-lark?tab=readme-ov-file#%E6%8F%92%E4%BB%B6%E9%80%89%E9%A1%B9 | ||
* @default undefined | ||
*/ | ||
entry?: string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** | ||
* Options for `@tarojs/plugin-platform-nextjs` | ||
* | ||
* @see https://github.com/NervJS/tarojs-plugin-ssr | ||
*/ | ||
|
||
export interface PluginPlatformNextJsOptions { | ||
/** | ||
* 执行 taro build --type nextjs --watch 命令后,是否需要自动执行 next dev 命令 | ||
* @default true | ||
*/ | ||
runNextjs?: boolean | ||
|
||
/** | ||
* 是否启动后自动打开浏览器 | ||
* @default true | ||
*/ | ||
browser?: boolean | ||
|
||
/** | ||
* 插件编译阶段需要复制到 Next.js 中的附加文件 | ||
*/ | ||
extraFiles?: string[] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* Options for `@tarojs/plugin-platform-xhs` | ||
* | ||
* @see https://github.com/NervJS/taro-plugin-platform-xhs | ||
*/ | ||
|
||
export interface PluginPlatformXhsOptions {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters