From 7dae7aaced98aba6a832faa11e61fc2e7443c88b Mon Sep 17 00:00:00 2001 From: Anike Arni Date: Thu, 29 Dec 2016 11:39:47 -0200 Subject: Move package script to npm --- web-ui/config/package.sh | 27 --------------------------- web-ui/package.json | 2 +- 2 files changed, 1 insertion(+), 28 deletions(-) delete mode 100644 web-ui/config/package.sh 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 . - -# 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" } -- cgit v1.2.3