-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
package.json
123 lines (123 loc) · 5.22 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
{
"name": "@intlify/routing",
"description": "The i18n routing libraries",
"version": "1.0.1",
"author": {
"name": "kazuya kawaguchi",
"email": "[email protected]"
},
"bugs": {
"url": "https://github.com/inlitify/routing/issues"
},
"devDependencies": {
"@intlify/eslint-plugin-vue-i18n": "^2.0.0",
"@types/js-yaml": "^4.0.5",
"@types/node": "^18.17.4",
"@typescript-eslint/eslint-plugin": "^6.3.0",
"@typescript-eslint/parser": "^6.3.0",
"bumpp": "^9.1.1",
"cross-env": "^7.0.3",
"eslint": "^8.47.0",
"eslint-config-prettier": "^9.0.0",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-import-resolver-typescript": "^3.6.0",
"eslint-plugin-import": "^2.28.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-tsdoc": "^0.2.17",
"eslint-plugin-vue": "^9.17.0",
"globby": "^12.2.0",
"happy-dom": "^6.0.4",
"jiti": "^1.19.1",
"js-yaml": "^4.1.0",
"lint-staged": "^13.2.3",
"npm-run-all": "^4.1.5",
"pathe": "^1.1.1",
"pkg-types": "^1.0.3",
"prettier": "^3.0.1",
"rimraf": "^3.0.2",
"typescript": "^5.1.6",
"vue-eslint-parser": "^9.3.1"
},
"engines": {
"node": ">= 14.6"
},
"license": "MIT",
"lint-staged": {
"*.{json,md,yml}": [
"prettier --write"
],
"*.{js}": [
"prettier --write",
"eslint --config .eslintrc.cjs --fix --ext .js,.vue"
],
"*.{vue}": [
"prettier --write",
"eslint --config .eslintrc-i18n.cjs --fix --ext .vue"
],
"*.ts?(x)": [
"prettier --parser=typescript --write",
"eslint --config .eslintrc.cjs --fix --ext .ts"
]
},
"private": true,
"repository": {
"type": "git",
"url": "git+https://github.com/intlify/routing.git"
},
"packageManager": "[email protected]",
"scripts": {
"force": "pnpm clean && pnpm i --force",
"install:vue2": "cd playground/vue2 && npm i",
"install:vue2options": "cd playground/vue2-options && npm i",
"install:vue3": "cd playground/vue3 && npm i",
"install:vue3options": "cd playground/vue3-options && npm i",
"play:setup": "run-p \"install:*\"",
"play:vue2": "cd playground/vue2 && npm run dev",
"play:vue2options": "cd playground/vue2-options && npm run dev",
"play:vue3": "cd playground/vue3 && npm run dev",
"play:vue3options": "cd playground/vue3-options && npm run dev",
"build": "pnpm switch:vue3 && ./scripts/build.sh",
"build:play": "run-p \"build:vue*\"",
"build:vue2": "cd playground/vue2 && npm run build",
"build:vue2options": "cd playground/vue2-options && npm run build",
"build:vue3": "cd playground/vue3 && npm run build",
"build:vue3options": "cd playground/vue3-options && npm run build",
"clean": "run-s clean:* && rimraf node_modules/.pnpm",
"clean:dist": "run-p clean:dist:*",
"clean:dist:vue2": "rimraf playground/vue2/dist && rimraf playground/vue2-options/dist",
"clean:dist:vue3": "rimraf playground/vue3/dist && rimraf playground/vue3-options/dist",
"clean:mod": "run-p clean:mod:*",
"clean:mod:vue2": "rimraf playground/vue2/node_modules && rimraf playground/vue2-options/node_modules",
"clean:mod:vue3": "rimraf playground/vue3/node_modules && rimraf playground/vue3-options/node_modules",
"switch:vue2": "pnpm --filter vue-i18n-routing switch:2",
"switch:vue3": "pnpm --filter vue-i18n-routing switch:3",
"docs:build": "pnpm --filter vue-i18n-routing build:docs",
"preinstall": "node ./scripts/preinstall.mjs",
"prepare": "git config --local core.hooksPath .githooks",
"release": "bumpp package.json packages/**/package.json --commit \"release: v\" --push --tag",
"bump": "./scripts/bump.sh",
"dev": "pnpm --filter vue-i18n-routing dev",
"fix": "run-p lint:fix format:fix",
"format:fix": "run-p \"format:prettier --write\"",
"format:prettier": "prettier --config .prettierrc --ignore-path .prettierignore --list-different '**/*.{js,json,html}'",
"lint": "run-p lint:codes",
"lint:codes": "eslint --config .eslintrc.cjs --ext .js,.mjs,.ts,.vue ./packages",
"lint:i18n:vue2": "cross-env LINT_I18N=vue2 eslint --config .eslintrc-i18n.cjs --ext .js,.mjs,.ts,.vue,.json ./playground/vue2",
"lint:i18n:vue3": "cross-env LINT_I18N=vue3 eslint --config .eslintrc-i18n.cjs --ext .js,.mjs,.ts,.vue,.json ./playground/vue3",
"lint:fix": "run-p \"lint:codes --fix\"",
"typecheck": "pnpm switch:vue3 && pnpm --filter vue-i18n-routing typecheck",
"test": "pnpm typecheck && run-s \"test:unit\" \"test:unit:vue2\"",
"test:unit": "pnpm switch:vue3 && cross-env TEST_TARGET=vue3 pnpm --filter vue-i18n-routing test",
"test:unit:vue2": "pnpm switch:vue2 && cross-env TEST_TARGET=vue2 pnpm --filter vue-i18n-routing test",
"test:watch": "pnpm switch:vue3 && cross-env TEST_TARGET=vue3 pnpm --filter playground-vue3 test:watch",
"test:cover": "pnpm switch:vue3 && cross-env TEST_TARGET=vue3 && pnpm --filter playground-vue3 test:cover",
"test:e2e": "run-p \"test:e2e:vue*\"",
"test:e2e:vue2": "cd playground/vue2 && npm test",
"test:e2e:vue2options": "cd playground/vue2-options && npm test",
"test:e2e:vue3": "cd playground/vue3 && npm test",
"test:e2e:vue3options": "cd playground/vue3-options && npm test"
},
"workspaces": [
"packages/*"
]
}