summaryrefslogtreecommitdiff
path: root/web-ui
diff options
context:
space:
mode:
authorAnike Arni <aarni@thoughtworks.com>2016-12-29 11:39:47 -0200
committerAnike Arni <aarni@thoughtworks.com>2016-12-29 11:39:47 -0200
commit7dae7aaced98aba6a832faa11e61fc2e7443c88b (patch)
treeef770add6033a578ca3412c643abe15c2fe1e69d /web-ui
parentf016c96fd479fb68f97c543382be212f383ec755 (diff)
Move package script to npm
Diffstat (limited to 'web-ui')
-rw-r--r--web-ui/config/package.sh27
-rw-r--r--web-ui/package.json2
2 files changed, 1 insertions, 28 deletions
diff --git a/web-ui/config/package.sh b/web-ui/config/package.sh
deleted file mode 100644
index 97cf185a..00000000
--- a/web-ui/config/package.sh
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/bash
-# Copyright (c) 2014 ThoughtWorks, Inc.
-#
-# Pixelated is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# Pixelated is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with Pixelated. If not, see <http://www.gnu.org/licenses/>.
-
-# prepare files for .deb package
-
-set -e
-
-export PIXELATED_BUILD='package'
-
-mkdir -p dist
-
-# initial npm tasks
-./go build-prod
-./go imagemin
diff --git a/web-ui/package.json b/web-ui/package.json
index 0d64a5df..3d1720e1 100644
--- a/web-ui/package.json
+++ b/web-ui/package.json
@@ -60,7 +60,7 @@
"build-js": "webpack --colors --progress",
"jshint": "jshint --config=.jshintrc app test",
"clean": "rm -rf dist/ app/js/generated/hbs/* app/css/*",
- "package": "/bin/bash config/package.sh",
+ "package": "PIXELATED_BUILD='package' npm run build-prod && npm run imagemin",
"imagemin": "node config/imagemin.js",
"add_git_version": "/bin/bash config/add_git_version.sh"
}