Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/candy-chat/candy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Langfeld <ben@langfeld.me>2015-08-11 15:57:15 +0300
committerBen Langfeld <ben@langfeld.me>2015-08-11 15:57:15 +0300
commitab1d173a2b52c48a56f5d4ddbb1e9b1b08b556a9 (patch)
treeb9ed2708e9f0898a16d178c459101e25b7070e7f
parent711ab71230076539ef3139e02475976a275d1997 (diff)
Add grunt task for creating release packages
-rw-r--r--.gitignore1
-rw-r--r--Gruntfile.js14
-rw-r--r--package.json7
3 files changed, 19 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index 3a9bb32..05fa461 100644
--- a/.gitignore
+++ b/.gitignore
@@ -14,3 +14,4 @@ libs.min.*
.vagrant
*.log
lcov.info
+candy.zip
diff --git a/Gruntfile.js b/Gruntfile.js
index 70057ca..24bd885 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -184,6 +184,19 @@ module.exports = function(grunt) {
options: {},
src: ['src/**/*.js'],
tests: ['tests/**/*.js']
+ },
+ compress: {
+ main: {
+ options: {
+ archive: 'candy.zip'
+ },
+ files: [
+ {
+ src: ['**'],
+ dest: './'
+ },
+ ]
+ }
}
});
@@ -191,6 +204,7 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-clean');
+ grunt.loadNpmTasks('grunt-contrib-compress');
grunt.loadNpmTasks('grunt-natural-docs');
grunt.loadNpmTasks('grunt-mkdir');
grunt.loadNpmTasks('grunt-notify');
diff --git a/package.json b/package.json
index f147d6a..43f9d6f 100644
--- a/package.json
+++ b/package.json
@@ -42,6 +42,7 @@
"grunt": "^0.4.5",
"grunt-clear": "^0.2.1",
"grunt-contrib-clean": "^0.5.0",
+ "grunt-contrib-compress": "^0.13.0",
"grunt-contrib-jshint": "^0.10.0",
"grunt-contrib-uglify": "^0.4.0",
"grunt-contrib-watch": "^0.6.1",
@@ -50,11 +51,11 @@
"grunt-natural-docs": "^0.1.1",
"grunt-notify": "^0.3.0",
"grunt-sync-pkg": "^0.1.2",
+ "grunt-todo": "~0.4.0",
"intern": "^2.0.1",
"jshint-stylish": "^0.2.0",
- "sinon": "^1.10.3",
- "sinon-chai": "^2.5.0",
"lolex": "^1.2.0",
- "grunt-todo": "~0.4.0"
+ "sinon": "^1.10.3",
+ "sinon-chai": "^2.5.0"
}
}