-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dimitri Alexander Kopriwa
committed
Jun 26, 2018
1 parent
aef373d
commit babe53f
Showing
3 changed files
with
48 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,24 @@ | ||
#!/usr/bin/env bash | ||
|
||
npx @yeutech/rollup-umd-scripts doc variable \ | ||
version=$1 | ||
if [[ $version ]]; then | ||
echo "Building documentation for tag $version" | ||
git checkout refs/tags/$1 | ||
fi | ||
|
||
npm install | ||
npx rollup-umd-scripts doc variable \ | ||
PACKAGE_NAME=${PACKAGE_NAME} \ | ||
PACKAGE_PEERS="$(npx @yeutech/rollup-umd-scripts peer npm-install-cmd)" \ | ||
PACKAGE_PEERS="$(npx rollup-umd-scripts peer npm-install-cmd)" \ | ||
PACKAGE_VERSION=${PACKAGE_VERSION} \ | ||
NODE_VERSION=${NODE_VERSION} \ | ||
NPM_VERSION=${NPM_VERSION} \ | ||
CI_REPOSITORY_URL=${CI_REPOSITORY_URL} \ | ||
CI_PROJECT_URL=${CI_PROJECT_URL} \ | ||
CI_PROJECT_NAMESPACE=${CI_PROJECT_NAMESPACE} \ | ||
CI_PROJECT_NAME=${CI_PROJECT_NAME} \ | ||
IMG_SHIELD_PUBLISHING=$(npx @yeutech/rollup-umd-scripts publish status --badge) | ||
CI_REPOSITORY_URL="https://github.com/${TRAVIS_REPO_SLUG}.git" \ | ||
CI_PROJECT_URL="https://github.com/${TRAVIS_REPO_SLUG}" \ | ||
CI_PROJECT_NAMESPACE=$(echo $TRAVIS_REPO_SLUG | awk -F / '{print $1}') \ | ||
CI_PROJECT_NAME=$(echo $TRAVIS_REPO_SLUG | awk -F / '{print $2}') \ | ||
IMG_SHIELD_PUBLISHING=$(npx rollup-umd-scripts publish status --badge) | ||
|
||
npx rollup-umd-scripts doc add-section -n 'Code of conduct' -a 'FAQ' -c 'CODE_OF_CONDUCT.md' -f | ||
npx rollup-umd-scripts doc add-section -n 'Changelog' -a 'Code of conduct' -c 'CHANGELOG.md' -f | ||
npm run styleguide:build |