Skip to content
This repository has been archived by the owner on Nov 20, 2018. It is now read-only.

Commit

Permalink
chore(build): create zip files for download
Browse files Browse the repository at this point in the history
  • Loading branch information
rnicholus committed Aug 6, 2016
1 parent 2fb7515 commit 9c10712
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.PHONY: clean _build

VERSION=`node -pe "require('./package.json').version"`

NPM-BIN = $(shell npm bin)

BUILD-OUT-DIR = _build
Expand Down Expand Up @@ -205,6 +207,7 @@ lint:
_build:
mkdir -p $@
cp -pR $(SRC-DIR)/placeholders $@
cp -pR $(SRC-DIR)/html/templates $@
cp $(SRC-DIR)/*.css $@
cp $(SRC-DIR)/*.gif $@
$(NPM-BIN)/cleancss --source-map $@/fine-uploader.css -o $@/fine-uploader.min.css
Expand Down Expand Up @@ -377,3 +380,14 @@ test: start-test-resources-server start-root-server build-all-ui
$(NPM-BIN)/karma start config/karma.conf.js
make stop-test-resources-server
make stop-root-server

zip: zip-traditional zip-s3 zip-azure

zip-traditional:
(cd $(BUILD-OUT-DIR) ; zip fine-uploader.zip placeholders/* templates/* *.gif fine-uploader*.* core.fine-uploader*.*)

zip-s3:
(cd $(BUILD-OUT-DIR) ; zip s3.fine-uploader.zip placeholders/* templates/* *.gif fine-uploader*.css* s3*.*)

zip-azure:
(cd $(BUILD-OUT-DIR) ; zip azure.fine-uploader.zip placeholders/* templates/* *.gif fine-uploader*.css* azure*.*)
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@
"uuid": "1.4.1"
},
"scripts": {
"build": "grunt package",
"devbuild": "make clean; grunt dev",
"build": "make lint; make build",
"devbuild": "make clean; make build-all-ui",
"lint": "make lint",
"setup-dev": "(cd test/dev/handlers; curl -sS https://getcomposer.org/installer | php; php composer.phar install)",
"start-local-dev": "(. test/dev/handlers/s3keys.sh; php -S 0.0.0.0:9090 -t . -c test/dev/handlers/php.ini)",
Expand Down

0 comments on commit 9c10712

Please sign in to comment.