From eef741c8ab82e7dfd39967e89ca6d7961c1ecc9a Mon Sep 17 00:00:00 2001 From: James George Date: Fri, 17 Jan 2020 15:01:44 +0530 Subject: [PATCH 01/15] refactor: use startsWith --- lib/core/src/server/presets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/src/server/presets.js b/lib/core/src/server/presets.js index 03d090bd158..2718c814407 100644 --- a/lib/core/src/server/presets.js +++ b/lib/core/src/server/presets.js @@ -15,7 +15,7 @@ function parsePackageName(input) { throw new TypeError('Expected a string'); } - const matched = input.charAt(0) === '@' ? input.match(RE_SCOPED) : input.match(RE_NORMAL); + const matched = input.startsWith('@') ? input.match(RE_SCOPED) : input.match(RE_NORMAL); if (!matched) { throw new Error(`[parse-package-name] "${input}" is not a valid string`); From a6a13f09abe745145a8244d08a7d06e32e5c8af7 Mon Sep 17 00:00:00 2001 From: jamesgeorge007 Date: Fri, 17 Jan 2020 15:56:57 +0530 Subject: [PATCH 02/15] deps: update husky to v4 --- package.json | 2 +- yarn.lock | 27 +++++++-------------------- 2 files changed, 8 insertions(+), 21 deletions(-) diff --git a/package.json b/package.json index 0678885243e..b0f43486af5 100644 --- a/package.json +++ b/package.json @@ -179,7 +179,7 @@ "github-release-from-changelog": "^2.1.0", "glob": "^7.1.3", "http-server": "^0.11.1", - "husky": "^3.1.0", + "husky": "^4.0.10", "inquirer": "^7.0.0", "jest": "^24.8.0", "jest-cli": "^24.8.0", diff --git a/yarn.lock b/yarn.lock index 59f1eec5975..582ad80f2b1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -14981,11 +14981,6 @@ get-stdin@^6.0.0: resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-6.0.0.tgz#9e09bf712b360ab9225e812048f71fde9c89657b" integrity sha512-jp4tHawyV7+fkkSKyvjuLZswblUtz+SQKzSWnBbii16BuZksJlU1wuBYXY75r+duh/llF1ur6oNwi+2ZzjKZ7g== -get-stdin@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-7.0.0.tgz#8d5de98f15171a125c5e516643c7a6d0ea8a96f6" - integrity sha512-zRKcywvrXlXsA0v0i9Io4KDRaAw7+a1ZpjRwl9Wox8PFlVCCHra7E9c4kqXCoCM9nR5tBkaTTZRBoCm60bFqTQ== - get-stream@3.0.0, get-stream@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14" @@ -16367,22 +16362,19 @@ humps@^2.0.1: resolved "https://registry.yarnpkg.com/humps/-/humps-2.0.1.tgz#dd02ea6081bd0568dc5d073184463957ba9ef9aa" integrity sha1-3QLqYIG9BWjcXQcxhEY5V7qe+ao= -husky@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/husky/-/husky-3.1.0.tgz#5faad520ab860582ed94f0c1a77f0f04c90b57c0" - integrity sha512-FJkPoHHB+6s4a+jwPqBudBDvYZsoQW5/HBuMSehC8qDiCe50kpcxeqFoDSlow+9I6wg47YxBoT3WxaURlrDIIQ== +husky@^4.0.10: + version "4.0.10" + resolved "https://registry.yarnpkg.com/husky/-/husky-4.0.10.tgz#659b52c404d3163b943a73f6c1d454708c0226d8" + integrity sha512-Ptm4k2DqOwxeK/kzu5RaJmNRoGvESrgDXObFcZ8aJZcyXyMBHhM2FqZj6zYKdetadmP3wCwxEHCBuB9xGlRp8A== dependencies: - chalk "^2.4.2" + chalk "^3.0.0" ci-info "^2.0.0" - cosmiconfig "^5.2.1" - execa "^1.0.0" - get-stdin "^7.0.0" + cosmiconfig "^6.0.0" opencollective-postinstall "^2.0.2" pkg-dir "^4.2.0" please-upgrade-node "^3.2.0" - read-pkg "^5.2.0" - run-node "^1.0.0" slash "^3.0.0" + which-pm-runs "^1.0.0" hyperlinker@^1.0.0: version "1.0.0" @@ -27924,11 +27916,6 @@ run-async@^2.2.0: dependencies: is-promise "^2.1.0" -run-node@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/run-node/-/run-node-1.0.0.tgz#46b50b946a2aa2d4947ae1d886e9856fd9cabe5e" - integrity sha512-kc120TBlQ3mih1LSzdAJXo4xn/GWS2ec0l3S+syHDXP9uRr0JAT8Qd3mdMuyjqCzeZktgP3try92cEgf9Nks8A== - run-parallel@^1.1.9: version "1.1.9" resolved "https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.1.9.tgz#c9dd3a7cf9f4b2c4b6244e173a6ed866e61dd679" From 246734b7bc0e48502d1218d36d11e599509e0efc Mon Sep 17 00:00:00 2001 From: Harvey Peachey Date: Fri, 17 Jan 2020 11:10:33 +0000 Subject: [PATCH 03/15] Add BBC to list of examples --- docs/src/pages/examples/_examples.yml | 6 ++++++ docs/src/pages/examples/thumbnails/bbc.jpg | Bin 0 -> 9213 bytes 2 files changed, 6 insertions(+) create mode 100644 docs/src/pages/examples/thumbnails/bbc.jpg diff --git a/docs/src/pages/examples/_examples.yml b/docs/src/pages/examples/_examples.yml index ff63b3712ef..8babbbd354a 100644 --- a/docs/src/pages/examples/_examples.yml +++ b/docs/src/pages/examples/_examples.yml @@ -191,3 +191,9 @@ reactPakistan: description: A series of reuseable React Commons, UI/UX components, icons, logos and more by React Pakistan. demo: https://taimoormk.github.io/react-commons-collection/?path=/docs/react-pakistan-intro--page site: https://www.npmjs.com/package/@react-pakistan/react-commons-collection +bbc: + thumbnail: bbc.jpg + title: BBC Psammead + description: React component library for BBC World Service and more + demo: https://bbc.github.io/psammead/ + source: https://github.com/bbc/psammead diff --git a/docs/src/pages/examples/thumbnails/bbc.jpg b/docs/src/pages/examples/thumbnails/bbc.jpg new file mode 100644 index 0000000000000000000000000000000000000000..49e1a72d0c3137f4fbecbfb59b271a54d19ee5c1 GIT binary patch literal 9213 zcmeHLXIPWjw*G(-98nN~p-35Fq$ywsp%e5d;7A)LL{tbU3_*G)bS$HiprD|XP~w0F z30&~D3t#5zpS?gW<-Rs@i>E0Oz zj$ShQ(Fow+-~cY}{(zl6;5=}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8UP!^{9b2XR!enuN13*N?4R48-2Fc@D%Kc$^PYWjC_rK3 zSyfv0dyVKL39zSQnSyXE)9f8aDeJDF(9BTO@+H?h)P0R;X-4z#G$}4W?U70s+0eK4 zG_-Ovgyp(S-roTp&d1J#gb=nbLGH>o22ws%>BA#s_l#$|4&%i7q&q&X!nb0;r3No& zW^>lLuBe4MyGNRI(yW)YTD!Lsvj_#_N3OqLN-JWkTEOk!jp;gW*rgL{9{+up!uxFd zNi*k7k5RkBBJ7z%%|$#-P`KF=uH(BtV(`yAbPTYuk8@|j9@Qhu+u9k#h*KGIn5-+q z Date: Fri, 17 Jan 2020 22:47:54 +0800 Subject: [PATCH 04/15] Vue-kitchen-sink add component docgen description --- .../src/stories/components/InfoButton.vue | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/examples/vue-kitchen-sink/src/stories/components/InfoButton.vue b/examples/vue-kitchen-sink/src/stories/components/InfoButton.vue index 2daa195e093..595bf401758 100644 --- a/examples/vue-kitchen-sink/src/stories/components/InfoButton.vue +++ b/examples/vue-kitchen-sink/src/stories/components/InfoButton.vue @@ -1,23 +1,26 @@