|
4 | 4 | "description": "Offical blog plugin for VuePress", |
5 | 5 | "scripts": { |
6 | 6 | "lint": "xo", |
7 | | - "dev": "npm run cpc && tsc -skipLibCheck --watch", |
8 | | - "cpc": "cp -r src/client lib", |
9 | | - "build": "tsc -skipLibCheck && npm run cpc", |
| 7 | + "dev": "concurrently \"yarn dev:client\" \"yarn dev:node\" \"yarn build:components\"", |
| 8 | + "build": "concurrently \"yarn build:client\" \"yarn build:node\" \"yarn build:components\"", |
| 9 | + "dev:client": "tsc -p tsconfig.client.json --watch", |
| 10 | + "dev:node": "tsc -p tsconfig.node.json --watch", |
| 11 | + "build:client": "tsc -p tsconfig.client.json", |
| 12 | + "build:node": "tsc -p tsconfig.node.json", |
| 13 | + "build:components": "mkdir -p lib/client/components && cp -r src/client/components lib/client", |
10 | 14 | "dev:docs": "vuepress dev docs --temp docs/.temp", |
11 | 15 | "build:docs": "vuepress build docs --temp docs/.temp", |
12 | 16 | "example": "node examples/launch.js", |
13 | 17 | "prepare": "npm run build", |
14 | 18 | "prepublishOnly": "npm run build && conventional-changelog -p angular -r 2 -i CHANGELOG.md -s" |
15 | 19 | }, |
16 | | - "main": "lib/index.js", |
| 20 | + "main": "lib/node/index.js", |
17 | 21 | "files": [ |
18 | 22 | "lib", |
19 | 23 | "docs", |
|
25 | 29 | }, |
26 | 30 | "author": "ULIVZ <chl814@foxmail.com>", |
27 | 31 | "license": "MIT", |
| 32 | + "dependencies": { |
| 33 | + "vuejs-paginate": "^2.1.0" |
| 34 | + }, |
28 | 35 | "devDependencies": { |
| 36 | + "concurrently": "^4.1.0", |
29 | 37 | "conventional-changelog-cli": "^2.0.1", |
30 | | - "eslint-config-prettier": "^3.3.0", |
31 | | - "eslint-config-rem": "^4.0.0", |
32 | | - "eslint-config-xo-typescript": "^0.3.0", |
33 | | - "eslint-plugin-prettier": "^3.0.0", |
34 | | - "eslint-plugin-typescript": "^0.14.0", |
35 | | - "husky": "^1.2.0", |
36 | 38 | "inquirer": "^6.3.1", |
37 | | - "lint-staged": "^8.1.0", |
38 | 39 | "nodemon": "^1.18.7", |
39 | | - "prettier": "^1.15.2", |
40 | 40 | "ts-node": "^7.0.1", |
41 | | - "typescript": "^3.1.4", |
42 | | - "typescript-eslint-parser": "^21.0.2", |
43 | | - "vuejs-paginate": "^2.1.0", |
44 | | - "vuepress": "^1.0.0", |
45 | | - "xo": "^0.23.0" |
| 41 | + "typescript": "3.1.4", |
| 42 | + "vuepress": "^1.0.0" |
46 | 43 | }, |
47 | 44 | "xo": { |
48 | 45 | "extends": [ |
|
63 | 60 | "typescript/no-var-requires": "off", |
64 | 61 | "no-implicit-globals": "off", |
65 | 62 | "import/no-unresolved": "off", |
66 | | - "import/no-extraneous-dependencies": "off" |
67 | | - } |
68 | | - }, |
69 | | - "husky": { |
70 | | - "hooks": { |
71 | | - "pre-commit": "lint-staged" |
72 | | - } |
73 | | - }, |
74 | | - "lint-staged": { |
75 | | - "linters": { |
76 | | - "*.{ts,js}": [ |
77 | | - "xo --fix", |
78 | | - "git add" |
79 | | - ], |
80 | | - "*.{json,md}": [ |
81 | | - "prettier --write", |
82 | | - "git add" |
83 | | - ] |
| 63 | + "import/no-extraneous-dependencies": "off", |
| 64 | + "typescript/no-use-before-define": "off", |
| 65 | + "typescript/no-type-alias": "off" |
84 | 66 | } |
85 | 67 | }, |
86 | 68 | "publishConfig": { |
|
0 commit comments