chore(build): update build script and add grunt yarn script (#2276)

pull/2281/head
Anthony Lapenna 2018-09-16 10:34:46 +08:00 committed by GitHub
parent 313c8be997
commit 22450bbdeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -24,7 +24,7 @@ function build_archive() {
function build_all() {
mkdir -pv "${ARCHIVE_BUILD_FOLDER}"
for tag in $@; do
grunt "release:`echo "$tag" | tr '-' ':'`"
yarn grunt "release:`echo "$tag" | tr '-' ':'`"
name="portainer"; if [ "$(echo "$tag" | cut -c1)" = "w" ]; then name="${name}.exe"; fi
mv dist/portainer-$tag* dist/$name
if [ `echo $tag | cut -d \- -f 1` == 'linux' ]; then build_and_push_images "$tag"; fi

View File

@ -20,6 +20,7 @@
}
],
"scripts": {
"grunt": "grunt",
"dev": "yarn grunt run-dev",
"clean-all": "yarn grunt clean:all",
"build": "yarn grunt build",