create-packer 1.26.3 → 1.27.1
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 +4 -4
- package/template/docusaurus/package.json +1 -1
- package/template/lib/react/.eslintrc +1 -1
- package/template/lib/react/.stylelintrc +9 -3
- package/template/lib/react/package.json +12 -12
- package/template/lib/ts/package.json +9 -9
- package/template/nest/package.json +6 -6
- package/template/web-app/next/.stylelintrc +9 -3
- package/template/web-app/next/package.json +8 -8
- package/template/web-app/react/.eslintrc +1 -1
- package/template/web-app/react/.stylelintrc +9 -3
- package/template/web-app/react/README.md +1 -1
- package/template/web-app/react/main.tsx +1 -1
- package/template/web-app/react/package.json +19 -18
- package/template/web-app/react/pages/index.tsx +1 -1
- package/template/web-app/react/tsconfig.json +5 -4
- package/template/web-app/react/vite.config.ts +6 -17
- package/template/web-app/react-webpack/.eslintrc +1 -1
- package/template/web-app/react-webpack/.stylelintrc +9 -3
- package/template/web-app/react-webpack/package.json +45 -45
- package/template/web-app/solid/.stylelintrc +9 -3
- package/template/web-app/solid/package.json +8 -8
- package/template/web-app/svelte/package.json +13 -13
- package/template/web-app/vue/.stylelintrc +9 -3
- package/template/web-app/vue/README.md +1 -1
- package/template/web-app/vue/package.json +20 -19
- package/template/web-app/vue/vite.config.ts +6 -17
- package/template/web-extension/.eslintrc +13 -2
- package/template/web-extension/.stylelintrc +9 -3
- package/template/web-extension/background/index.ts +0 -0
- package/template/web-extension/content_script/content.tsx +1 -1
- package/template/web-extension/defineManifest.ts +6 -1
- package/template/web-extension/package.json +21 -16
- package/template/web-extension/pnpm-lock.yaml +6220 -0
- package/template/web-extension/popup/popup.container.tsx +1 -1
- package/template/web-extension/shared/constant/index.ts +0 -0
- package/template/web-extension/shared/message/backgroundMessage.ts +11 -0
- package/template/web-extension/shared/message/contentMeesage.ts +15 -0
- package/template/web-extension/shared/message/index.ts +3 -0
- package/template/web-extension/shared/message/popupMeesage.ts +12 -0
- package/template/web-extension/shared/service/tools/base.ts +33 -0
- package/template/web-extension/shared/service/tools/createRequestActions.ts +58 -0
- package/template/web-extension/shared/service/tools/createService.ts +46 -0
- package/template/web-extension/shared/service/tools/createServiceHooks.ts +65 -0
- package/template/web-extension/shared/service/tools/index.ts +4 -0
- package/template/web-extension/shared/service/types.ts +29 -11
- package/template/web-extension/shared/tools/index.ts +1 -0
- package/template/web-extension/shared/tools/message.ts +80 -0
- package/template/web-extension/tsconfig.json +1 -0
- package/template/web-extension/vite.config.ts +12 -17
- package/template/workspace/pnpm/packages/test/package.json +1 -1
- package/template/web-extension/content_script/content.spec.tsx +0 -15
- package/template/web-extension/shared/service/tools.ts +0 -132
- package/template/workspace/nx/node_modules/.pnpm/minipass-fetch@3.0.3/node_modules/minipass-sized/.gitignore +0 -22
- package/template/workspace/nx/node_modules/.pnpm/minipass-sized@1.0.3/node_modules/minipass-sized/.gitignore +0 -22
- package/template/workspace/nx/node_modules/.pnpm/node_modules/minipass-sized/.gitignore +0 -22
- package/template/workspace/nx/node_modules/.pnpm/node_modules/npm-normalize-package-bin/.gitignore +0 -24
- package/template/workspace/nx/node_modules/.pnpm/npm-bundled@1.1.2/node_modules/npm-normalize-package-bin/.gitignore +0 -24
- package/template/workspace/nx/node_modules/.pnpm/npm-normalize-package-bin@1.0.1/node_modules/npm-normalize-package-bin/.gitignore +0 -24
- package/template/workspace/nx/node_modules/.pnpm/npm-packlist@5.1.1/node_modules/npm-normalize-package-bin/.gitignore +0 -24
|
@@ -28,16 +28,16 @@
|
|
|
28
28
|
"commitizen": "4.3.0",
|
|
29
29
|
"cssnano": "6.0.0",
|
|
30
30
|
"inquirer": "8.0.0",
|
|
31
|
-
"postcss": "8.4.
|
|
32
|
-
"postcss-import": "
|
|
33
|
-
"postcss-nesting": "
|
|
34
|
-
"prettier": "2.
|
|
35
|
-
"stylelint": "
|
|
36
|
-
"stylelint-config-standard": "
|
|
31
|
+
"postcss": "8.4.35",
|
|
32
|
+
"postcss-import": "16.0.1",
|
|
33
|
+
"postcss-nesting": "12.0.3",
|
|
34
|
+
"prettier": "3.2.5",
|
|
35
|
+
"stylelint": "16.2.1",
|
|
36
|
+
"stylelint-config-standard-scss": "13.0.0",
|
|
37
37
|
"tailwindcss": "3.3.2",
|
|
38
38
|
"typescript": "5.3.3",
|
|
39
|
-
"vite": "4.
|
|
40
|
-
"vite-plugin-solid": "2.
|
|
39
|
+
"vite": "4.5.2",
|
|
40
|
+
"vite-plugin-solid": "2.10.1"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@solidjs/router": "0.8.2",
|
|
@@ -22,27 +22,27 @@
|
|
|
22
22
|
"@commitlint/cli": "17.7.1",
|
|
23
23
|
"@commitlint/config-conventional": "17.7.0",
|
|
24
24
|
"@commitlint/cz-commitlint": "17.7.1",
|
|
25
|
-
"@sveltejs/adapter-auto": "
|
|
26
|
-
"@sveltejs/kit": "
|
|
25
|
+
"@sveltejs/adapter-auto": "3.1.1",
|
|
26
|
+
"@sveltejs/kit": "2.5.0",
|
|
27
27
|
"@types/lodash-es": "4.17.9",
|
|
28
|
-
"@typescript-eslint/eslint-plugin": "
|
|
29
|
-
"@typescript-eslint/parser": "
|
|
28
|
+
"@typescript-eslint/eslint-plugin": "7.0.2",
|
|
29
|
+
"@typescript-eslint/parser": "7.0.2",
|
|
30
30
|
"commitizen": "4.3.0",
|
|
31
31
|
"cssnano": "6.0.1",
|
|
32
|
-
"eslint": "8.
|
|
33
|
-
"eslint-config-prettier": "9.
|
|
34
|
-
"eslint-plugin-import": "2.
|
|
35
|
-
"eslint-plugin-svelte": "2.
|
|
36
|
-
"postcss": "8.4.
|
|
37
|
-
"postcss-import": "
|
|
38
|
-
"postcss-nesting": "12.0.
|
|
39
|
-
"prettier": "3.
|
|
32
|
+
"eslint": "8.56.0",
|
|
33
|
+
"eslint-config-prettier": "9.1.0",
|
|
34
|
+
"eslint-plugin-import": "2.29.1",
|
|
35
|
+
"eslint-plugin-svelte": "2.35.1",
|
|
36
|
+
"postcss": "8.4.35",
|
|
37
|
+
"postcss-import": "16.0.1",
|
|
38
|
+
"postcss-nesting": "12.0.3",
|
|
39
|
+
"prettier": "3.2.5",
|
|
40
40
|
"prettier-plugin-svelte": "3.0.3",
|
|
41
41
|
"rollup-plugin-visualizer": "5.9.2",
|
|
42
42
|
"svelte-check": "3.5.2",
|
|
43
43
|
"tslib": "2.6.2",
|
|
44
44
|
"typescript": "5.3.3",
|
|
45
|
-
"vite": "
|
|
45
|
+
"vite": "5.1.3"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"lodash-es": "4.17.21",
|
|
@@ -1,23 +1,29 @@
|
|
|
1
1
|
{
|
|
2
|
-
"extends": "stylelint-config-standard",
|
|
2
|
+
"extends": "stylelint-config-standard-scss",
|
|
3
3
|
"rules": {
|
|
4
4
|
"comment-empty-line-before": "never",
|
|
5
5
|
"no-empty-source": null,
|
|
6
6
|
"alpha-value-notation": null,
|
|
7
7
|
"color-function-notation": null,
|
|
8
|
-
"no-descending-specificity": null,
|
|
9
8
|
"at-rule-no-unknown": [
|
|
10
9
|
true,
|
|
11
10
|
{
|
|
12
11
|
"ignoreAtRules": ["tailwind", "apply", "use"]
|
|
13
12
|
}
|
|
14
13
|
],
|
|
14
|
+
"declaration-block-no-redundant-longhand-properties": null,
|
|
15
15
|
"selector-pseudo-class-no-unknown": [
|
|
16
16
|
true,
|
|
17
17
|
{
|
|
18
18
|
"ignorePseudoClasses": ["global"]
|
|
19
19
|
}
|
|
20
20
|
],
|
|
21
|
-
"selector-class-pattern": null
|
|
21
|
+
"selector-class-pattern": null,
|
|
22
|
+
"scss/at-rule-no-unknown": [
|
|
23
|
+
true,
|
|
24
|
+
{
|
|
25
|
+
"ignoreAtRules": ["tailwind", "a pply"]
|
|
26
|
+
}
|
|
27
|
+
]
|
|
22
28
|
}
|
|
23
29
|
}
|
|
@@ -28,36 +28,37 @@
|
|
|
28
28
|
"@commitlint/cli": "17.6.1",
|
|
29
29
|
"@commitlint/config-conventional": "17.6.1",
|
|
30
30
|
"@commitlint/cz-commitlint": "17.5.0",
|
|
31
|
+
"@nabla/vite-plugin-eslint": "2.0.2",
|
|
31
32
|
"@types/lodash-es": "4.17.7",
|
|
32
33
|
"@types/mockjs": "1.0.7",
|
|
33
|
-
"@typescript-eslint/eslint-plugin": "
|
|
34
|
-
"@typescript-eslint/parser": "
|
|
35
|
-
"@vitejs/plugin-vue": "4.2
|
|
36
|
-
"@vitejs/plugin-vue-jsx": "3.0
|
|
34
|
+
"@typescript-eslint/eslint-plugin": "7.0.2",
|
|
35
|
+
"@typescript-eslint/parser": "7.0.2",
|
|
36
|
+
"@vitejs/plugin-vue": "4.6.2",
|
|
37
|
+
"@vitejs/plugin-vue-jsx": "3.1.0",
|
|
37
38
|
"autoprefixer": "10.4.14",
|
|
38
39
|
"commitizen": "4.3.0",
|
|
39
40
|
"cssnano": "6.0.0",
|
|
40
|
-
"eslint": "8.
|
|
41
|
-
"eslint-import-resolver-typescript": "3.
|
|
42
|
-
"eslint-plugin-import": "2.
|
|
43
|
-
"eslint-plugin-prettier": "5.
|
|
44
|
-
"eslint-plugin-vue": "9.
|
|
41
|
+
"eslint": "8.56.0",
|
|
42
|
+
"eslint-import-resolver-typescript": "3.6.1",
|
|
43
|
+
"eslint-plugin-import": "2.29.1",
|
|
44
|
+
"eslint-plugin-prettier": "5.1.3",
|
|
45
|
+
"eslint-plugin-vue": "9.21.1",
|
|
45
46
|
"husky": "8.0.3",
|
|
46
47
|
"inquirer": "8",
|
|
47
48
|
"mockjs": "1.1.0",
|
|
48
|
-
"postcss": "8.4.
|
|
49
|
-
"postcss-import": "
|
|
50
|
-
"postcss-nesting": "
|
|
51
|
-
"prettier": "3.
|
|
49
|
+
"postcss": "8.4.35",
|
|
50
|
+
"postcss-import": "16.0.1",
|
|
51
|
+
"postcss-nesting": "12.0.3",
|
|
52
|
+
"prettier": "3.2.5",
|
|
52
53
|
"rollup-plugin-visualizer": "5.9.2",
|
|
53
|
-
"stylelint": "
|
|
54
|
-
"stylelint-config-standard": "
|
|
54
|
+
"stylelint": "16.2.1",
|
|
55
|
+
"stylelint-config-standard-scss": "13.0.0",
|
|
55
56
|
"tailwindcss": "3.3.1",
|
|
56
57
|
"typescript": "5.3.3",
|
|
57
|
-
"vite": "4.
|
|
58
|
-
"vite-plugin-
|
|
59
|
-
"vite-plugin-
|
|
60
|
-
"vite-svg-loader": "
|
|
58
|
+
"vite": "4.5.2",
|
|
59
|
+
"vite-plugin-mock-dev-server": "1.4.7",
|
|
60
|
+
"vite-plugin-stylelint": "5.3.1",
|
|
61
|
+
"vite-svg-loader": "5.1.0",
|
|
61
62
|
"vue-tsc": "1.6.5"
|
|
62
63
|
},
|
|
63
64
|
"config": {
|
|
@@ -3,7 +3,8 @@ import vue from '@vitejs/plugin-vue'
|
|
|
3
3
|
import vueJsx from '@vitejs/plugin-vue-jsx'
|
|
4
4
|
import svgLoader from 'vite-svg-loader'
|
|
5
5
|
import mockDevServer from 'vite-plugin-mock-dev-server'
|
|
6
|
-
import
|
|
6
|
+
import stylelint from 'vite-plugin-stylelint'
|
|
7
|
+
import eslintPlugin from '@nabla/vite-plugin-eslint'
|
|
7
8
|
import { visualizer } from 'rollup-plugin-visualizer'
|
|
8
9
|
import { includes } from 'lodash-es'
|
|
9
10
|
import { createChunks } from './scripts'
|
|
@@ -16,22 +17,10 @@ export default defineConfig(({ mode }) => {
|
|
|
16
17
|
vueJsx({
|
|
17
18
|
enableObjectSlots: false
|
|
18
19
|
}),
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
lintCommand: 'eslint **/*.{ts,tsx,js,jsx,vue}',
|
|
24
|
-
dev: {
|
|
25
|
-
logLevel: ['error']
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
stylelint: {
|
|
29
|
-
lintCommand: 'stylelint **/*.{css,scss,less,vue}',
|
|
30
|
-
dev: {
|
|
31
|
-
logLevel: ['error']
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
enableBuild: false
|
|
20
|
+
stylelint({ cache: false, include: ['**/*.{css,scss,sass,less,styl,vue,svelte}'] }),
|
|
21
|
+
eslintPlugin({
|
|
22
|
+
eslintOptions: { cache: false, useEslintrc: true },
|
|
23
|
+
shouldLint: path => /\/[^?]*\.(vue|svelte|m?[jt]sx?)$/.test(path)
|
|
35
24
|
}),
|
|
36
25
|
vue({
|
|
37
26
|
script: {
|
|
@@ -36,6 +36,8 @@
|
|
|
36
36
|
"rules": {
|
|
37
37
|
"import/export": "off",
|
|
38
38
|
"import/namespace": "off",
|
|
39
|
+
"import/default": "off",
|
|
40
|
+
"import/no-named-as-default-member": "off",
|
|
39
41
|
"import/order": [
|
|
40
42
|
"error",
|
|
41
43
|
{
|
|
@@ -48,9 +50,18 @@
|
|
|
48
50
|
"index",
|
|
49
51
|
"object",
|
|
50
52
|
"type"
|
|
51
|
-
]
|
|
53
|
+
],
|
|
54
|
+
"pathGroups": [
|
|
55
|
+
{ "pattern": "react", "group": "external", "position": "before" },
|
|
56
|
+
{ "pattern": "react-dom/*", "group": "external", "position": "before" },
|
|
57
|
+
{ "pattern": "react-router", "group": "external", "position": "before" },
|
|
58
|
+
{ "pattern": "react-router-dom", "group": "external", "position": "before" },
|
|
59
|
+
{ "pattern": "@jz/*", "group": "external", "position": "after" }
|
|
60
|
+
],
|
|
61
|
+
"pathGroupsExcludedImportTypes": ["react", "react-router", "react-router-dom"]
|
|
52
62
|
}
|
|
53
63
|
],
|
|
64
|
+
"no-case-declarations": "off",
|
|
54
65
|
"@typescript-eslint/no-var-requires": 0,
|
|
55
66
|
"@typescript-eslint/explicit-function-return-type": "off",
|
|
56
67
|
"@typescript-eslint/no-explicit-any": 0,
|
|
@@ -69,7 +80,7 @@
|
|
|
69
80
|
"@typescript-eslint/no-empty-interface": "off",
|
|
70
81
|
"react/prop-types": "off",
|
|
71
82
|
"react/no-find-dom-node": "off",
|
|
72
|
-
"react-hooks/exhaustive-deps": "
|
|
83
|
+
"react-hooks/exhaustive-deps": "off",
|
|
73
84
|
"react/display-name": "off",
|
|
74
85
|
"react/react-in-jsx-scope": "off",
|
|
75
86
|
"prettier/prettier": [
|
|
@@ -1,23 +1,29 @@
|
|
|
1
1
|
{
|
|
2
|
-
"extends": "stylelint-config-standard",
|
|
2
|
+
"extends": "stylelint-config-standard-scss",
|
|
3
3
|
"rules": {
|
|
4
4
|
"comment-empty-line-before": "never",
|
|
5
5
|
"no-empty-source": null,
|
|
6
6
|
"alpha-value-notation": null,
|
|
7
7
|
"color-function-notation": null,
|
|
8
|
-
"no-descending-specificity": null,
|
|
9
8
|
"at-rule-no-unknown": [
|
|
10
9
|
true,
|
|
11
10
|
{
|
|
12
11
|
"ignoreAtRules": ["tailwind", "apply", "use"]
|
|
13
12
|
}
|
|
14
13
|
],
|
|
14
|
+
"declaration-block-no-redundant-longhand-properties": null,
|
|
15
15
|
"selector-pseudo-class-no-unknown": [
|
|
16
16
|
true,
|
|
17
17
|
{
|
|
18
18
|
"ignorePseudoClasses": ["global"]
|
|
19
19
|
}
|
|
20
20
|
],
|
|
21
|
-
"selector-class-pattern": null
|
|
21
|
+
"selector-class-pattern": null,
|
|
22
|
+
"scss/at-rule-no-unknown": [
|
|
23
|
+
true,
|
|
24
|
+
{
|
|
25
|
+
"ignoreAtRules": ["tailwind", "apply"]
|
|
26
|
+
}
|
|
27
|
+
]
|
|
22
28
|
}
|
|
23
29
|
}
|
|
File without changes
|
|
@@ -5,6 +5,7 @@ interface argType {
|
|
|
5
5
|
mode: string
|
|
6
6
|
}
|
|
7
7
|
export default function ({ mode }: argType) {
|
|
8
|
+
const host_permissions = []
|
|
8
9
|
return defineManifest({
|
|
9
10
|
manifest_version: 3,
|
|
10
11
|
name: 'Hello Extensions',
|
|
@@ -14,6 +15,7 @@ export default function ({ mode }: argType) {
|
|
|
14
15
|
default_popup: 'popup/popup.html',
|
|
15
16
|
default_icon: 'vite.svg'
|
|
16
17
|
},
|
|
18
|
+
host_permissions,
|
|
17
19
|
content_scripts: [
|
|
18
20
|
{
|
|
19
21
|
js: ['content_script/index.tsx'],
|
|
@@ -22,6 +24,9 @@ export default function ({ mode }: argType) {
|
|
|
22
24
|
'https://developer.chrome.com/docs/webstore/*'
|
|
23
25
|
]
|
|
24
26
|
}
|
|
25
|
-
]
|
|
27
|
+
],
|
|
28
|
+
background: {
|
|
29
|
+
service_worker: 'background/index.ts'
|
|
30
|
+
}
|
|
26
31
|
})
|
|
27
32
|
}
|
|
@@ -32,36 +32,41 @@
|
|
|
32
32
|
"@commitlint/config-conventional": "17.6.1",
|
|
33
33
|
"@commitlint/cz-commitlint": "17.5.0",
|
|
34
34
|
"@crxjs/vite-plugin": "2.0.0-beta.18",
|
|
35
|
-
"@
|
|
35
|
+
"@nabla/vite-plugin-eslint": "2.0.2",
|
|
36
|
+
"@types/chrome": "0.0.254",
|
|
36
37
|
"@types/lodash-es": "4.17.7",
|
|
37
38
|
"@types/node": "18.16.0",
|
|
38
39
|
"@types/qs": "6.9.7",
|
|
39
40
|
"@types/react": "18.0.38",
|
|
40
41
|
"@types/react-dom": "18.0.11",
|
|
41
|
-
"@typescript-eslint/eslint-plugin": "
|
|
42
|
-
"@typescript-eslint/parser": "
|
|
43
|
-
"@vitejs/plugin-react": "4.
|
|
42
|
+
"@typescript-eslint/eslint-plugin": "7.0.2",
|
|
43
|
+
"@typescript-eslint/parser": "7.0.2",
|
|
44
|
+
"@vitejs/plugin-react": "4.2.1",
|
|
44
45
|
"autoprefixer": "10.4.14",
|
|
45
46
|
"commitizen": "4.3.0",
|
|
46
47
|
"cssnano": "6.0.0",
|
|
47
|
-
"eslint": "8.
|
|
48
|
-
"eslint-import-resolver-typescript": "3.
|
|
49
|
-
"eslint-plugin-import": "2.
|
|
50
|
-
"eslint-plugin-prettier": "5.
|
|
51
|
-
"eslint-plugin-react": "7.
|
|
48
|
+
"eslint": "8.56.0",
|
|
49
|
+
"eslint-import-resolver-typescript": "3.6.1",
|
|
50
|
+
"eslint-plugin-import": "2.29.1",
|
|
51
|
+
"eslint-plugin-prettier": "5.1.3",
|
|
52
|
+
"eslint-plugin-react": "7.33.2",
|
|
52
53
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
53
54
|
"husky": "8.0.3",
|
|
54
55
|
"inquirer": "8",
|
|
55
|
-
"postcss": "8.4.
|
|
56
|
+
"postcss": "8.4.31",
|
|
56
57
|
"postcss-import": "15.1.0",
|
|
57
58
|
"postcss-nesting": "11.2.2",
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
59
|
+
"postcss-scss": "4.0.9",
|
|
60
|
+
"prettier": "3.2.5",
|
|
61
|
+
"rimraf": "5.0.1",
|
|
62
|
+
"sass": "1.63.4",
|
|
63
|
+
"stylelint": "16.2.1",
|
|
64
|
+
"stylelint-config-standard-scss": "13.0.0",
|
|
65
|
+
"tailwindcss": "3.3.7",
|
|
62
66
|
"typescript": "5.3.3",
|
|
63
|
-
"vite": "4.
|
|
64
|
-
"vite-plugin-
|
|
67
|
+
"vite": "4.5.2",
|
|
68
|
+
"vite-plugin-stylelint": "5.3.1",
|
|
69
|
+
"vite-plugin-svgr": "4.2.0"
|
|
65
70
|
},
|
|
66
71
|
"config": {
|
|
67
72
|
"commitizen": {
|