mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 06:36:11 +03:00
Fixed compress and moved build to build/openseadragon
The zip and tar now go into build next to build/openseadragon
This commit is contained in:
parent
98e8289c9b
commit
8074b338d1
24
Gruntfile.js
24
Gruntfile.js
@ -8,8 +8,8 @@ module.exports = function(grunt) {
|
||||
grunt.loadNpmTasks("grunt-contrib-connect");
|
||||
grunt.loadNpmTasks("grunt-contrib-watch");
|
||||
|
||||
var distribution = "build/openseadragon.js",
|
||||
minified = "build/openseadragon.min.js",
|
||||
var distribution = "build/openseadragon/openseadragon.js",
|
||||
minified = "build/openseadragon/openseadragon.min.js",
|
||||
sources = [
|
||||
"src/openseadragon.js",
|
||||
"src/eventhandler.js",
|
||||
@ -60,14 +60,20 @@ module.exports = function(grunt) {
|
||||
},
|
||||
compress: {
|
||||
zip: {
|
||||
files: {
|
||||
"openseadragon.zip": "build/**"
|
||||
}
|
||||
options: {
|
||||
archive: "build/openseadragon.zip"
|
||||
},
|
||||
files: [
|
||||
{ expand: true, cwd: "build/", src: ["openseadragon/**"] }
|
||||
]
|
||||
},
|
||||
tar: {
|
||||
files: {
|
||||
"openseadragon.tar": "build/**"
|
||||
}
|
||||
options: {
|
||||
archive: "build/openseadragon.tar"
|
||||
},
|
||||
files: [
|
||||
{ expand: true, cwd: "build/", src: [ "openseadragon/**" ] }
|
||||
]
|
||||
}
|
||||
},
|
||||
qunit: {
|
||||
@ -106,7 +112,7 @@ module.exports = function(grunt) {
|
||||
// Copy task.
|
||||
grunt.registerTask("copy", function() {
|
||||
grunt.file.recurse("images", function(abspath, rootdir, subdir, filename) {
|
||||
grunt.file.copy(abspath, "build/images/" + (subdir || "") + filename);
|
||||
grunt.file.copy(abspath, "build/openseadragon/images/" + (subdir || "") + filename);
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
<div id="qunit-fixture"></div>
|
||||
<div id="example"></div>
|
||||
<script src="/node_modules/grunt-contrib-qunit/test/libs/qunit.js"></script>
|
||||
<script src="/build/openseadragon.min.js"></script>
|
||||
<script src="/build/openseadragon/openseadragon.min.js"></script>
|
||||
<script src="/test/test.js"></script>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user