Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit c6a0383

Browse files
committed
build: setup formating package.json
1 parent e8c5c6b commit c6a0383

File tree

2 files changed

+55
-25
lines changed

2 files changed

+55
-25
lines changed

package.json

Lines changed: 30 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,32 @@
22
"name": "@vuepress/plugin-blog",
33
"version": "1.5.2",
44
"description": "Offical blog plugin for VuePress",
5+
"repository": {
6+
"type": "git",
7+
"url": "ulivz/vuepress-plugin-blog"
8+
},
9+
"license": "MIT",
10+
"author": "ULIVZ <[email protected]>",
11+
"files": [
12+
"lib",
13+
"types"
14+
],
15+
"main": "lib/node/index.js",
516
"scripts": {
6-
"lint": "eslint src --ext .ts,.vue",
7-
"dev": "concurrently \"rimraf lib\" \"npm:dev:client\" \"npm:dev:node\" \"nodemon\"",
817
"build": "concurrently \"rimraf lib\" \"npm:build:client\" \"npm:build:node\" \"npm:build:components\"",
9-
"dev:client": "tsc -p tsconfig.client.json --watch",
10-
"dev:node": "tsc -p tsconfig.node.json --watch",
1118
"build:client": "tsc -p tsconfig.client.json",
12-
"build:node": "tsc -p tsconfig.node.json",
1319
"build:components": "cpx \"src/client/components/**/*\" lib/client/components",
14-
"dev:docs": "vuepress dev docs --temp docs/.temp",
1520
"build:docs": "vuepress build docs --temp docs/.temp",
16-
"dev:example": "node examples/launch.js dev",
1721
"build:example": "node examples/launch.js build",
22+
"build:node": "tsc -p tsconfig.node.json",
23+
"dev": "concurrently \"rimraf lib\" \"npm:dev:client\" \"npm:dev:node\" \"nodemon\"",
24+
"dev:client": "tsc -p tsconfig.client.json --watch",
25+
"dev:docs": "vuepress dev docs --temp docs/.temp",
26+
"dev:example": "node examples/launch.js dev",
27+
"dev:node": "tsc -p tsconfig.node.json --watch",
28+
"lint": "eslint src --ext .ts,.vue",
1829
"prepublishOnly": "npm run build && conventional-changelog -p angular -r 2 -i CHANGELOG.md -s"
1930
},
20-
"main": "lib/node/index.js",
21-
"files": [
22-
"lib",
23-
"types"
24-
],
25-
"repository": {
26-
"url": "ulivz/vuepress-plugin-blog",
27-
"type": "git"
28-
},
29-
"author": "ULIVZ <[email protected]>",
30-
"license": "MIT",
3131
"husky": {
3232
"hooks": {
3333
"pre-commit": "lint-staged"
@@ -37,6 +37,17 @@
3737
"*.{js,ts,vue}": [
3838
"eslint --fix",
3939
"git add"
40+
],
41+
"package.json": [
42+
"sort-package-json",
43+
"git add"
44+
]
45+
},
46+
"nodemonConfig": {
47+
"exec": "yarn build:components",
48+
"ext": "vue",
49+
"watch": [
50+
"src/client/components/"
4051
]
4152
},
4253
"dependencies": {
@@ -63,17 +74,11 @@
6374
"nodemon": "^1.18.7",
6475
"prettier": "^1.19.1",
6576
"rimraf": "^3.0.0",
77+
"sort-package-json": "^1.31.0",
6678
"ts-node": "^7.0.1",
6779
"typescript": "3.1.4",
6880
"vuepress": "^1.0.0"
6981
},
70-
"nodemonConfig": {
71-
"exec": "yarn build:components",
72-
"ext": "vue",
73-
"watch": [
74-
"src/client/components/"
75-
]
76-
},
7782
"publishConfig": {
7883
"registry": "https://registry.npmjs.org/"
7984
}

yarn.lock

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3246,11 +3246,21 @@ destroy@~1.0.4:
32463246
resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.0.4.tgz#978857442c44749e4206613e37946205826abd80"
32473247
integrity sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=
32483248

3249+
detect-indent@^6.0.0:
3250+
version "6.0.0"
3251+
resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-6.0.0.tgz#0abd0f549f69fc6659a254fe96786186b6f528fd"
3252+
integrity sha512-oSyFlqaTHCItVRGK5RmrmjB+CmaMOW7IaNA/kdxqhoa6d17j/5ce9O9eWXmV/KEdRwqpQA+Vqe8a8Bsybu4YnA==
3253+
32493254
detect-libc@^1.0.2:
32503255
version "1.0.3"
32513256
resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-1.0.3.tgz#fa137c4bd698edf55cd5cd02ac559f91a4c4ba9b"
32523257
integrity sha1-+hN8S9aY7fVc1c0CrFWfkaTEups=
32533258

3259+
3260+
version "3.1.0"
3261+
resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-3.1.0.tgz#576f5dfc63ae1a192ff192d8ad3af6308991b651"
3262+
integrity sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==
3263+
32543264
detect-node@^2.0.4:
32553265
version "2.0.4"
32563266
resolved "https://registry.yarnpkg.com/detect-node/-/detect-node-2.0.4.tgz#014ee8f8f669c5c58023da64b8179c083a28c46c"
@@ -8598,6 +8608,21 @@ sort-keys@^2.0.0:
85988608
dependencies:
85998609
is-plain-obj "^1.0.0"
86008610

8611+
sort-object-keys@^1.1.2:
8612+
version "1.1.3"
8613+
resolved "https://registry.yarnpkg.com/sort-object-keys/-/sort-object-keys-1.1.3.tgz#bff833fe85cab147b34742e45863453c1e190b45"
8614+
integrity sha512-855pvK+VkU7PaKYPc+Jjnmt4EzejQHyhhF33q31qG8x7maDzkeFhAAThdCYay11CISO+qAMwjOBP+fPZe0IPyg==
8615+
8616+
sort-package-json@^1.31.0:
8617+
version "1.31.0"
8618+
resolved "https://registry.yarnpkg.com/sort-package-json/-/sort-package-json-1.31.0.tgz#778c652b1ee88c15337b258d3ae7e47576e4fb88"
8619+
integrity sha512-zBdnTpMCJNZszbPcAbGIAgfRQ0A0dF/ZOsQdUHICZ6XLuIQK1Mcwp8zfkF3ySg2lT2oKxU4dVhh/9tZxGLBU0A==
8620+
dependencies:
8621+
detect-indent "^6.0.0"
8622+
detect-newline "3.1.0"
8623+
glob "^7.1.6"
8624+
sort-object-keys "^1.1.2"
8625+
86018626
source-list-map@^2.0.0:
86028627
version "2.0.1"
86038628
resolved "https://registry.yarnpkg.com/source-list-map/-/source-list-map-2.0.1.tgz#3993bd873bfc48479cca9ea3a547835c7c154b34"

0 commit comments

Comments
 (0)