mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-24 06:06:09 +03:00
Now zipping and taring ("grunt package")
This commit is contained in:
parent
d179325f71
commit
2d78e012a0
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,3 +1,5 @@
|
||||
*.sublime-workspace
|
||||
node_modules
|
||||
build/
|
||||
openseadragon.zip
|
||||
openseadragon.tar
|
||||
|
16
grunt.js
16
grunt.js
@ -1,5 +1,7 @@
|
||||
module.exports = function(grunt) {
|
||||
|
||||
grunt.loadNpmTasks("grunt-contrib-compress");
|
||||
|
||||
var distribution = "build/openseadragon.js",
|
||||
minified = "build/openseadragon.min.js",
|
||||
sources = [
|
||||
@ -50,6 +52,18 @@ module.exports = function(grunt) {
|
||||
dest: minified
|
||||
}
|
||||
},
|
||||
compress: {
|
||||
zip: {
|
||||
files: {
|
||||
"openseadragon.zip": "build/**"
|
||||
}
|
||||
},
|
||||
tar: {
|
||||
files: {
|
||||
"openseadragon.tar": "build/**"
|
||||
}
|
||||
}
|
||||
},
|
||||
qunit: {
|
||||
all: [ "http://localhost:8000/test/test.html" ]
|
||||
},
|
||||
@ -99,4 +113,6 @@ module.exports = function(grunt) {
|
||||
// Test task.
|
||||
grunt.registerTask("test", "default server qunit");
|
||||
|
||||
// Package task.
|
||||
grunt.registerTask("package", "default compress");
|
||||
};
|
||||
|
@ -5,7 +5,8 @@
|
||||
"dependencies": {
|
||||
"grunt": "0.3.17",
|
||||
"qunitjs": "1.11.0",
|
||||
"phantomjs": "1.8.1-3"
|
||||
"phantomjs": "1.8.1-3",
|
||||
"grunt-contrib-compress": "0.3.3"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "grunt test"
|
||||
|
Loading…
Reference in New Issue
Block a user