Skip to content

Commit

Permalink
VP-310: added version number to zip filename
Browse files Browse the repository at this point in the history
Added the version number to the zip file name and updated the version in package.json to have -SNAPSHOT
  • Loading branch information
jobara committed May 3, 2013
1 parent 2af6982 commit 4764747
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions GruntFile.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
clean: {
build: "build",
products: "products"
},
compress: {
src: {
options: {
archive: "products/videoPlayer-all.zip"
archive: "products/videoPlayer-all-<%= pkg.version %>.zip"
},
files: [
// expand makes the src relative to cwd path, and flatten collapses the file down to the cwd directory
Expand All @@ -18,7 +19,7 @@ module.exports = function (grunt) {
},
min: {
options: {
archive: "products/videoPlayer-all-min.zip"
archive: "products/videoPlayer-all-min-<%= pkg.version %>.zip"
},
files: [
// expand makes the src relative to cwd path, and flatten collapses the file down to the cwd directory
Expand Down
4 changes: 2 additions & 2 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ Build:
npm install

# runs the build and creates
# products/videoPlayer-all.zip
# products/videoPlayer-all-min.zip
# products/videoPlayer-all-VERSION.zip
# products/videoPlayer-all-min-VERSION.zip
grunt

Other build tasks:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fluid-videoPlayer",
"version": "0.1.0",
"version": "0.1.0-SNAPSHOT",
"description": "HTML5 video player built atop Fluid Infusion",
"repository": {
"type": "git",
Expand Down

0 comments on commit 4764747

Please sign in to comment.