Skip to content

Commit

Permalink
add deploy scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ting0130 committed May 27, 2021
1 parent c4e0d05 commit 5d5f35b
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 8 deletions.
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@
"version": "1.1.3",
"description": "This is a document of dtinsight-theme based on Ant Design.",
"repository": "https://github.com/DTStack/ant-design-dtinsight-theme",
"homepage": "https://github.com/DTStack/ant-design-dtinsight-theme",
"main": "index.js",
"scripts": {
"dev": "cross-env NODE_ENV=development bisheng start",
"build": "bisheng build",
"clean": "rimraf dist/*",
"changelog": "./scripts/changelog.sh",
"release": "./scripts/release.sh",
"publish-test": "./scripts/publish.sh"
"publish-test": "./scripts/publish.sh",
"predeploy": "npm run build",
"deploy": "gh-pages -d build"
},
"keywords": [
"antd-theme",
Expand All @@ -29,6 +32,7 @@
"bisheng-plugin-toc": "^0.4.4",
"cross-env": "^5.2.0",
"file-loader": "^6.0.0",
"gh-pages": "^3.2.0",
"intersection-observer": "^0.7.0",
"lz-string": "^1.4.4",
"moment": "^2.24.0",
Expand Down
7 changes: 1 addition & 6 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,4 @@ if [ $env ] ; then
git push --follow-tags $env $branch
fi;

echo "Release finished."

## publish package
npm publish

echo "Publish finished."
echo "Release finished."
38 changes: 37 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4463,7 +4463,16 @@ find-cache-dir@^2.1.0:
make-dir "^2.0.0"
pkg-dir "^3.0.0"

[email protected]:
find-cache-dir@^3.3.1:
version "3.3.1"
resolved "http://registry.npm.dtstack.com/find-cache-dir/-/find-cache-dir-3.3.1.tgz#89b33fad4a4670daa94f855f7fbe31d6d84fe880"
integrity sha512-t2GDMt3oGC/v+BMwzmllWDuJF/xcDtE5j/fCGbqDD7OLuJkj0cfh1YSA5VKPvwMeLFLNDBkwOKZ2X85jGLVftQ==
dependencies:
commondir "^1.0.1"
make-dir "^3.0.2"
pkg-dir "^4.1.0"

[email protected], find-up@^4.0.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/find-up/-/find-up-4.1.0.tgz#97afe7d6cdc0bc5928584b7c8d7b16e8a9aa5d19"
integrity sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==
Expand Down Expand Up @@ -4708,6 +4717,19 @@ gh-pages@^2.1.1:
fs-extra "^8.1.0"
globby "^6.1.0"

gh-pages@^3.2.0:
version "3.2.0"
resolved "http://registry.npm.dtstack.com/gh-pages/-/gh-pages-3.2.0.tgz#ac5f9f03dae7622740ff39613ee2cfeacabc680b"
integrity sha1-rF+fA9rnYidA/zlhPuLP6sq8aAs=
dependencies:
async "^2.6.1"
commander "^2.18.0"
email-addresses "^3.0.1"
filenamify-url "^1.0.0"
find-cache-dir "^3.3.1"
fs-extra "^8.1.0"
globby "^6.1.0"

[email protected]:
version "2.0.0"
resolved "https://registry.yarnpkg.com/git-raw-commits/-/git-raw-commits-2.0.0.tgz#d92addf74440c14bcc5c83ecce3fb7f8a79118b5"
Expand Down Expand Up @@ -6391,6 +6413,13 @@ make-dir@^2.0.0:
pify "^4.0.1"
semver "^5.6.0"

make-dir@^3.0.2:
version "3.1.0"
resolved "http://registry.npm.dtstack.com/make-dir/-/make-dir-3.1.0.tgz#415e967046b3a7f1d185277d84aa58203726a13f"
integrity sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==
dependencies:
semver "^6.0.0"

map-age-cleaner@^0.1.1:
version "0.1.3"
resolved "https://registry.yarnpkg.com/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz#7d583a7306434c055fe474b0f45078e6e1b4b92a"
Expand Down Expand Up @@ -7542,6 +7571,13 @@ pkg-dir@^3.0.0:
dependencies:
find-up "^3.0.0"

pkg-dir@^4.1.0:
version "4.2.0"
resolved "http://registry.npm.dtstack.com/pkg-dir/-/pkg-dir-4.2.0.tgz#f099133df7ede422e81d1d8448270eeb3e4261f3"
integrity sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==
dependencies:
find-up "^4.0.0"

pkg-up@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/pkg-up/-/pkg-up-2.0.0.tgz#c819ac728059a461cab1c3889a2be3c49a004d7f"
Expand Down

0 comments on commit 5d5f35b

Please sign in to comment.