create-packer 1.32.1 → 1.32.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-packer",
3
- "version": "1.32.1",
3
+ "version": "1.32.2",
4
4
  "main": "index.js",
5
5
  "repository": "https://github.com/kevily/create-packer",
6
6
  "author": "1k <bug_zero@163.com>",
@@ -7,7 +7,7 @@
7
7
  - Typescript
8
8
  - react-router
9
9
  - Zustand
10
- - Tailwindcss
10
+ - styled-components
11
11
  - Eslint
12
12
  - Prettier
13
13
  - axios
@@ -36,6 +36,7 @@
36
36
  "@commitlint/cli": "17.6.1",
37
37
  "@commitlint/config-conventional": "17.6.1",
38
38
  "@commitlint/cz-commitlint": "17.5.0",
39
+ "@faker-js/faker": "8.4.1",
39
40
  "@rollup/plugin-eslint": "9.0.5",
40
41
  "@types/lodash-es": "4.17.7",
41
42
  "@types/mockjs": "1.0.7",
@@ -57,7 +58,6 @@
57
58
  "eslint-plugin-react-hooks": "4.6.0",
58
59
  "husky": "8.0.3",
59
60
  "inquirer": "^8.1.2",
60
- "mockjs": "1.1.0",
61
61
  "postcss": "8.4.35",
62
62
  "postcss-import": "16.0.1",
63
63
  "postcss-nesting": "12.0.3",
@@ -1,16 +1,19 @@
1
- import Mock from 'mockjs'
1
+ import { faker } from '@faker-js/faker'
2
2
  import { defineMock } from '@/mockUtils'
3
3
  import { API } from '@/shared/service'
4
+
4
5
  export default defineMock([
5
6
  {
6
7
  url: API.HOME_DATA,
7
- body: Mock.mock({
8
- 'data|10': [
9
- {
10
- name: '@string',
11
- age: '@natural'
12
- }
13
- ]
14
- })
8
+ body: faker.helpers.multiple(
9
+ () => ({
10
+ id: faker.string.uuid(),
11
+ name: faker.person.fullName(),
12
+ age: faker.number.int({ max: 110 })
13
+ }),
14
+ {
15
+ count: 10
16
+ }
17
+ )
15
18
  }
16
19
  ])
@@ -1,71 +1,71 @@
1
- {
2
- "name": "vue-vite",
3
- "private": true,
4
- "version": "0.0.0",
5
- "type": "module",
6
- "scripts": {
7
- "prepare": "husky install",
8
- "dev": "vite",
9
- "build": "vue-tsc --noEmit && vite build",
10
- "build:analyse": "tsc --noEmit && vite build --mode analyse",
11
- "preview": "vite preview",
12
- "format": "prettier --write \"**/*.{ts,js,tsx,jsx,json,vue,css,scss,less}\"",
13
- "lint": "vue-tsc --noEmit && eslint **/*.{ts,tsx,js,jsx,vue} --no-error-on-unmatched-pattern && stylelint **/*.{css,scss,less}",
14
- "lint:fix": "eslint **/*.{ts,tsx,js,jsx,vue} --fix && stylelint **/*.{css,scss,less} --fix",
15
- "cz": "cz",
16
- "push": "npm run commit && git push",
17
- "commit": "git add . && npm run cz",
18
- "up:vite": "pnpm up vite @vitejs/* vite-plugin-* -L"
19
- },
20
- "dependencies": {
21
- "1k-types": "1.2.0",
22
- "@tanstack/vue-query": "5.51.15",
23
- "axios": "1.3.6",
24
- "lodash-es": "4.17.21",
25
- "pinia": "2.1.7",
26
- "vue": "3.4.21",
27
- "vue-router": "4.3.0"
28
- },
29
- "devDependencies": {
30
- "@commitlint/cli": "17.6.1",
31
- "@commitlint/config-conventional": "17.6.1",
32
- "@commitlint/cz-commitlint": "17.5.0",
33
- "@rollup/plugin-eslint": "9.0.5",
34
- "@types/lodash-es": "4.17.12",
35
- "@types/mockjs": "1.0.10",
36
- "@typescript-eslint/eslint-plugin": "7.6.0",
37
- "@typescript-eslint/parser": "7.6.0",
38
- "@vitejs/plugin-vue": "5.0.5",
39
- "@vitejs/plugin-vue-jsx": "4.0.0",
40
- "autoprefixer": "10.4.14",
41
- "commitizen": "4.3.0",
42
- "cssnano": "6.0.0",
43
- "eslint": "8.56.0",
44
- "eslint-import-resolver-typescript": "3.6.1",
45
- "eslint-plugin-import": "2.29.1",
46
- "eslint-plugin-prettier": "5.1.3",
47
- "eslint-plugin-vue": "9.21.1",
48
- "husky": "8.0.3",
49
- "inquirer": "^8.1.2",
50
- "mockjs": "1.1.0",
51
- "postcss": "8.4.38",
52
- "postcss-import": "16.1.0",
53
- "postcss-nesting": "12.1.1",
54
- "prettier": "3.2.5",
55
- "rollup-plugin-visualizer": "5.12.0",
56
- "stylelint": "16.3.1",
57
- "stylelint-config-standard-scss": "13.1.0",
58
- "tailwindcss": "3.4.3",
59
- "typescript": "5.5.2",
60
- "vite": "5.3.3",
61
- "vite-plugin-mock-dev-server": "1.5.1",
62
- "vite-plugin-stylelint": "5.3.1",
63
- "vite-svg-loader": "5.1.0",
64
- "vue-tsc": "2.0.11"
65
- },
66
- "config": {
67
- "commitizen": {
68
- "path": "@commitlint/cz-commitlint"
69
- }
70
- }
71
- }
1
+ {
2
+ "name": "vue-vite",
3
+ "private": true,
4
+ "version": "0.0.0",
5
+ "type": "module",
6
+ "scripts": {
7
+ "prepare": "husky install",
8
+ "dev": "vite",
9
+ "build": "vue-tsc --noEmit && vite build",
10
+ "build:analyse": "tsc --noEmit && vite build --mode analyse",
11
+ "preview": "vite preview",
12
+ "format": "prettier --write \"**/*.{ts,js,tsx,jsx,json,vue,css,scss,less}\"",
13
+ "lint": "vue-tsc --noEmit && eslint **/*.{ts,tsx,js,jsx,vue} --no-error-on-unmatched-pattern && stylelint **/*.{css,scss,less}",
14
+ "lint:fix": "eslint **/*.{ts,tsx,js,jsx,vue} --fix && stylelint **/*.{css,scss,less} --fix",
15
+ "cz": "cz",
16
+ "push": "npm run commit && git push",
17
+ "commit": "git add . && npm run cz",
18
+ "up:vite": "pnpm up vite @vitejs/* vite-plugin-* -L"
19
+ },
20
+ "dependencies": {
21
+ "1k-types": "1.2.0",
22
+ "@tanstack/vue-query": "5.51.15",
23
+ "axios": "1.3.6",
24
+ "lodash-es": "4.17.21",
25
+ "pinia": "2.1.7",
26
+ "vue": "3.4.21",
27
+ "vue-router": "4.3.0"
28
+ },
29
+ "devDependencies": {
30
+ "@commitlint/cli": "17.6.1",
31
+ "@commitlint/config-conventional": "17.6.1",
32
+ "@commitlint/cz-commitlint": "17.5.0",
33
+ "@faker-js/faker": "8.4.1",
34
+ "@rollup/plugin-eslint": "9.0.5",
35
+ "@types/lodash-es": "4.17.12",
36
+ "@types/mockjs": "1.0.10",
37
+ "@typescript-eslint/eslint-plugin": "7.6.0",
38
+ "@typescript-eslint/parser": "7.6.0",
39
+ "@vitejs/plugin-vue": "5.0.5",
40
+ "@vitejs/plugin-vue-jsx": "4.0.0",
41
+ "autoprefixer": "10.4.14",
42
+ "commitizen": "4.3.0",
43
+ "cssnano": "6.0.0",
44
+ "eslint": "8.56.0",
45
+ "eslint-import-resolver-typescript": "3.6.1",
46
+ "eslint-plugin-import": "2.29.1",
47
+ "eslint-plugin-prettier": "5.1.3",
48
+ "eslint-plugin-vue": "9.21.1",
49
+ "husky": "8.0.3",
50
+ "inquirer": "8.1.2",
51
+ "postcss": "8.4.38",
52
+ "postcss-import": "16.1.0",
53
+ "postcss-nesting": "12.1.1",
54
+ "prettier": "3.2.5",
55
+ "rollup-plugin-visualizer": "5.12.0",
56
+ "stylelint": "16.3.1",
57
+ "stylelint-config-standard-scss": "13.1.0",
58
+ "tailwindcss": "3.4.3",
59
+ "typescript": "5.5.2",
60
+ "vite": "5.3.3",
61
+ "vite-plugin-mock-dev-server": "1.5.1",
62
+ "vite-plugin-stylelint": "5.3.1",
63
+ "vite-svg-loader": "5.1.0",
64
+ "vue-tsc": "2.0.11"
65
+ },
66
+ "config": {
67
+ "commitizen": {
68
+ "path": "@commitlint/cz-commitlint"
69
+ }
70
+ }
71
+ }
@@ -1,16 +1,19 @@
1
- import Mock from 'mockjs'
1
+ import { faker } from '@faker-js/faker'
2
2
  import { defineMock } from '@/mockUtils'
3
3
  import { API } from '@/shared/service'
4
+
4
5
  export default defineMock([
5
6
  {
6
7
  url: API.HOME_DATA,
7
- body: Mock.mock({
8
- 'data|10': [
9
- {
10
- name: '@string',
11
- age: '@natural'
12
- }
13
- ]
14
- })
8
+ body: faker.helpers.multiple(
9
+ () => ({
10
+ id: faker.string.uuid(),
11
+ name: faker.person.fullName(),
12
+ age: faker.number.int({ max: 110 })
13
+ }),
14
+ {
15
+ count: 10
16
+ }
17
+ )
15
18
  }
16
19
  ])