mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 05:06:09 +03:00
Added bower update mechanism
This commit is contained in:
parent
2f9b3091c9
commit
2ab984aa38
10
Gruntfile.js
10
Gruntfile.js
@ -208,6 +208,14 @@ module.exports = function(grunt) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// ----------
|
||||||
|
grunt.registerTask("bower", function() {
|
||||||
|
var path = "../site-build/bower.json";
|
||||||
|
var data = grunt.file.readJSON(path);
|
||||||
|
data.version = packageJson.version;
|
||||||
|
grunt.file.write(path, JSON.stringify(data, null, 2) + "\n");
|
||||||
|
});
|
||||||
|
|
||||||
// ----------
|
// ----------
|
||||||
// Build task.
|
// Build task.
|
||||||
// Cleans out the build folder and builds the code and images into it, checking lint.
|
// Cleans out the build folder and builds the code and images into it, checking lint.
|
||||||
@ -229,7 +237,7 @@ module.exports = function(grunt) {
|
|||||||
// ----------
|
// ----------
|
||||||
// Publish task.
|
// Publish task.
|
||||||
// Cleans the built files out of the release folder and copies newly built ones over.
|
// Cleans the built files out of the release folder and copies newly built ones over.
|
||||||
grunt.registerTask("publish", ["package", "clean:release", "copy:release"]);
|
grunt.registerTask("publish", ["package", "clean:release", "copy:release", "bower"]);
|
||||||
|
|
||||||
// ----------
|
// ----------
|
||||||
// Default task.
|
// Default task.
|
||||||
|
Loading…
Reference in New Issue
Block a user