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.
Files changed (60) hide show
  1. package/package.json +4 -4
  2. package/template/docusaurus/package.json +1 -1
  3. package/template/lib/react/.eslintrc +1 -1
  4. package/template/lib/react/.stylelintrc +9 -3
  5. package/template/lib/react/package.json +12 -12
  6. package/template/lib/ts/package.json +9 -9
  7. package/template/nest/package.json +6 -6
  8. package/template/web-app/next/.stylelintrc +9 -3
  9. package/template/web-app/next/package.json +8 -8
  10. package/template/web-app/react/.eslintrc +1 -1
  11. package/template/web-app/react/.stylelintrc +9 -3
  12. package/template/web-app/react/README.md +1 -1
  13. package/template/web-app/react/main.tsx +1 -1
  14. package/template/web-app/react/package.json +19 -18
  15. package/template/web-app/react/pages/index.tsx +1 -1
  16. package/template/web-app/react/tsconfig.json +5 -4
  17. package/template/web-app/react/vite.config.ts +6 -17
  18. package/template/web-app/react-webpack/.eslintrc +1 -1
  19. package/template/web-app/react-webpack/.stylelintrc +9 -3
  20. package/template/web-app/react-webpack/package.json +45 -45
  21. package/template/web-app/solid/.stylelintrc +9 -3
  22. package/template/web-app/solid/package.json +8 -8
  23. package/template/web-app/svelte/package.json +13 -13
  24. package/template/web-app/vue/.stylelintrc +9 -3
  25. package/template/web-app/vue/README.md +1 -1
  26. package/template/web-app/vue/package.json +20 -19
  27. package/template/web-app/vue/vite.config.ts +6 -17
  28. package/template/web-extension/.eslintrc +13 -2
  29. package/template/web-extension/.stylelintrc +9 -3
  30. package/template/web-extension/background/index.ts +0 -0
  31. package/template/web-extension/content_script/content.tsx +1 -1
  32. package/template/web-extension/defineManifest.ts +6 -1
  33. package/template/web-extension/package.json +21 -16
  34. package/template/web-extension/pnpm-lock.yaml +6220 -0
  35. package/template/web-extension/popup/popup.container.tsx +1 -1
  36. package/template/web-extension/shared/constant/index.ts +0 -0
  37. package/template/web-extension/shared/message/backgroundMessage.ts +11 -0
  38. package/template/web-extension/shared/message/contentMeesage.ts +15 -0
  39. package/template/web-extension/shared/message/index.ts +3 -0
  40. package/template/web-extension/shared/message/popupMeesage.ts +12 -0
  41. package/template/web-extension/shared/service/tools/base.ts +33 -0
  42. package/template/web-extension/shared/service/tools/createRequestActions.ts +58 -0
  43. package/template/web-extension/shared/service/tools/createService.ts +46 -0
  44. package/template/web-extension/shared/service/tools/createServiceHooks.ts +65 -0
  45. package/template/web-extension/shared/service/tools/index.ts +4 -0
  46. package/template/web-extension/shared/service/types.ts +29 -11
  47. package/template/web-extension/shared/tools/index.ts +1 -0
  48. package/template/web-extension/shared/tools/message.ts +80 -0
  49. package/template/web-extension/tsconfig.json +1 -0
  50. package/template/web-extension/vite.config.ts +12 -17
  51. package/template/workspace/pnpm/packages/test/package.json +1 -1
  52. package/template/web-extension/content_script/content.spec.tsx +0 -15
  53. package/template/web-extension/shared/service/tools.ts +0 -132
  54. package/template/workspace/nx/node_modules/.pnpm/minipass-fetch@3.0.3/node_modules/minipass-sized/.gitignore +0 -22
  55. package/template/workspace/nx/node_modules/.pnpm/minipass-sized@1.0.3/node_modules/minipass-sized/.gitignore +0 -22
  56. package/template/workspace/nx/node_modules/.pnpm/node_modules/minipass-sized/.gitignore +0 -22
  57. package/template/workspace/nx/node_modules/.pnpm/node_modules/npm-normalize-package-bin/.gitignore +0 -24
  58. package/template/workspace/nx/node_modules/.pnpm/npm-bundled@1.1.2/node_modules/npm-normalize-package-bin/.gitignore +0 -24
  59. package/template/workspace/nx/node_modules/.pnpm/npm-normalize-package-bin@1.0.1/node_modules/npm-normalize-package-bin/.gitignore +0 -24
  60. 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.23",
32
- "postcss-import": "15.1.0",
33
- "postcss-nesting": "11.2.2",
34
- "prettier": "2.8.8",
35
- "stylelint": "15.7.0",
36
- "stylelint-config-standard": "33.0.0",
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.3.5",
40
- "vite-plugin-solid": "2.7.0"
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": "2.1.0",
26
- "@sveltejs/kit": "1.25.0",
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": "6.17.0",
29
- "@typescript-eslint/parser": "6.17.0",
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.50.0",
33
- "eslint-config-prettier": "9.0.0",
34
- "eslint-plugin-import": "2.27.5",
35
- "eslint-plugin-svelte": "2.33.2",
36
- "postcss": "8.4.30",
37
- "postcss-import": "15.1.0",
38
- "postcss-nesting": "12.0.1",
39
- "prettier": "3.0.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": "4.4.9"
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
  }
@@ -1,7 +1,7 @@
1
1
  ## Vite + Vue3.x + Typescript
2
2
 
3
3
  ### Features
4
- - Vite 3.x
4
+ - Vite 4.x
5
5
  - Vue 3.x
6
6
  - Typescript 4.x
7
7
  - vue-router 4.x
@@ -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": "6.17.0",
34
- "@typescript-eslint/parser": "6.17.0",
35
- "@vitejs/plugin-vue": "4.2.3",
36
- "@vitejs/plugin-vue-jsx": "3.0.1",
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.39.0",
41
- "eslint-import-resolver-typescript": "3.5.5",
42
- "eslint-plugin-import": "2.27.5",
43
- "eslint-plugin-prettier": "5.0.0",
44
- "eslint-plugin-vue": "9.13.0",
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.23",
49
- "postcss-import": "15.1.0",
50
- "postcss-nesting": "11.2.2",
51
- "prettier": "3.0.0",
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": "15.7.0",
54
- "stylelint-config-standard": "33.0.0",
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.3.8",
58
- "vite-plugin-checker": "0.6.1",
59
- "vite-plugin-mock-dev-server": "1.2.1",
60
- "vite-svg-loader": "4.0.0",
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 checker from 'vite-plugin-checker'
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
- checker({
20
- typescript: true,
21
- eslint: {
22
- // for example, lint .ts and .tsx
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": "warn",
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
@@ -1,5 +1,5 @@
1
1
  import './content.css'
2
2
 
3
3
  export default function Home() {
4
- return <div>content_script</div>
4
+ return <div>dfdsf</div>
5
5
  }
@@ -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
- "@types/chrome": "^0.0.244",
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": "6.17.0",
42
- "@typescript-eslint/parser": "6.17.0",
43
- "@vitejs/plugin-react": "4.0.0",
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.39.0",
48
- "eslint-import-resolver-typescript": "3.5.5",
49
- "eslint-plugin-import": "2.27.5",
50
- "eslint-plugin-prettier": "5.0.0",
51
- "eslint-plugin-react": "7.32.2",
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.23",
56
+ "postcss": "8.4.31",
56
57
  "postcss-import": "15.1.0",
57
58
  "postcss-nesting": "11.2.2",
58
- "prettier": "3.0.0",
59
- "stylelint": "15.7.0",
60
- "stylelint-config-standard": "33.0.0",
61
- "tailwindcss": "3.3.1",
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.3.1",
64
- "vite-plugin-checker": "0.6.1"
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": {