create-packer 1.47.1 → 1.47.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/package.json +3 -2
- package/template/web-app/react-rsbuild/domain/components/app-context.tsx +1 -10
- package/template/web-app/react-rsbuild/env.d.ts +0 -7
- package/template/web-app/react-rsbuild/main.tsx +1 -0
- package/template/web-app/react-rsbuild/package.json +3 -3
- package/template/web-app/react-rsbuild/pages/home/view.module.css +3 -0
- package/template/web-app/react-rsbuild/pages/home/view.tsx +2 -2
- package/template/web-app/react-rsbuild/postcss.config.cjs +1 -0
- package/template/web-app/react-rsbuild/rsbuild.config.ts +1 -12
- package/template/web-app/react-rsbuild/tsconfig.json +0 -1
- package/template/web-app/react-vite/domain/components/app-context.tsx +1 -10
- package/template/web-app/react-vite/main.tsx +1 -0
- package/template/web-app/react-vite/package.json +3 -3
- package/template/web-app/react-vite/pages/home/view.module.css +3 -0
- package/template/web-app/react-vite/pages/home/view.tsx +2 -2
- package/template/web-app/react-vite/tsconfig.json +0 -1
- package/template/web-app/react-vite/vite-env.d.ts +6 -15
- package/template/web-app/react-vite/vite.config.ts +3 -3
- package/template/web-app/vue/main.ts +1 -1
- package/template/web-app/vue/package.json +2 -1
- package/template/web-app/vue/shared/styles/theme.css +4 -0
- package/template/web-app/vue-rsbuild/main.ts +1 -1
- package/template/web-app/vue-rsbuild/package.json +5 -1
- package/template/web-app/vue-rsbuild/pages/home/view.vue +1 -1
- package/template/web-app/vue-rsbuild/shared/styles/theme.css +4 -0
- package/template/web-extension/.wxt/eslint-auto-imports.mjs +56 -56
- package/template/web-extension/.wxt/tsconfig.json +27 -27
- package/template/web-extension/.wxt/types/globals.d.ts +15 -15
- package/template/web-extension/.wxt/types/i18n.d.ts +81 -81
- package/template/web-extension/.wxt/types/imports-module.d.ts +20 -20
- package/template/web-extension/.wxt/types/imports.d.ts +50 -50
- package/template/web-extension/.wxt/types/paths.d.ts +17 -17
- package/template/web-extension/.wxt/wxt.d.ts +7 -7
- package/template/web-extension/entrypoints/content/index.tsx +1 -0
- package/template/web-extension/entrypoints/popup/main.tsx +1 -0
- package/template/web-extension/entrypoints/popup/popup.tsx +1 -1
- package/template/web-extension/package.json +3 -4
- package/template/web-extension/shared/components/app-context/view.tsx +1 -10
- package/template/web-extension/shared/styles/theme.css +4 -0
- package/template/web-extension/tsconfig.json +0 -1
- package/template/web-extension/vite-env.d.ts +6 -15
- package/template/web-extension/wxt.config.ts +2 -1
- package/template/web-app/react-rsbuild/pages/home/view.styled.ts +0 -5
- package/template/web-app/react-rsbuild/shared/styles/global.ts +0 -7
- package/template/web-app/react-rsbuild/shared/styles/index.ts +0 -2
- package/template/web-app/react-rsbuild/shared/styles/theme.ts +0 -50
- package/template/web-app/react-vite/pages/home/view.styled.ts +0 -5
- package/template/web-app/react-vite/shared/styles/global.ts +0 -7
- package/template/web-app/react-vite/shared/styles/index.ts +0 -2
- package/template/web-app/react-vite/shared/styles/theme.ts +0 -50
- package/template/web-extension/shared/styles/global.ts +0 -9
- package/template/web-extension/shared/styles/index.ts +0 -2
- package/template/web-extension/shared/styles/theme.ts +0 -50
- /package/template/web-app/{vue-rsbuild/main.css → react-rsbuild/shared/styles/theme.css} +0 -0
- /package/template/web-app/{vue/main.css → react-vite/shared/styles/theme.css} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-packer",
|
|
3
|
-
"version": "1.47.
|
|
3
|
+
"version": "1.47.2",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"repository": "https://github.com/kevily/create-packer",
|
|
6
6
|
"author": "1k <bug_zero@163.com>",
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"commit": "git add . && cz",
|
|
55
55
|
"push": "pnpm run commit && git push",
|
|
56
56
|
"up:rsbuild": "pnpm -r up @rsbuild/* @rsdoctor/* -L",
|
|
57
|
-
"up:vite": "pnpm -r up vite @vitejs/* vite-* -L"
|
|
57
|
+
"up:vite": "pnpm -r up vite @vitejs/* vite-* -L",
|
|
58
|
+
"up:tailwind": "pnpm up tailwindcss @tailwindcss/* -L"
|
|
58
59
|
}
|
|
59
60
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { FunctionComponent, ReactNode } from 'react'
|
|
2
2
|
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
|
|
3
|
-
import { Global, ThemeProvider } from '@emotion/react'
|
|
4
3
|
import { request } from '@/shared/service'
|
|
5
|
-
import { globalCss, theme } from '@/shared/styles'
|
|
6
4
|
|
|
7
5
|
const queryClient = new QueryClient({
|
|
8
6
|
defaultOptions: {
|
|
@@ -20,12 +18,5 @@ export interface propsType {
|
|
|
20
18
|
children: ReactNode
|
|
21
19
|
}
|
|
22
20
|
export const Root: FunctionComponent<propsType> = props => {
|
|
23
|
-
return
|
|
24
|
-
<ThemeProvider theme={theme}>
|
|
25
|
-
<QueryClientProvider client={queryClient}>
|
|
26
|
-
<Global styles={globalCss} />
|
|
27
|
-
{props.children}
|
|
28
|
-
</QueryClientProvider>
|
|
29
|
-
</ThemeProvider>
|
|
30
|
-
)
|
|
21
|
+
return <QueryClientProvider client={queryClient}>{props.children}</QueryClientProvider>
|
|
31
22
|
}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
/// <reference types="@rsbuild/core/types" />
|
|
2
2
|
|
|
3
|
-
import '@emotion/react'
|
|
4
|
-
import { type themeType } from '@/shared/styles'
|
|
5
|
-
|
|
6
3
|
declare global {
|
|
7
4
|
interface ImportMetaEnv {
|
|
8
5
|
readonly PUBLIC_BASE_URL: string
|
|
@@ -22,7 +19,3 @@ declare module '*.svg?react' {
|
|
|
22
19
|
const ReactComponent: FunctionComponent<SVGProps<SVGSVGElement>>
|
|
23
20
|
export default ReactComponent
|
|
24
21
|
}
|
|
25
|
-
|
|
26
|
-
declare module '@emotion/react' {
|
|
27
|
-
export interface Theme extends themeType {}
|
|
28
|
-
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"build:rsdoctor": "cross-env RSDOCTOR=true rsbuild build",
|
|
12
12
|
"preview": "rsbuild preview",
|
|
13
13
|
"up:rsbuild": "pnpm up @rsbuild/* -L",
|
|
14
|
+
"up:tailwind": "pnpm up tailwindcss @tailwindcss/* -L",
|
|
14
15
|
"format": "prettier --write \"**/*.{ts,js,tsx,jsx,json,css,scss,less}\"",
|
|
15
16
|
"lint": "tsc --noEmit && eslint --no-error-on-unmatched-pattern && stylelint **/*.{css,scss,less,ts,tsx}",
|
|
16
17
|
"lint:fix": "eslint --fix && stylelint **/*.{css,scss,less,ts,tsx} --fix",
|
|
@@ -19,8 +20,6 @@
|
|
|
19
20
|
"commit": "git add . && npm run cz"
|
|
20
21
|
},
|
|
21
22
|
"dependencies": {
|
|
22
|
-
"@emotion/react": "11.14.0",
|
|
23
|
-
"@emotion/styled": "11.14.1",
|
|
24
23
|
"@tanstack/react-query": "5.51.15",
|
|
25
24
|
"axios": "1.7.9",
|
|
26
25
|
"define-zustand": "3.4.0",
|
|
@@ -31,6 +30,7 @@
|
|
|
31
30
|
"react-dom": "18.3.1",
|
|
32
31
|
"react-router": "7.5.0",
|
|
33
32
|
"react-use": "17.5.0",
|
|
33
|
+
"tailwindcss": "4.1.4",
|
|
34
34
|
"type-fest": "4.33.0",
|
|
35
35
|
"zustand": "5.0.3"
|
|
36
36
|
},
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@rsbuild/plugin-svgr": "1.2.3",
|
|
46
46
|
"@rsbuild/plugin-type-check": "1.3.2",
|
|
47
47
|
"@rsdoctor/rspack-plugin": "1.4.0",
|
|
48
|
-
"@
|
|
48
|
+
"@tailwindcss/postcss": "4.1.4",
|
|
49
49
|
"@types/node": "18.16.0",
|
|
50
50
|
"@types/qs": "6.9.7",
|
|
51
51
|
"@types/react": "18.3.3",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useHomeData } from '@/shared/service'
|
|
2
|
-
import
|
|
2
|
+
import styles from './view.module.css'
|
|
3
3
|
|
|
4
4
|
export default function Home() {
|
|
5
5
|
const { data } = useHomeData()
|
|
6
6
|
|
|
7
7
|
console.log('data', data)
|
|
8
8
|
|
|
9
|
-
return <
|
|
9
|
+
return <div className={styles.root}>sdfs</div>
|
|
10
10
|
}
|
|
@@ -41,13 +41,6 @@ export default defineConfig(({ envMode, command }) => {
|
|
|
41
41
|
new StylelintWebpackPlugin(),
|
|
42
42
|
process.env.RSDOCTOR && new RsdoctorRspackPlugin()
|
|
43
43
|
]
|
|
44
|
-
},
|
|
45
|
-
swc: {
|
|
46
|
-
jsc: {
|
|
47
|
-
experimental: {
|
|
48
|
-
plugins: [['@swc/plugin-emotion', {}]]
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
44
|
}
|
|
52
45
|
},
|
|
53
46
|
plugins: [
|
|
@@ -59,11 +52,7 @@ export default defineConfig(({ envMode, command }) => {
|
|
|
59
52
|
}
|
|
60
53
|
}),
|
|
61
54
|
pluginSvgr(),
|
|
62
|
-
pluginReact(
|
|
63
|
-
swcReactOptions: {
|
|
64
|
-
importSource: '@emotion/react'
|
|
65
|
-
}
|
|
66
|
-
})
|
|
55
|
+
pluginReact()
|
|
67
56
|
],
|
|
68
57
|
performance: {
|
|
69
58
|
removeConsole: command === 'build' ? ['log'] : false,
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { FunctionComponent, ReactNode } from 'react'
|
|
2
2
|
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
|
|
3
|
-
import { Global, ThemeProvider } from '@emotion/react'
|
|
4
3
|
import { request } from '@/shared/service'
|
|
5
|
-
import { globalCss, theme } from '@/shared/styles'
|
|
6
4
|
|
|
7
5
|
const queryClient = new QueryClient({
|
|
8
6
|
defaultOptions: {
|
|
@@ -20,12 +18,5 @@ export interface propsType {
|
|
|
20
18
|
children: ReactNode
|
|
21
19
|
}
|
|
22
20
|
export const Root: FunctionComponent<propsType> = props => {
|
|
23
|
-
return
|
|
24
|
-
<ThemeProvider theme={theme}>
|
|
25
|
-
<QueryClientProvider client={queryClient}>
|
|
26
|
-
<Global styles={globalCss} />
|
|
27
|
-
{props.children}
|
|
28
|
-
</QueryClientProvider>
|
|
29
|
-
</ThemeProvider>
|
|
30
|
-
)
|
|
21
|
+
return <QueryClientProvider client={queryClient}>{props.children}</QueryClientProvider>
|
|
31
22
|
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"build:analyse": "tsc --noEmit && vite build --mode analyse",
|
|
11
11
|
"preview": "vite preview",
|
|
12
12
|
"up:vite": "pnpm up vite @vitejs/* vite-plugin-* -L",
|
|
13
|
+
"up:tailwind": "pnpm up tailwindcss @tailwindcss/* -L",
|
|
13
14
|
"format": "prettier --write \"**/*.{ts,js,tsx,jsx,json,css,scss,less}\"",
|
|
14
15
|
"lint": "tsc --noEmit && eslint --no-error-on-unmatched-pattern && stylelint **/*.{css,scss,less,ts,tsx}",
|
|
15
16
|
"lint:fix": "eslint --fix && stylelint **/*.{css,scss,less,ts,tsx} --fix",
|
|
@@ -18,8 +19,6 @@
|
|
|
18
19
|
"commit": "git add . && npm run cz"
|
|
19
20
|
},
|
|
20
21
|
"dependencies": {
|
|
21
|
-
"@emotion/react": "11.14.0",
|
|
22
|
-
"@emotion/styled": "11.14.1",
|
|
23
22
|
"@tanstack/react-query": "5.51.15",
|
|
24
23
|
"axios": "1.7.9",
|
|
25
24
|
"define-zustand": "3.4.0",
|
|
@@ -30,6 +29,7 @@
|
|
|
30
29
|
"react-dom": "18.3.1",
|
|
31
30
|
"react-router": "7.5.0",
|
|
32
31
|
"react-use": "17.5.0",
|
|
32
|
+
"tailwindcss": "4.1.4",
|
|
33
33
|
"type-fest": "4.33.0",
|
|
34
34
|
"zustand": "5.0.3"
|
|
35
35
|
},
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"@commitlint/cli": "17.6.1",
|
|
38
38
|
"@commitlint/config-conventional": "17.6.1",
|
|
39
39
|
"@commitlint/cz-commitlint": "17.5.0",
|
|
40
|
-
"@emotion/babel-plugin": "11.13.5",
|
|
41
40
|
"@eslint/js": "9.15.0",
|
|
42
41
|
"@faker-js/faker": "8.4.1",
|
|
42
|
+
"@tailwindcss/vite": "^4.1.18",
|
|
43
43
|
"@types/node": "18.16.0",
|
|
44
44
|
"@types/qs": "6.9.7",
|
|
45
45
|
"@types/react": "18.3.3",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useHomeData } from '@/shared/service'
|
|
2
|
-
import
|
|
2
|
+
import styles from './view.module.css'
|
|
3
3
|
|
|
4
4
|
export default function Home() {
|
|
5
5
|
const { data } = useHomeData()
|
|
6
6
|
|
|
7
7
|
console.log('data', data)
|
|
8
8
|
|
|
9
|
-
return <
|
|
9
|
+
return <div className={styles.root}>sdfs</div>
|
|
10
10
|
}
|
|
@@ -1,21 +1,12 @@
|
|
|
1
1
|
/// <reference types="vite/client" />
|
|
2
2
|
/// <reference types="vite-plugin-svgr/client" />
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
interface ImportMetaEnv {
|
|
9
|
-
readonly VITE_BASE_URL: string
|
|
10
|
-
readonly VITE_API_HOST: string
|
|
11
|
-
// 更多环境变量...
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
interface ImportMeta {
|
|
15
|
-
readonly env: ImportMetaEnv
|
|
16
|
-
}
|
|
4
|
+
interface ImportMetaEnv {
|
|
5
|
+
readonly VITE_BASE_URL: string
|
|
6
|
+
readonly VITE_API_HOST: string
|
|
7
|
+
// 更多环境变量...
|
|
17
8
|
}
|
|
18
9
|
|
|
19
|
-
|
|
20
|
-
|
|
10
|
+
interface ImportMeta {
|
|
11
|
+
readonly env: ImportMetaEnv
|
|
21
12
|
}
|
|
@@ -3,6 +3,7 @@ import react from '@vitejs/plugin-react'
|
|
|
3
3
|
import svgr from 'vite-plugin-svgr'
|
|
4
4
|
import { mockDevServerPlugin } from 'vite-plugin-mock-dev-server'
|
|
5
5
|
import checker from 'vite-plugin-checker'
|
|
6
|
+
import tailwindcss from '@tailwindcss/vite'
|
|
6
7
|
import { visualizer } from 'rollup-plugin-visualizer'
|
|
7
8
|
import { createChunks } from './scripts'
|
|
8
9
|
|
|
@@ -11,6 +12,7 @@ export default defineConfig(({ mode }) => {
|
|
|
11
12
|
const env = loadEnv(mode, process.cwd(), '')
|
|
12
13
|
const proxyBaseUrl = env.VITE_BASE_URL + env.VITE_API_HOST
|
|
13
14
|
const plugins: any[] = [
|
|
15
|
+
tailwindcss(),
|
|
14
16
|
svgr(),
|
|
15
17
|
mockDevServerPlugin({
|
|
16
18
|
include: ['**/*.mock.{ts,js}']
|
|
@@ -20,9 +22,7 @@ export default defineConfig(({ mode }) => {
|
|
|
20
22
|
typescript: true,
|
|
21
23
|
eslint: { useFlatConfig: true, lintCommand: 'eslint', dev: { logLevel: ['error'] } }
|
|
22
24
|
}),
|
|
23
|
-
react(
|
|
24
|
-
babel: { plugins: [['@emotion']] }
|
|
25
|
-
})
|
|
25
|
+
react()
|
|
26
26
|
]
|
|
27
27
|
|
|
28
28
|
if (mode === 'analyse') {
|
|
@@ -2,6 +2,6 @@ import { createApp } from 'vue'
|
|
|
2
2
|
import { createPinia } from 'pinia'
|
|
3
3
|
import { App } from '@/domain/components'
|
|
4
4
|
import { router } from '@/domain/router'
|
|
5
|
-
import './
|
|
5
|
+
import './shared/styles/theme.css'
|
|
6
6
|
|
|
7
7
|
createApp(App).use(createPinia()).use(router).mount('#app')
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
"push": "npm run commit && git push",
|
|
17
17
|
"commit": "git add . && npm run cz",
|
|
18
18
|
"up:vite": "pnpm up vite @vitejs/* vite-plugin-* -L",
|
|
19
|
-
"up:vue": "pnpm up vue vue-router vue-tsc -L"
|
|
19
|
+
"up:vue": "pnpm up vue vue-router vue-tsc -L",
|
|
20
|
+
"up:tailwind": "pnpm up tailwindcss @tailwindcss/* -L"
|
|
20
21
|
},
|
|
21
22
|
"dependencies": {
|
|
22
23
|
"axios": "1.7.9",
|
|
@@ -2,6 +2,6 @@ import { createApp } from 'vue'
|
|
|
2
2
|
import { createPinia } from 'pinia'
|
|
3
3
|
import { router } from '@/domain/router'
|
|
4
4
|
import { App } from '@/domain/components'
|
|
5
|
-
import './
|
|
5
|
+
import './shared/styles/theme.css'
|
|
6
6
|
|
|
7
7
|
createApp(App).use(createPinia()).use(router).mount('#app')
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
"cz": "cz",
|
|
18
18
|
"push": "npm run commit && git push",
|
|
19
19
|
"commit": "git add . && npm run cz",
|
|
20
|
-
"up:vite": "pnpm up vite @vitejs/* vite-plugin-* -L"
|
|
20
|
+
"up:vite": "pnpm up vite @vitejs/* vite-plugin-* -L",
|
|
21
|
+
"up:tailwind": "pnpm up tailwindcss @tailwindcss/* -L"
|
|
21
22
|
},
|
|
22
23
|
"dependencies": {
|
|
23
24
|
"axios": "1.7.9",
|
|
@@ -69,5 +70,8 @@
|
|
|
69
70
|
"commitizen": {
|
|
70
71
|
"path": "@commitlint/cz-commitlint"
|
|
71
72
|
}
|
|
73
|
+
},
|
|
74
|
+
"imports": {
|
|
75
|
+
"#theme.css": "./shared/styles/theme.css"
|
|
72
76
|
}
|
|
73
77
|
}
|
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
const globals = {
|
|
2
|
-
"AutoMount": true,
|
|
3
|
-
"AutoMountOptions": true,
|
|
4
|
-
"Browser": true,
|
|
5
|
-
"ContentScriptAnchoredOptions": true,
|
|
6
|
-
"ContentScriptAppendMode": true,
|
|
7
|
-
"ContentScriptContext": true,
|
|
8
|
-
"ContentScriptInlinePositioningOptions": true,
|
|
9
|
-
"ContentScriptModalPositioningOptions": true,
|
|
10
|
-
"ContentScriptOverlayAlignment": true,
|
|
11
|
-
"ContentScriptOverlayPositioningOptions": true,
|
|
12
|
-
"ContentScriptPositioningOptions": true,
|
|
13
|
-
"ContentScriptUi": true,
|
|
14
|
-
"ContentScriptUiOptions": true,
|
|
15
|
-
"IframeContentScriptUi": true,
|
|
16
|
-
"IframeContentScriptUiOptions": true,
|
|
17
|
-
"InjectScriptOptions": true,
|
|
18
|
-
"IntegratedContentScriptUi": true,
|
|
19
|
-
"IntegratedContentScriptUiOptions": true,
|
|
20
|
-
"InvalidMatchPattern": true,
|
|
21
|
-
"MatchPattern": true,
|
|
22
|
-
"MigrationError": true,
|
|
23
|
-
"ScriptPublicPath": true,
|
|
24
|
-
"ShadowRootContentScriptUi": true,
|
|
25
|
-
"ShadowRootContentScriptUiOptions": true,
|
|
26
|
-
"StopAutoMount": true,
|
|
27
|
-
"StorageArea": true,
|
|
28
|
-
"StorageAreaChanges": true,
|
|
29
|
-
"StorageItemKey": true,
|
|
30
|
-
"WxtAppConfig": true,
|
|
31
|
-
"WxtStorage": true,
|
|
32
|
-
"WxtStorageItem": true,
|
|
33
|
-
"WxtWindowEventMap": true,
|
|
34
|
-
"browser": true,
|
|
35
|
-
"createIframeUi": true,
|
|
36
|
-
"createIntegratedUi": true,
|
|
37
|
-
"createShadowRootUi": true,
|
|
38
|
-
"defineAppConfig": true,
|
|
39
|
-
"defineBackground": true,
|
|
40
|
-
"defineContentScript": true,
|
|
41
|
-
"defineUnlistedScript": true,
|
|
42
|
-
"defineWxtPlugin": true,
|
|
43
|
-
"fakeBrowser": true,
|
|
44
|
-
"injectScript": true,
|
|
45
|
-
"storage": true,
|
|
46
|
-
"useAppConfig": true
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export default {
|
|
50
|
-
name: "wxt/auto-imports",
|
|
51
|
-
languageOptions: {
|
|
52
|
-
globals,
|
|
53
|
-
/** @type {import('eslint').Linter.SourceType} */
|
|
54
|
-
sourceType: "module",
|
|
55
|
-
},
|
|
56
|
-
};
|
|
1
|
+
const globals = {
|
|
2
|
+
"AutoMount": true,
|
|
3
|
+
"AutoMountOptions": true,
|
|
4
|
+
"Browser": true,
|
|
5
|
+
"ContentScriptAnchoredOptions": true,
|
|
6
|
+
"ContentScriptAppendMode": true,
|
|
7
|
+
"ContentScriptContext": true,
|
|
8
|
+
"ContentScriptInlinePositioningOptions": true,
|
|
9
|
+
"ContentScriptModalPositioningOptions": true,
|
|
10
|
+
"ContentScriptOverlayAlignment": true,
|
|
11
|
+
"ContentScriptOverlayPositioningOptions": true,
|
|
12
|
+
"ContentScriptPositioningOptions": true,
|
|
13
|
+
"ContentScriptUi": true,
|
|
14
|
+
"ContentScriptUiOptions": true,
|
|
15
|
+
"IframeContentScriptUi": true,
|
|
16
|
+
"IframeContentScriptUiOptions": true,
|
|
17
|
+
"InjectScriptOptions": true,
|
|
18
|
+
"IntegratedContentScriptUi": true,
|
|
19
|
+
"IntegratedContentScriptUiOptions": true,
|
|
20
|
+
"InvalidMatchPattern": true,
|
|
21
|
+
"MatchPattern": true,
|
|
22
|
+
"MigrationError": true,
|
|
23
|
+
"ScriptPublicPath": true,
|
|
24
|
+
"ShadowRootContentScriptUi": true,
|
|
25
|
+
"ShadowRootContentScriptUiOptions": true,
|
|
26
|
+
"StopAutoMount": true,
|
|
27
|
+
"StorageArea": true,
|
|
28
|
+
"StorageAreaChanges": true,
|
|
29
|
+
"StorageItemKey": true,
|
|
30
|
+
"WxtAppConfig": true,
|
|
31
|
+
"WxtStorage": true,
|
|
32
|
+
"WxtStorageItem": true,
|
|
33
|
+
"WxtWindowEventMap": true,
|
|
34
|
+
"browser": true,
|
|
35
|
+
"createIframeUi": true,
|
|
36
|
+
"createIntegratedUi": true,
|
|
37
|
+
"createShadowRootUi": true,
|
|
38
|
+
"defineAppConfig": true,
|
|
39
|
+
"defineBackground": true,
|
|
40
|
+
"defineContentScript": true,
|
|
41
|
+
"defineUnlistedScript": true,
|
|
42
|
+
"defineWxtPlugin": true,
|
|
43
|
+
"fakeBrowser": true,
|
|
44
|
+
"injectScript": true,
|
|
45
|
+
"storage": true,
|
|
46
|
+
"useAppConfig": true
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export default {
|
|
50
|
+
name: "wxt/auto-imports",
|
|
51
|
+
languageOptions: {
|
|
52
|
+
globals,
|
|
53
|
+
/** @type {import('eslint').Linter.SourceType} */
|
|
54
|
+
sourceType: "module",
|
|
55
|
+
},
|
|
56
|
+
};
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ESNext",
|
|
4
|
-
"module": "ESNext",
|
|
5
|
-
"moduleResolution": "Bundler",
|
|
6
|
-
"noEmit": true,
|
|
7
|
-
"esModuleInterop": true,
|
|
8
|
-
"forceConsistentCasingInFileNames": true,
|
|
9
|
-
"resolveJsonModule": true,
|
|
10
|
-
"strict": true,
|
|
11
|
-
"skipLibCheck": true,
|
|
12
|
-
"paths": {
|
|
13
|
-
"@": [".."],
|
|
14
|
-
"@/*": ["../*"],
|
|
15
|
-
"~": [".."],
|
|
16
|
-
"~/*": ["../*"],
|
|
17
|
-
"@@": [".."],
|
|
18
|
-
"@@/*": ["../*"],
|
|
19
|
-
"~~": [".."],
|
|
20
|
-
"~~/*": ["../*"]
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
"include": [
|
|
24
|
-
"../**/*",
|
|
25
|
-
"./wxt.d.ts"
|
|
26
|
-
],
|
|
27
|
-
"exclude": ["../dist"]
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ESNext",
|
|
4
|
+
"module": "ESNext",
|
|
5
|
+
"moduleResolution": "Bundler",
|
|
6
|
+
"noEmit": true,
|
|
7
|
+
"esModuleInterop": true,
|
|
8
|
+
"forceConsistentCasingInFileNames": true,
|
|
9
|
+
"resolveJsonModule": true,
|
|
10
|
+
"strict": true,
|
|
11
|
+
"skipLibCheck": true,
|
|
12
|
+
"paths": {
|
|
13
|
+
"@": [".."],
|
|
14
|
+
"@/*": ["../*"],
|
|
15
|
+
"~": [".."],
|
|
16
|
+
"~/*": ["../*"],
|
|
17
|
+
"@@": [".."],
|
|
18
|
+
"@@/*": ["../*"],
|
|
19
|
+
"~~": [".."],
|
|
20
|
+
"~~/*": ["../*"]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"include": [
|
|
24
|
+
"../**/*",
|
|
25
|
+
"./wxt.d.ts"
|
|
26
|
+
],
|
|
27
|
+
"exclude": ["../dist"]
|
|
28
28
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
// Generated by wxt
|
|
2
|
-
interface ImportMetaEnv {
|
|
3
|
-
readonly MANIFEST_VERSION: 2 | 3;
|
|
4
|
-
readonly BROWSER: string;
|
|
5
|
-
readonly CHROME: boolean;
|
|
6
|
-
readonly FIREFOX: boolean;
|
|
7
|
-
readonly SAFARI: boolean;
|
|
8
|
-
readonly EDGE: boolean;
|
|
9
|
-
readonly OPERA: boolean;
|
|
10
|
-
readonly COMMAND: "build" | "serve";
|
|
11
|
-
readonly ENTRYPOINT: string;
|
|
12
|
-
}
|
|
13
|
-
interface ImportMeta {
|
|
14
|
-
readonly env: ImportMetaEnv
|
|
15
|
-
}
|
|
1
|
+
// Generated by wxt
|
|
2
|
+
interface ImportMetaEnv {
|
|
3
|
+
readonly MANIFEST_VERSION: 2 | 3;
|
|
4
|
+
readonly BROWSER: string;
|
|
5
|
+
readonly CHROME: boolean;
|
|
6
|
+
readonly FIREFOX: boolean;
|
|
7
|
+
readonly SAFARI: boolean;
|
|
8
|
+
readonly EDGE: boolean;
|
|
9
|
+
readonly OPERA: boolean;
|
|
10
|
+
readonly COMMAND: "build" | "serve";
|
|
11
|
+
readonly ENTRYPOINT: string;
|
|
12
|
+
}
|
|
13
|
+
interface ImportMeta {
|
|
14
|
+
readonly env: ImportMetaEnv
|
|
15
|
+
}
|