Skip to content

Commit 57c1a2f

Browse files
committed
build: add package.json for monorepo
1 parent ad13a55 commit 57c1a2f

File tree

2 files changed

+136
-11
lines changed

2 files changed

+136
-11
lines changed

package.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"name": "vue-jest-monorepo",
3+
"private": true,
4+
"workspaces": {
5+
"packages": [
6+
"packages/*",
7+
"e2e/**"
8+
]
9+
},
10+
"scripts": {
11+
"format": "prettier --no-semi --single-quote --write \"**/*.{js,json,md}\"",
12+
"format:check": "prettier --no-semi --single-quote --check \"**/*.{js,json,md}\"",
13+
"lint": "eslint --ignore-path .gitignore \"{,!(node_modules)/**/}*.js\"",
14+
"lint:fix": "yarn lint --fix",
15+
"test": "yarn lint && yarn format:check && yarn workspaces run test"
16+
},
17+
"devDependencies": {
18+
"eslint": "^5.12.0",
19+
"eslint-config-prettier": "^3.3.0",
20+
"eslint-config-standard": "^12.0.0",
21+
"eslint-plugin-import": "^2.14.0",
22+
"eslint-plugin-node": "^8.0.0",
23+
"eslint-plugin-promise": "^4.0.1",
24+
"eslint-plugin-standard": "^4.0.0",
25+
"eslint-plugin-vue": "^5.1.0",
26+
"husky": "^1.1.4",
27+
"lint-staged": "^8.0.5",
28+
"prettier": "^1.16.1"
29+
},
30+
"husky": {
31+
"hooks": {
32+
"pre-commit": "lint-staged"
33+
}
34+
},
35+
"lint-staged": {
36+
"*.{js,json,css,md,vue}": [
37+
"yarn format",
38+
"git add"
39+
]
40+
}
41+
}

yarn.lock

Lines changed: 95 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1957,6 +1957,11 @@ babel-generator@^6.18.0:
19571957
source-map "^0.5.7"
19581958
trim-right "^1.0.1"
19591959

1960+
babel-helper-vue-jsx-merge-props@^2.0.3:
1961+
version "2.0.3"
1962+
resolved "https://registry.yarnpkg.com/babel-helper-vue-jsx-merge-props/-/babel-helper-vue-jsx-merge-props-2.0.3.tgz#22aebd3b33902328e513293a8e4992b384f9f1b6"
1963+
integrity sha512-gsLiKK7Qrb7zYJNgiXKpXblxbV5ffSwR0f5whkPAaBAR4fhi6bwRZxX9wBlIc5M/v8CCkXUbXZL4N/nSE97cqg==
1964+
19601965
babel-jest@^23.6.0:
19611966
version "23.6.0"
19621967
resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-23.6.0.tgz#a644232366557a2240a0c083da6b25786185a2f1"
@@ -2031,10 +2036,22 @@ babel-plugin-jest-hoist@^26.2.0:
20312036
"@types/babel__core" "^7.0.0"
20322037
"@types/babel__traverse" "^7.0.6"
20332038

2039+
babel-plugin-syntax-jsx@^6.18.0:
2040+
version "6.18.0"
2041+
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz#0af32a9a6e13ca7a3fd5069e62d7b0f58d0d8946"
2042+
integrity sha1-CvMqmm4Tyno/1QaeYtew9Y0NiUY=
2043+
20342044
babel-plugin-syntax-object-rest-spread@^6.13.0:
20352045
version "6.13.0"
20362046
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz#fd6536f2bce13836ffa3a5458c4903a597bb3bf5"
20372047

2048+
babel-plugin-transform-vue-jsx@^3.7.0:
2049+
version "3.7.0"
2050+
resolved "https://registry.yarnpkg.com/babel-plugin-transform-vue-jsx/-/babel-plugin-transform-vue-jsx-3.7.0.tgz#d40492e6692a36b594f7e9a1928f43e969740960"
2051+
integrity sha512-W39X07/n3oJMQd8tALBO+440NraGSF//Lo1ydd/9Nme3+QiRGFBb1Q39T9iixh0jZPPbfv3so18tNoIgLatymw==
2052+
dependencies:
2053+
esutils "^2.0.2"
2054+
20382055
babel-preset-current-node-syntax@^0.1.3:
20392056
version "0.1.3"
20402057
resolved "https://registry.yarnpkg.com/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-0.1.3.tgz#b4b547acddbf963cba555ba9f9cbbb70bfd044da"
@@ -2120,6 +2137,11 @@ babylon@^6.18.0:
21202137
resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3"
21212138
integrity sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==
21222139

2140+
2141+
version "0.1.0"
2142+
resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-0.1.0.tgz#b504bd05869b39259dd0c5efc35d843176dccc4a"
2143+
integrity sha1-tQS9BYabOSWd0MXvw12EMXbczEo=
2144+
21232145
balanced-match@^1.0.0:
21242146
version "1.0.0"
21252147
resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767"
@@ -2637,7 +2659,7 @@ collection-visit@^1.0.0:
26372659
map-visit "^1.0.0"
26382660
object-visit "^1.0.0"
26392661

2640-
color-convert@^1.9.0:
2662+
color-convert@^1.3.0, color-convert@^1.9.0:
26412663
version "1.9.3"
26422664
resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8"
26432665
integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==
@@ -2655,11 +2677,27 @@ [email protected]:
26552677
resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25"
26562678
integrity sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=
26572679

2658-
color-name@~1.1.4:
2680+
color-name@^1.0.0, color-name@~1.1.4:
26592681
version "1.1.4"
26602682
resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2"
26612683
integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==
26622684

2685+
color-string@^0.3.0:
2686+
version "0.3.0"
2687+
resolved "https://registry.yarnpkg.com/color-string/-/color-string-0.3.0.tgz#27d46fb67025c5c2fa25993bfbf579e47841b991"
2688+
integrity sha1-J9RvtnAlxcL6JZk7+/V55HhBuZE=
2689+
dependencies:
2690+
color-name "^1.0.0"
2691+
2692+
color@^0.11.0:
2693+
version "0.11.4"
2694+
resolved "https://registry.yarnpkg.com/color/-/color-0.11.4.tgz#6d7b5c74fb65e841cd48792ad1ed5e07b904d764"
2695+
integrity sha1-bXtcdPtl6EHNSHkq0e1eB7kE12Q=
2696+
dependencies:
2697+
clone "^1.0.2"
2698+
color-convert "^1.3.0"
2699+
color-string "^0.3.0"
2700+
26632701
colorette@^1.2.2:
26642702
version "1.2.2"
26652703
resolved "https://registry.yarnpkg.com/colorette/-/colorette-1.2.2.tgz#cbcc79d5e99caea2dbf10eb3a26fd8b3e6acfa94"
@@ -3052,6 +3090,16 @@ crypto-random-string@^1.0.0:
30523090
resolved "https://registry.yarnpkg.com/crypto-random-string/-/crypto-random-string-1.0.0.tgz#a230f64f568310e1498009940790ec99545bca7e"
30533091
integrity sha1-ojD2T1aDEOFJgAmUB5DsmVRbyn4=
30543092

3093+
css-color-function@~1.3.3:
3094+
version "1.3.3"
3095+
resolved "https://registry.yarnpkg.com/css-color-function/-/css-color-function-1.3.3.tgz#8ed24c2c0205073339fafa004bc8c141fccb282e"
3096+
integrity sha1-jtJMLAIFBzM5+voAS8jBQfzLKC4=
3097+
dependencies:
3098+
balanced-match "0.1.0"
3099+
color "^0.11.0"
3100+
debug "^3.1.0"
3101+
rgb "~0.1.0"
3102+
30553103
30563104
version "1.0.4"
30573105
resolved "https://registry.yarnpkg.com/css-parse/-/css-parse-1.0.4.tgz#38b0503fbf9da9f54e9c1dbda60e145c77117bdd"
@@ -5649,7 +5697,7 @@ jest-worker@^26.3.0:
56495697
merge-stream "^2.0.0"
56505698
supports-color "^7.0.0"
56515699

5652-
jest@^26.0.0:
5700+
jest@26.x, jest@^26.0.0:
56535701
version "26.4.2"
56545702
resolved "https://registry.yarnpkg.com/jest/-/jest-26.4.2.tgz#7e8bfb348ec33f5459adeaffc1a25d5752d9d312"
56555703
integrity sha512-LLCjPrUh98Ik8CzW8LLVnSCfLaiY+wbK53U7VxnFSX7Q+kWC4noVeDvGWIFw0Amfq1lq2VfGm7YHWSLBV62MJw==
@@ -7597,6 +7645,21 @@ posix-character-classes@^0.1.0:
75977645
version "0.1.1"
75987646
resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab"
75997647

7648+
postcss-color-function@^4.0.1:
7649+
version "4.1.0"
7650+
resolved "https://registry.yarnpkg.com/postcss-color-function/-/postcss-color-function-4.1.0.tgz#b6f9355e07b12fcc5c34dab957834769b03d8f57"
7651+
integrity sha512-2/fuv6mP5Lt03XbRpVfMdGC8lRP1sykme+H1bR4ARyOmSMB8LPSjcL6EAI1iX6dqUF+jNEvKIVVXhan1w/oFDQ==
7652+
dependencies:
7653+
css-color-function "~1.3.3"
7654+
postcss "^6.0.23"
7655+
postcss-message-helpers "^2.0.0"
7656+
postcss-value-parser "^3.3.1"
7657+
7658+
postcss-message-helpers@^2.0.0:
7659+
version "2.0.0"
7660+
resolved "https://registry.yarnpkg.com/postcss-message-helpers/-/postcss-message-helpers-2.0.0.tgz#a4f2f4fab6e4fe002f0aed000478cdf52f9ba60e"
7661+
integrity sha1-pPL0+rbk/gAvCu0ABHjN9S+bpg4=
7662+
76007663
postcss-selector-parser@^6.0.2:
76017664
version "6.0.2"
76027665
resolved "https://registry.yarnpkg.com/postcss-selector-parser/-/postcss-selector-parser-6.0.2.tgz#934cf799d016c83411859e09dcecade01286ec5c"
@@ -7605,7 +7668,21 @@ postcss-selector-parser@^6.0.2:
76057668
indexes-of "^1.0.1"
76067669
uniq "^1.0.1"
76077670

7608-
postcss@^7.0.14:
7671+
postcss-value-parser@^3.3.1:
7672+
version "3.3.1"
7673+
resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz#9ff822547e2893213cf1c30efa51ac5fd1ba8281"
7674+
integrity sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==
7675+
7676+
postcss@^6.0.23:
7677+
version "6.0.23"
7678+
resolved "https://registry.yarnpkg.com/postcss/-/postcss-6.0.23.tgz#61c82cc328ac60e677645f979054eb98bc0e3324"
7679+
integrity sha512-soOk1h6J3VMTZtVeVpv15/Hpdl2cBLX3CAw4TAbkpTJiNPk9YP/zWcD1ND+xEtvyuuvKzbxliTOIyvkSeSJ6ag==
7680+
dependencies:
7681+
chalk "^2.4.1"
7682+
source-map "^0.6.1"
7683+
supports-color "^5.4.0"
7684+
7685+
postcss@^7.0.13, postcss@^7.0.14:
76097686
version "7.0.36"
76107687
resolved "https://registry.yarnpkg.com/postcss/-/postcss-7.0.36.tgz#056f8cffa939662a8f5905950c07d5285644dfcb"
76117688
integrity sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==
@@ -8364,6 +8441,11 @@ reusify@^1.0.4:
83648441
version "1.0.4"
83658442
resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76"
83668443

8444+
rgb@~0.1.0:
8445+
version "0.1.0"
8446+
resolved "https://registry.yarnpkg.com/rgb/-/rgb-0.1.0.tgz#be27b291e8feffeac1bd99729721bfa40fc037b5"
8447+
integrity sha1-vieykej+/+rBvZlylyG/pA/AN7U=
8448+
83678449
right-align@^0.1.1:
83688450
version "0.1.3"
83698451
resolved "https://registry.yarnpkg.com/right-align/-/right-align-0.1.3.tgz#61339b722fe6a3515689210d24e14c96148613ef"
@@ -9082,7 +9164,7 @@ supports-color@^2.0.0:
90829164
version "2.0.0"
90839165
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7"
90849166

9085-
supports-color@^5.0.0, supports-color@^5.3.0:
9167+
supports-color@^5.0.0, supports-color@^5.3.0, supports-color@^5.4.0:
90869168
version "5.5.0"
90879169
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f"
90889170
integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==
@@ -9668,9 +9750,10 @@ vue-eslint-parser@^5.0.0:
96689750
esquery "^1.0.1"
96699751
lodash "^4.17.11"
96709752

9671-
vue-template-compiler@^2.4.2:
9672-
version "2.6.11"
9673-
resolved "https://registry.yarnpkg.com/vue-template-compiler/-/vue-template-compiler-2.6.11.tgz#c04704ef8f498b153130018993e56309d4698080"
9753+
vue-template-compiler@^2.4.2, vue-template-compiler@^2.5.21:
9754+
version "2.6.14"
9755+
resolved "https://registry.yarnpkg.com/vue-template-compiler/-/vue-template-compiler-2.6.14.tgz#a2f0e7d985670d42c9c9ee0d044fed7690f4f763"
9756+
integrity sha512-ODQS1SyMbjKoO1JBJZojSw6FE4qnh9rIpUZn2EUT86FKizx9uH5z6uXiIrm4/Nb/gwxTi/o17ZDEGWAXHvtC7g==
96749757
dependencies:
96759758
de-indent "^1.0.2"
96769759
he "^1.1.0"
@@ -9679,9 +9762,10 @@ vue-template-es2015-compiler@^1.9.0:
96799762
version "1.9.1"
96809763
resolved "https://registry.yarnpkg.com/vue-template-es2015-compiler/-/vue-template-es2015-compiler-1.9.1.tgz#1ee3bc9a16ecbf5118be334bb15f9c46f82f5825"
96819764

9682-
vue@^2.4.2:
9683-
version "2.6.11"
9684-
resolved "https://registry.yarnpkg.com/vue/-/vue-2.6.11.tgz#76594d877d4b12234406e84e35275c6d514125c5"
9765+
vue@^2.4.2, vue@^2.5.21:
9766+
version "2.6.14"
9767+
resolved "https://registry.yarnpkg.com/vue/-/vue-2.6.14.tgz#e51aa5250250d569a3fbad3a8a5a687d6036e235"
9768+
integrity sha512-x2284lgYvjOMj3Za7kqzRcUSxBboHqtgRE2zlos1qWaOye5yUmHn42LB1250NJBLRwEcdrB0JRwyPTEPhfQjiQ==
96859769

96869770
w3c-hr-time@^1.0.2:
96879771
version "1.0.2"

0 commit comments

Comments
 (0)