Skip to content

Commit

Permalink
fix: 🐛 Fix styleguidist with Harvest
Browse files Browse the repository at this point in the history
  • Loading branch information
CPatchane committed May 28, 2019
1 parent 36cf8e4 commit 0998cd1
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 24 deletions.
8 changes: 8 additions & 0 deletions docs/styleguidist.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const cozyUIPlugin = require('cozy-ui/stylus')
const webpack = require('webpack')

const lib = process.env.TARGET
Expand Down Expand Up @@ -26,6 +27,13 @@ module.exports = {
modules: true,
localIdentName: '[local]--[hash:base64:5]'
}
},
{
loader: 'stylus-loader',
options: {
preferPathResolver: 'webpack',
use: [cozyUIPlugin()]
}
}
]
}
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
"lerna": "2.11.0",
"mini-css-extract-plugin": "^0.5.0",
"react-styleguidist": "^9.0.4",
"stylus": "^0.54.5",
"stylus-loader": "^3.0.2",
"webpack": "^4.29.6"
},
"husky": {
Expand Down
54 changes: 30 additions & 24 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3764,13 +3764,13 @@ [email protected]:
redux-thunk "2.3.0"
sift "6.0.0"

cozy-client@^6.27.0:
version "6.27.0"
resolved "https://registry.yarnpkg.com/cozy-client/-/cozy-client-6.27.0.tgz#27cd1c9e1e6827f7fcc431f8ef1294056b4d3cd7"
integrity sha512-lKdWvKrBsBs8SimfvSqb3ExInH/pGA00GfZXr4Ki8bDV0Z/d/g7geQVUepIIpwyun+PqKaIQ/Fko5a1lYfx89Q==
cozy-client@6.34.0:
version "6.34.0"
resolved "https://registry.yarnpkg.com/cozy-client/-/cozy-client-6.34.0.tgz#fcaac796f9689757c5b1f540e9d3b013f4c60f71"
integrity sha512-PmE4xeg9mtCWTlJjnTNO3NYzDbnuZADFA26KuMsihZEjgQZ/AQaVi0z+6julEEo10fTrRqQ+rWjYFMHUox2c0Q==
dependencies:
cozy-device-helper "1.6.3"
cozy-stack-client "^6.25.0"
cozy-stack-client "^6.33.0"
lodash "4.17.11"
microee "0.0.6"
prop-types "15.6.2"
Expand All @@ -3779,14 +3779,15 @@ cozy-client@^6.27.0:
redux "3.7.2"
redux-thunk "2.3.0"
sift "6.0.0"
url-search-params-polyfill "^6.0.0"

cozy-client@^6.34.0:
version "6.34.0"
resolved "https://registry.yarnpkg.com/cozy-client/-/cozy-client-6.34.0.tgz#fcaac796f9689757c5b1f540e9d3b013f4c60f71"
integrity sha512-PmE4xeg9mtCWTlJjnTNO3NYzDbnuZADFA26KuMsihZEjgQZ/AQaVi0z+6julEEo10fTrRqQ+rWjYFMHUox2c0Q==
cozy-client@^6.27.0:
version "6.27.0"
resolved "https://registry.yarnpkg.com/cozy-client/-/cozy-client-6.27.0.tgz#27cd1c9e1e6827f7fcc431f8ef1294056b4d3cd7"
integrity sha512-lKdWvKrBsBs8SimfvSqb3ExInH/pGA00GfZXr4Ki8bDV0Z/d/g7geQVUepIIpwyun+PqKaIQ/Fko5a1lYfx89Q==
dependencies:
cozy-device-helper "1.6.3"
cozy-stack-client "^6.33.0"
cozy-stack-client "^6.25.0"
lodash "4.17.11"
microee "0.0.6"
prop-types "15.6.2"
Expand All @@ -3795,7 +3796,6 @@ cozy-client@^6.34.0:
redux "3.7.2"
redux-thunk "2.3.0"
sift "6.0.0"
url-search-params-polyfill "^6.0.0"

[email protected]:
version "1.6.3"
Expand Down Expand Up @@ -8890,6 +8890,11 @@ lodash.clone@^4.5.0:
resolved "https://registry.yarnpkg.com/lodash.clone/-/lodash.clone-4.5.0.tgz#195870450f5a13192478df4bc3d23d2dea1907b6"
integrity sha1-GVhwRQ9aExkkeN9Lw9I9LeoZB7Y=

lodash.clonedeep@^4.5.0:
version "4.5.0"
resolved "https://registry.yarnpkg.com/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz#e23f3f9c4f8fbdde872529c1071857a086e5ccef"
integrity sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=

lodash.defaults@^4.0.1:
version "4.2.0"
resolved "https://registry.yarnpkg.com/lodash.defaults/-/lodash.defaults-4.2.0.tgz#d09178716ffea4dde9e5fb7b37f6f0802274580c"
Expand Down Expand Up @@ -12580,19 +12585,6 @@ [email protected], react-markdown@^4.0.8:
unist-util-visit "^1.3.0"
xtend "^4.0.1"

react-markdown@^4.0.8:
version "4.0.8"
resolved "https://registry.yarnpkg.com/react-markdown/-/react-markdown-4.0.8.tgz#e3621b5becaac82a651008d7bc8390d3e4e438c0"
integrity sha512-Z6oa648rufvzyO0KwYJ/9p9AsdYGIluqK6OlpJ35ouJ8HPF0Ko1WDNdyymjDSHxNrkb7HDyEcIDJCQs8NlET5A==
dependencies:
html-to-react "^1.3.4"
mdast-add-list-metadata "1.0.1"
prop-types "^15.7.2"
remark-parse "^5.0.0"
unified "^6.1.5"
unist-util-visit "^1.3.0"
xtend "^4.0.1"

react-pdf@^4.0.5:
version "4.0.5"
resolved "https://registry.yarnpkg.com/react-pdf/-/react-pdf-4.0.5.tgz#4f5584005a504cb7941b01670b40355f4706b726"
Expand Down Expand Up @@ -14483,6 +14475,15 @@ stylehacks@^4.0.0:
postcss "^7.0.0"
postcss-selector-parser "^3.0.0"

stylus-loader@^3.0.2:
version "3.0.2"
resolved "https://registry.yarnpkg.com/stylus-loader/-/stylus-loader-3.0.2.tgz#27a706420b05a38e038e7cacb153578d450513c6"
integrity sha512-+VomPdZ6a0razP+zinir61yZgpw2NfljeSsdUF5kJuEzlo3khXhY19Fn6l8QQz1GRJGtMCo8nG5C04ePyV7SUA==
dependencies:
loader-utils "^1.0.2"
lodash.clonedeep "^4.5.0"
when "~3.6.x"

stylus@^0.54.5:
version "0.54.5"
resolved "https://registry.yarnpkg.com/stylus/-/stylus-0.54.5.tgz#42b9560931ca7090ce8515a798ba9e6aa3d6dc79"
Expand Down Expand Up @@ -15770,6 +15771,11 @@ whatwg-url@^7.0.0:
tr46 "^1.0.1"
webidl-conversions "^4.0.2"

when@~3.6.x:
version "3.6.4"
resolved "https://registry.yarnpkg.com/when/-/when-3.6.4.tgz#473b517ec159e2b85005497a13983f095412e34e"
integrity sha1-RztRfsFZ4rhQBUl6E5g/CVQS404=

whet.extend@~0.9.9:
version "0.9.9"
resolved "https://registry.yarnpkg.com/whet.extend/-/whet.extend-0.9.9.tgz#f877d5bf648c97e5aa542fadc16d6a259b9c11a1"
Expand Down

0 comments on commit 0998cd1

Please sign in to comment.