mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-21 20:56: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.
|
||||
// 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.
|
||||
// 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.
|
||||
|
Loading…
Reference in New Issue
Block a user