create-packer 1.43.4 → 1.43.5

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-packer",
3
- "version": "1.43.4",
3
+ "version": "1.43.5",
4
4
  "main": "index.js",
5
5
  "repository": "https://github.com/kevily/create-packer",
6
6
  "author": "1k <bug_zero@163.com>",
@@ -13,7 +13,7 @@ export default defineConfig(({ envMode, command }) => {
13
13
  return {
14
14
  html: {
15
15
  template: './index.html',
16
- title: 'Rspack + React + TS',
16
+ title: 'Rsbuild + React + TS',
17
17
  favicon: './shared/assets/react.ico'
18
18
  },
19
19
  source: {
@@ -1,104 +1,111 @@
1
- import eslint from '@eslint/js'
2
- import globals from 'globals'
3
- import tseslint from 'typescript-eslint'
4
- import importPlugin from 'eslint-plugin-import'
5
- import reactPlugin from 'eslint-plugin-react'
6
- import reactHooksPlugin from 'eslint-plugin-react-hooks'
7
-
8
- const scriptExtensions = ['js', 'jsx', 'mjs', 'cjs', 'ts', 'tsx']
9
- const files = scriptExtensions.map(ext => `**/*.${ext}`)
10
-
11
- export default tseslint.config([
12
- {
13
- ignores: ['**/node_modules/', '**/dist/', '**/.history/', '**/.vscode/', 'vite.config.ts.*']
14
- },
15
- eslint.configs.recommended,
16
- importPlugin.flatConfigs.recommended,
17
- tseslint.configs.recommended,
18
- {
19
- plugins: { reactPlugin, reactHooksPlugin },
20
- files,
21
- languageOptions: {
22
- ecmaVersion: 2018,
23
- sourceType: 'module',
24
- parserOptions: {
25
- ecmaFeatures: {
26
- jsx: true
27
- },
28
- useJSXTextNode: true
29
- },
30
- globals: {
31
- ...globals.browser,
32
- ...globals.node
33
- }
34
- },
35
- settings: {
36
- 'import/resolver': {
37
- typescript: true,
38
- node: true
39
- },
40
- react: {
41
- version: '18'
42
- }
43
- },
44
- rules: {
45
- 'import/export': 'off',
46
- 'import/namespace': 'off',
47
- 'import/default': 'off',
48
- 'import/no-named-as-default-member': 'off',
49
- 'import/no-named-as-default': 'off',
50
- 'import/order': [
51
- 'error',
52
- {
53
- groups: [
54
- 'builtin',
55
- 'external',
56
- 'internal',
57
- 'parent',
58
- 'sibling',
59
- 'index',
60
- 'object',
61
- 'type'
62
- ],
63
- pathGroups: [
64
- { pattern: 'react', group: 'external', position: 'before' },
65
- { pattern: 'react-dom/*', group: 'external', position: 'before' },
66
- { pattern: 'react-router', group: 'external', position: 'before' },
67
- { pattern: 'react-router-dom', group: 'external', position: 'before' }
68
- ],
69
- pathGroupsExcludedImportTypes: ['react', 'react-router', 'react-router-dom']
70
- }
71
- ],
72
- 'no-case-declarations': 'off',
73
- '@typescript-eslint/no-unused-expressions': 'off',
74
- '@typescript-eslint/no-empty-object-type': 'off',
75
- '@typescript-eslint/no-var-requires': 0,
76
- '@typescript-eslint/explicit-function-return-type': 'off',
77
- '@typescript-eslint/no-explicit-any': 0,
78
- '@typescript-eslint/no-non-null-assertion': 'off',
79
- '@typescript-eslint/no-inferrable-types': [
80
- 'warn',
81
- {
82
- ignoreParameters: true
83
- }
84
- ],
85
- '@typescript-eslint/no-unused-vars': [
86
- 'warn',
87
- {
88
- argsIgnorePattern: '^_'
89
- }
90
- ],
91
- '@typescript-eslint/member-delimiter-style': 0,
92
- '@typescript-eslint/class-name-casing': 0,
93
- '@typescript-eslint/explicit-module-boundary-types': 'off',
94
- '@typescript-eslint/ban-ts-comment': 'off',
95
- '@typescript-eslint/no-empty-interface': 'off',
96
- 'react/prop-types': 'off',
97
- 'react/no-find-dom-node': 'off',
98
- 'react-hooks/exhaustive-deps': 'off',
99
- 'react/display-name': 'off',
100
- 'react/react-in-jsx-scope': 'off',
101
- 'no-constant-condition': 'off'
102
- }
103
- }
104
- ])
1
+ import eslint from '@eslint/js'
2
+ import globals from 'globals'
3
+ import tseslint from 'typescript-eslint'
4
+ import importPlugin from 'eslint-plugin-import'
5
+ import reactPlugin from 'eslint-plugin-react'
6
+ import reactHooksPlugin from 'eslint-plugin-react-hooks'
7
+
8
+ const scriptExtensions = ['js', 'jsx', 'mjs', 'cjs', 'ts', 'tsx']
9
+ const files = scriptExtensions.map(ext => `**/*.${ext}`)
10
+
11
+ export default tseslint.config([
12
+ {
13
+ ignores: [
14
+ '**/node_modules/',
15
+ '**/dist/',
16
+ '**/.history/',
17
+ '**/.vscode/',
18
+ 'vite.config.ts.*',
19
+ 'mockUtils.ts'
20
+ ]
21
+ },
22
+ eslint.configs.recommended,
23
+ importPlugin.flatConfigs.recommended,
24
+ tseslint.configs.recommended,
25
+ {
26
+ plugins: { reactPlugin, reactHooksPlugin },
27
+ files,
28
+ languageOptions: {
29
+ ecmaVersion: 2018,
30
+ sourceType: 'module',
31
+ parserOptions: {
32
+ ecmaFeatures: {
33
+ jsx: true
34
+ },
35
+ useJSXTextNode: true
36
+ },
37
+ globals: {
38
+ ...globals.browser,
39
+ ...globals.node
40
+ }
41
+ },
42
+ settings: {
43
+ 'import/resolver': {
44
+ typescript: true,
45
+ node: true
46
+ },
47
+ react: {
48
+ version: '18'
49
+ }
50
+ },
51
+ rules: {
52
+ 'import/export': 'off',
53
+ 'import/namespace': 'off',
54
+ 'import/default': 'off',
55
+ 'import/no-named-as-default-member': 'off',
56
+ 'import/no-named-as-default': 'off',
57
+ 'import/order': [
58
+ 'error',
59
+ {
60
+ groups: [
61
+ 'builtin',
62
+ 'external',
63
+ 'internal',
64
+ 'parent',
65
+ 'sibling',
66
+ 'index',
67
+ 'object',
68
+ 'type'
69
+ ],
70
+ pathGroups: [
71
+ { pattern: 'react', group: 'external', position: 'before' },
72
+ { pattern: 'react-dom/*', group: 'external', position: 'before' },
73
+ { pattern: 'react-router', group: 'external', position: 'before' },
74
+ { pattern: 'react-router-dom', group: 'external', position: 'before' }
75
+ ],
76
+ pathGroupsExcludedImportTypes: ['react', 'react-router', 'react-router-dom']
77
+ }
78
+ ],
79
+ 'no-case-declarations': 'off',
80
+ '@typescript-eslint/no-unused-expressions': 'off',
81
+ '@typescript-eslint/no-empty-object-type': 'off',
82
+ '@typescript-eslint/no-var-requires': 0,
83
+ '@typescript-eslint/explicit-function-return-type': 'off',
84
+ '@typescript-eslint/no-explicit-any': 0,
85
+ '@typescript-eslint/no-non-null-assertion': 'off',
86
+ '@typescript-eslint/no-inferrable-types': [
87
+ 'warn',
88
+ {
89
+ ignoreParameters: true
90
+ }
91
+ ],
92
+ '@typescript-eslint/no-unused-vars': [
93
+ 'warn',
94
+ {
95
+ argsIgnorePattern: '^_'
96
+ }
97
+ ],
98
+ '@typescript-eslint/member-delimiter-style': 0,
99
+ '@typescript-eslint/class-name-casing': 0,
100
+ '@typescript-eslint/explicit-module-boundary-types': 'off',
101
+ '@typescript-eslint/ban-ts-comment': 'off',
102
+ '@typescript-eslint/no-empty-interface': 'off',
103
+ 'react/prop-types': 'off',
104
+ 'react/no-find-dom-node': 'off',
105
+ 'react-hooks/exhaustive-deps': 'off',
106
+ 'react/display-name': 'off',
107
+ 'react/react-in-jsx-scope': 'off',
108
+ 'no-constant-condition': 'off'
109
+ }
110
+ }
111
+ ])
@@ -1,110 +1,119 @@
1
- import eslint from '@eslint/js'
2
- import globals from 'globals'
3
- import tseslint from 'typescript-eslint'
4
- import importPlugin from 'eslint-plugin-import'
5
- import pluginVue from 'eslint-plugin-vue'
6
-
7
- const scriptExtensions = ['js', 'jsx', 'mjs', 'cjs', 'ts', 'tsx']
8
- const files = [...scriptExtensions.map(ext => `**/*.${ext}`), '**/*.vue']
9
-
10
- export default tseslint.config([
11
- { ignores: ['**/node_modules/', 'dist/', '.history/', '.vscode'] },
12
- eslint.configs.recommended,
13
- importPlugin.flatConfigs.recommended,
14
- tseslint.configs.recommended,
15
- pluginVue.configs['flat/recommended'],
16
- {
17
- files,
18
- languageOptions: {
19
- ecmaVersion: 2018,
20
- sourceType: 'module',
21
- parserOptions: {
22
- ecmaFeatures: {
23
- jsx: true
24
- },
25
- useJSXTextNode: true,
26
- parser: tseslint.parser,
27
- },
28
- globals: {
29
- ...globals.browser,
30
- ...globals.node
31
- }
32
- },
33
- settings: {
34
- 'import/resolver': {
35
- typescript: true,
36
- node: true
37
- }
38
- },
39
- rules: {
40
- 'import/export': 'off',
41
- 'import/namespace': 'off',
42
- 'import/default': 'off',
43
- 'import/no-named-as-default-member': 'off',
44
- 'import/no-named-as-default': 'off',
45
- 'import/order': [
46
- 'error',
47
- {
48
- groups: [
49
- 'builtin',
50
- 'external',
51
- 'internal',
52
- 'parent',
53
- 'sibling',
54
- 'index',
55
- 'object',
56
- 'type'
57
- ],
58
- pathGroups: [
59
- { pattern: 'vue', group: 'external', position: 'before' },
60
- { pattern: 'vue-router', group: 'external', position: 'before' }
61
- ],
62
- pathGroupsExcludedImportTypes: ['vue', 'vue-router']
63
- }
64
- ],
65
- 'no-case-declarations': 'off',
66
- '@typescript-eslint/no-unused-expressions': 'off',
67
- '@typescript-eslint/no-empty-object-type': 'off',
68
- '@typescript-eslint/no-var-requires': 0,
69
- '@typescript-eslint/explicit-function-return-type': 'off',
70
- '@typescript-eslint/no-explicit-any': 0,
71
- '@typescript-eslint/no-non-null-assertion': 'off',
72
- '@typescript-eslint/no-inferrable-types': [
73
- 'warn',
74
- {
75
- ignoreParameters: true
76
- }
77
- ],
78
- '@typescript-eslint/no-unused-vars': [
79
- 'warn',
80
- {
81
- argsIgnorePattern: '^_'
82
- }
83
- ],
84
- '@typescript-eslint/member-delimiter-style': 0,
85
- '@typescript-eslint/class-name-casing': 0,
86
- '@typescript-eslint/explicit-module-boundary-types': 'off',
87
- '@typescript-eslint/ban-ts-comment': 'off',
88
- '@typescript-eslint/no-empty-interface': 'off',
89
- 'vue/multi-word-component-names': 0,
90
- 'vue/html-indent': ['error', 4],
91
- 'vue/require-default-prop': 'off',
92
- 'vue/one-component-per-file': 'off',
93
- 'vue/html-self-closing': [
94
- 'error',
95
- {
96
- html: {
97
- void: 'always',
98
- normal: 'always',
99
- component: 'always'
100
- },
101
- svg: 'always',
102
- math: 'always'
103
- }
104
- ],
105
- 'vue/max-attributes-per-line': 'off',
106
- 'vue/singleline-html-element-content-newline': 'off',
107
- 'no-constant-condition': 'off'
108
- }
109
- }
110
- ])
1
+ import eslint from '@eslint/js'
2
+ import globals from 'globals'
3
+ import tseslint from 'typescript-eslint'
4
+ import importPlugin from 'eslint-plugin-import'
5
+ import pluginVue from 'eslint-plugin-vue'
6
+
7
+ const scriptExtensions = ['js', 'jsx', 'mjs', 'cjs', 'ts', 'tsx']
8
+ const files = [...scriptExtensions.map(ext => `**/*.${ext}`), '**/*.vue']
9
+
10
+ export default tseslint.config([
11
+ {
12
+ ignores: [
13
+ '**/node_modules/',
14
+ 'dist/',
15
+ '.history/',
16
+ '.vscode',
17
+ 'vite.config.ts.*',
18
+ 'mockUtils.ts'
19
+ ]
20
+ },
21
+ eslint.configs.recommended,
22
+ importPlugin.flatConfigs.recommended,
23
+ tseslint.configs.recommended,
24
+ pluginVue.configs['flat/recommended'],
25
+ {
26
+ files,
27
+ languageOptions: {
28
+ ecmaVersion: 2018,
29
+ sourceType: 'module',
30
+ parserOptions: {
31
+ ecmaFeatures: {
32
+ jsx: true
33
+ },
34
+ useJSXTextNode: true,
35
+ parser: tseslint.parser
36
+ },
37
+ globals: {
38
+ ...globals.browser,
39
+ ...globals.node
40
+ }
41
+ },
42
+ settings: {
43
+ 'import/resolver': {
44
+ typescript: true,
45
+ node: true
46
+ }
47
+ },
48
+ rules: {
49
+ 'import/export': 'off',
50
+ 'import/namespace': 'off',
51
+ 'import/default': 'off',
52
+ 'import/no-named-as-default-member': 'off',
53
+ 'import/no-named-as-default': 'off',
54
+ 'import/order': [
55
+ 'error',
56
+ {
57
+ groups: [
58
+ 'builtin',
59
+ 'external',
60
+ 'internal',
61
+ 'parent',
62
+ 'sibling',
63
+ 'index',
64
+ 'object',
65
+ 'type'
66
+ ],
67
+ pathGroups: [
68
+ { pattern: 'vue', group: 'external', position: 'before' },
69
+ { pattern: 'vue-router', group: 'external', position: 'before' }
70
+ ],
71
+ pathGroupsExcludedImportTypes: ['vue', 'vue-router']
72
+ }
73
+ ],
74
+ 'no-case-declarations': 'off',
75
+ '@typescript-eslint/no-unused-expressions': 'off',
76
+ '@typescript-eslint/no-empty-object-type': 'off',
77
+ '@typescript-eslint/no-var-requires': 0,
78
+ '@typescript-eslint/explicit-function-return-type': 'off',
79
+ '@typescript-eslint/no-explicit-any': 0,
80
+ '@typescript-eslint/no-non-null-assertion': 'off',
81
+ '@typescript-eslint/no-inferrable-types': [
82
+ 'warn',
83
+ {
84
+ ignoreParameters: true
85
+ }
86
+ ],
87
+ '@typescript-eslint/no-unused-vars': [
88
+ 'warn',
89
+ {
90
+ argsIgnorePattern: '^_'
91
+ }
92
+ ],
93
+ '@typescript-eslint/member-delimiter-style': 0,
94
+ '@typescript-eslint/class-name-casing': 0,
95
+ '@typescript-eslint/explicit-module-boundary-types': 'off',
96
+ '@typescript-eslint/ban-ts-comment': 'off',
97
+ '@typescript-eslint/no-empty-interface': 'off',
98
+ 'vue/multi-word-component-names': 0,
99
+ 'vue/html-indent': ['error', 4],
100
+ 'vue/require-default-prop': 'off',
101
+ 'vue/one-component-per-file': 'off',
102
+ 'vue/html-self-closing': [
103
+ 'error',
104
+ {
105
+ html: {
106
+ void: 'always',
107
+ normal: 'always',
108
+ component: 'always'
109
+ },
110
+ svg: 'always',
111
+ math: 'always'
112
+ }
113
+ ],
114
+ 'vue/max-attributes-per-line': 'off',
115
+ 'vue/singleline-html-element-content-newline': 'off',
116
+ 'no-constant-condition': 'off'
117
+ }
118
+ }
119
+ ])
@@ -1 +1,4 @@
1
- @import "tailwindcss";
1
+ @import "tailwindcss/theme.css" layer(theme);
2
+ @import "tailwindcss/utilities.css" layer(utilities);
3
+ @layer theme, base, components, utilities;
4
+
@@ -1,18 +1,15 @@
1
- /** @type {import('tailwindcss').Config} */
2
- module.exports = {
3
- content: [
4
- './index.html',
5
- './app.vue',
6
- './main.ts',
7
- './pages/**/*.{vue,ts,tsx,js,jsx}',
8
- './domain/**/*.{vue,ts,tsx,js,jsx}',
9
- './shared/**/*.{vue,ts,tsx,js,jsx}'
10
- ],
11
- theme: {
12
- extend: {}
13
- },
14
- plugins: [],
15
- corePlugins: {
16
- preflight: false
17
- }
18
- }
1
+ /** @type {import('tailwindcss').Config} */
2
+ module.exports = {
3
+ content: [
4
+ './index.html',
5
+ './app.vue',
6
+ './main.ts',
7
+ './pages/**/*.{vue,ts,tsx,js,jsx}',
8
+ './domain/**/*.{vue,ts,tsx,js,jsx}',
9
+ './shared/**/*.{vue,ts,tsx,js,jsx}'
10
+ ],
11
+ theme: {
12
+ extend: {}
13
+ },
14
+ plugins: []
15
+ }
@@ -6,6 +6,5 @@
6
6
  </head>
7
7
  <body>
8
8
  <div id="app"></div>
9
- <script type="module" src="/main.ts"></script>
10
9
  </body>
11
10
  </html>
@@ -23,7 +23,7 @@
23
23
  "axios": "1.7.9",
24
24
  "lodash-es": "4.17.21",
25
25
  "pinia": "2.3.1",
26
- "tailwindcss": "3.4.3",
26
+ "tailwindcss": "4.0.9",
27
27
  "type-fest": "4.33.0",
28
28
  "vue": "3.5.13",
29
29
  "vue-router": "4.5.0"
@@ -39,7 +39,7 @@
39
39
  "@rsbuild/plugin-type-check": "1.2.1",
40
40
  "@rsbuild/plugin-vue": "1.0.6",
41
41
  "@rsdoctor/rspack-plugin": "0.4.13",
42
- "@tailwindcss/postcss": "^4.0.9",
42
+ "@tailwindcss/postcss": "4.0.9",
43
43
  "@types/lodash-es": "4.17.12",
44
44
  "@types/mockjs": "1.0.10",
45
45
  "autoprefixer": "10.4.14",
@@ -11,7 +11,7 @@ export default defineConfig(({ envMode, command }) => {
11
11
  return {
12
12
  html: {
13
13
  template: './index.html',
14
- title: 'Vite + Vue + TS',
14
+ title: 'Rsbuild + Vue + TS',
15
15
  favicon: './shared/assets/vue.svg'
16
16
  },
17
17
  source: {
@@ -1,3 +1,4 @@
1
- @tailwind base;
2
- @tailwind components;
3
- @tailwind utilities;
1
+ @import "tailwindcss/theme.css" layer(theme);
2
+ @import "tailwindcss/utilities.css" layer(utilities);
3
+ @layer theme, base, components, utilities;
4
+
@@ -1,18 +1,15 @@
1
- /** @type {import('tailwindcss').Config} */
2
- module.exports = {
3
- content: [
4
- './index.html',
5
- './app.vue',
6
- './main.ts',
7
- './pages/**/*.{vue,ts,tsx,js,jsx}',
8
- './domain/**/*.{vue,ts,tsx,js,jsx}',
9
- './shared/**/*.{vue,ts,tsx,js,jsx}'
10
- ],
11
- theme: {
12
- extend: {}
13
- },
14
- plugins: [],
15
- corePlugins: {
16
- preflight: false
17
- }
18
- }
1
+ /** @type {import('tailwindcss').Config} */
2
+ module.exports = {
3
+ content: [
4
+ './index.html',
5
+ './app.vue',
6
+ './main.ts',
7
+ './pages/**/*.{vue,ts,tsx,js,jsx}',
8
+ './domain/**/*.{vue,ts,tsx,js,jsx}',
9
+ './shared/**/*.{vue,ts,tsx,js,jsx}'
10
+ ],
11
+ theme: {
12
+ extend: {}
13
+ },
14
+ plugins: []
15
+ }