-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
"build-package": "yarn build:js && yarn build:css && yarn build:scss", | ||
"build-styleguide": "styleguidist build --config config/styleguide.config.js", | ||
"build:for-staging": | ||
"yarn build-package && yarn build-styleguide && gitbook build guide guide/staging", | ||
"yarn build-package && STYLEGUIDIST_ENV=staging yarn build-styleguide && gitbook build guide guide/staging", | ||
This comment has been minimized.
Sorry, something went wrong.
ryanoglesby08
Contributor
|
||
"deploy:docs": "node ./scripts/deploy-docs.js", | ||
"deploy:package": "scripts/publish.sh", | ||
"dev": "styleguidist server --config config/styleguide.config.js", | ||
|
@@ -137,8 +137,7 @@ | |
"icons/scripts/icons.js", | ||
"styleguide/**", | ||
"**.tgz", | ||
"guide/_book/**", | ||
"guide/staging/**" | ||
"guide/**" | ||
] | ||
} | ||
} |
It may be cleaner here to just extract all the logic for determining the value of
styleguideDir
into a single function so that all the logic is together. At the moment its scattered among 2 functions and an inline ternary statement, which means in order to understand it I have to look all over the place.Maybe something like this, and the
getStyleguideDir
function does everything it needs to?