create-bubbles 0.1.7 → 0.1.9
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.js +4 -3
- package/package.json +1 -1
- package/template-taro-vue-eslint/.editorconfig +12 -0
- package/template-taro-vue-eslint/.env +3 -0
- package/template-taro-vue-eslint/.env.development +5 -0
- package/template-taro-vue-eslint/.env.production +5 -0
- package/template-taro-vue-eslint/.vscode/settings.json +57 -0
- package/template-taro-vue-eslint/babel.config.js +12 -0
- package/template-taro-vue-eslint/commitlint.config.mjs +1 -0
- package/template-taro-vue-eslint/config/dev.ts +27 -0
- package/template-taro-vue-eslint/config/index.ts +129 -0
- package/template-taro-vue-eslint/config/output-root.ts +11 -0
- package/template-taro-vue-eslint/config/prod.ts +39 -0
- package/template-taro-vue-eslint/config/release.ts +113 -0
- package/template-taro-vue-eslint/eslint.config.mjs +22 -0
- package/template-taro-vue-eslint/lefthook.yaml +13 -0
- package/template-taro-vue-eslint/package.json +115 -0
- package/template-taro-vue-eslint/patches/@tarojs__plugin-mini-ci.patch +13 -0
- package/template-taro-vue-eslint/pnpm-workspace.yaml +2 -0
- package/template-taro-vue-eslint/project.config.json +16 -0
- package/template-taro-vue-eslint/src/api/common/upload.ts +53 -0
- package/template-taro-vue-eslint/src/app.config.ts +19 -0
- package/template-taro-vue-eslint/src/app.ts +14 -0
- package/template-taro-vue-eslint/src/assets/image/.gitkeep +0 -0
- package/template-taro-vue-eslint/src/index.html +17 -0
- package/template-taro-vue-eslint/src/pages/example/upload/index.config.ts +3 -0
- package/template-taro-vue-eslint/src/pages/example/upload/index.module.scss +4 -0
- package/template-taro-vue-eslint/src/pages/example/upload/index.vue +71 -0
- package/template-taro-vue-eslint/src/pages/index/index.config.ts +3 -0
- package/template-taro-vue-eslint/src/pages/index/index.module.scss +4 -0
- package/template-taro-vue-eslint/src/pages/index/index.vue +71 -0
- package/template-taro-vue-eslint/src/store/index.ts +10 -0
- package/template-taro-vue-eslint/src/store/modules/user.ts +15 -0
- package/template-taro-vue-eslint/src/store/taroStorage.ts +7 -0
- package/template-taro-vue-eslint/src/styles/index.css +1 -0
- package/template-taro-vue-eslint/src/styles/nut-theme.css +4 -0
- package/template-taro-vue-eslint/src/utils/env.ts +13 -0
- package/template-taro-vue-eslint/src/utils/index.ts +40 -0
- package/template-taro-vue-eslint/src/utils/request/core/index.ts +193 -0
- package/template-taro-vue-eslint/src/utils/request/core/utils.ts +30 -0
- package/template-taro-vue-eslint/src/utils/request/index.ts +73 -0
- package/template-taro-vue-eslint/tsconfig.json +30 -0
- package/template-taro-vue-eslint/types/components.d.ts +12 -0
- package/template-taro-vue-eslint/types/global.d.ts +31 -0
- package/template-taro-vue-eslint/types/vue.d.ts +10 -0
- package/template-taro-vue-eslint/unocss.config.ts +38 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "es2017",
|
|
4
|
+
"jsx": "preserve",
|
|
5
|
+
"experimentalDecorators": true,
|
|
6
|
+
"rootDir": ".",
|
|
7
|
+
"module": "commonjs",
|
|
8
|
+
"moduleResolution": "node",
|
|
9
|
+
"paths": {
|
|
10
|
+
// TS5090 leading './'
|
|
11
|
+
"@/*": ["./src/*"]
|
|
12
|
+
},
|
|
13
|
+
"resolveJsonModule": true,
|
|
14
|
+
"typeRoots": [
|
|
15
|
+
"node_modules/@types"
|
|
16
|
+
],
|
|
17
|
+
"allowJs": true,
|
|
18
|
+
"strictNullChecks": true,
|
|
19
|
+
"noImplicitAny": false,
|
|
20
|
+
"noUnusedLocals": true,
|
|
21
|
+
"noUnusedParameters": true,
|
|
22
|
+
"outDir": "lib",
|
|
23
|
+
"preserveConstEnums": true,
|
|
24
|
+
"removeComments": false,
|
|
25
|
+
"sourceMap": true,
|
|
26
|
+
"allowSyntheticDefaultImports": true
|
|
27
|
+
},
|
|
28
|
+
"include": ["./src", "./types", "./config"],
|
|
29
|
+
"compileOnSave": false
|
|
30
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* prettier-ignore */
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
// Generated by unplugin-vue-components
|
|
5
|
+
// Read more: https://github.com/vuejs/core/pull/3399
|
|
6
|
+
export {}
|
|
7
|
+
|
|
8
|
+
declare module 'vue' {
|
|
9
|
+
export interface GlobalComponents {
|
|
10
|
+
NutSignature: typeof import('@nutui/nutui-taro')['Signature']
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/// <reference types="@tarojs/taro" />
|
|
2
|
+
|
|
3
|
+
declare module '*.png';
|
|
4
|
+
declare module '*.gif';
|
|
5
|
+
declare module '*.jpg';
|
|
6
|
+
declare module '*.jpeg';
|
|
7
|
+
declare module '*.svg';
|
|
8
|
+
declare module '*.css';
|
|
9
|
+
declare module '*.less';
|
|
10
|
+
declare module '*.scss';
|
|
11
|
+
declare module '*.sass';
|
|
12
|
+
declare module '*.styl';
|
|
13
|
+
|
|
14
|
+
declare namespace NodeJS {
|
|
15
|
+
interface ProcessEnv {
|
|
16
|
+
/** NODE 内置环境变量, 会影响到最终构建生成产物 */
|
|
17
|
+
NODE_ENV: 'development' | 'production',
|
|
18
|
+
/** 当前构建的平台 */
|
|
19
|
+
TARO_ENV: 'weapp' | 'swan' | 'alipay' | 'h5' | 'rn' | 'tt' | 'qq' | 'jd' | 'harmony' | 'jdrn'
|
|
20
|
+
/**
|
|
21
|
+
* 当前构建的小程序 appid
|
|
22
|
+
* @description 若不同环境有不同的小程序,可通过在 env 文件中配置环境变量`TARO_APP_ID`来方便快速切换 appid, 而不必手动去修改 dist/project.config.json 文件
|
|
23
|
+
* @see https://taro-docs.jd.com/docs/next/env-mode-config#特殊环境变量-taro_app_id
|
|
24
|
+
*/
|
|
25
|
+
TARO_APP_ID: string
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
declare module '@tarojs/components' {
|
|
30
|
+
export * from '@tarojs/components/types/index.vue3'
|
|
31
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export {}
|
|
2
|
+
|
|
3
|
+
declare module 'vue' {
|
|
4
|
+
export interface GlobalComponents extends JSX.IntrinsicElements {
|
|
5
|
+
/** Note: Vue 在 runtime 中将 JSX.IntrinsicElements 通过 index signature 重复声明标签
|
|
6
|
+
* 这会导致插件无法正常跳转类型,可以手动覆盖声明标签活得更好的体验,参考如下:
|
|
7
|
+
* 'scroll-view': JSX.IntrinsicElements['scroll-view']
|
|
8
|
+
*/
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import process from 'node:process'
|
|
2
|
+
import { presetUno } from 'unocss'
|
|
3
|
+
import presetWeapp from 'unocss-preset-weapp'
|
|
4
|
+
import { extractorAttributify, transformerClass } from 'unocss-preset-weapp/transformer'
|
|
5
|
+
|
|
6
|
+
const { presetWeappAttributify, transformerAttributify } = extractorAttributify()
|
|
7
|
+
|
|
8
|
+
export default {
|
|
9
|
+
presets: [
|
|
10
|
+
// https://github.com/MellowCo/unocss-preset-weapp
|
|
11
|
+
presetWeapp(
|
|
12
|
+
// 以下配置为 webpack4 平台
|
|
13
|
+
// h5兼容设置,默认为 750 标准(designWidth: 750),webpack4 平台(taroWebpack: webpack4)
|
|
14
|
+
// 只开发小程序可删除
|
|
15
|
+
{
|
|
16
|
+
isH5: process.env.TARO_ENV === 'h5',
|
|
17
|
+
platform: 'taro',
|
|
18
|
+
},
|
|
19
|
+
),
|
|
20
|
+
// attributify autocomplete
|
|
21
|
+
presetWeappAttributify(),
|
|
22
|
+
presetUno({ preflight: false }),
|
|
23
|
+
],
|
|
24
|
+
shortcuts: [
|
|
25
|
+
{
|
|
26
|
+
center: 'flex justify-center items-center',
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
|
|
30
|
+
transformers: [
|
|
31
|
+
// https://github.com/MellowCo/unocss-preset-weapp/tree/main/src/transformer/transformerAttributify
|
|
32
|
+
// taro-react 不支持 Attributify Mode ,react不支持,react不支持,react不支持
|
|
33
|
+
transformerAttributify(),
|
|
34
|
+
|
|
35
|
+
// https://github.com/MellowCo/unocss-preset-weapp/tree/main/src/transformer/transformerClass
|
|
36
|
+
transformerClass(),
|
|
37
|
+
],
|
|
38
|
+
}
|