diff options
author | Klaus Weidenbach <Klaus.Weidenbach@gmx.net> | 2015-05-14 10:39:56 +0200 |
---|---|---|
committer | Klaus Weidenbach <Klaus.Weidenbach@gmx.net> | 2015-05-14 10:39:56 +0200 |
commit | c62e75d789787cc21438dde943885dda9f0ae387 (patch) | |
tree | 78eacb1017da745432628d94769093790917a41d /library/sprintf.js/gruntfile.js | |
parent | f866a42a42b9e12756353f5bb39a0f31a64bb26a (diff) | |
download | volse-hubzilla-c62e75d789787cc21438dde943885dda9f0ae387.tar.gz volse-hubzilla-c62e75d789787cc21438dde943885dda9f0ae387.tar.bz2 volse-hubzilla-c62e75d789787cc21438dde943885dda9f0ae387.zip |
Add sprintf.js v1.0.2.
This script provides sprintf() for JavaScript. It can be used for
example for translating strings used in JavaScript with variables.
It is licensed under BSD-3-Clause and can be found on GitHub:
https://github.com/alexei/sprintf.js
Diffstat (limited to 'library/sprintf.js/gruntfile.js')
-rw-r--r-- | library/sprintf.js/gruntfile.js | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/library/sprintf.js/gruntfile.js b/library/sprintf.js/gruntfile.js new file mode 100644 index 000000000..246e1c3b9 --- /dev/null +++ b/library/sprintf.js/gruntfile.js @@ -0,0 +1,36 @@ +module.exports = function(grunt) { + grunt.initConfig({ + pkg: grunt.file.readJSON("package.json"), + + uglify: { + options: { + banner: "/*! <%= pkg.name %> | <%= pkg.author %> | <%= pkg.license %> */\n", + sourceMap: true + }, + build: { + files: [ + { + src: "src/sprintf.js", + dest: "dist/sprintf.min.js" + }, + { + src: "src/angular-sprintf.js", + dest: "dist/angular-sprintf.min.js" + } + ] + } + }, + + watch: { + js: { + files: "src/*.js", + tasks: ["uglify"] + } + } + }) + + grunt.loadNpmTasks("grunt-contrib-uglify") + grunt.loadNpmTasks("grunt-contrib-watch") + + grunt.registerTask("default", ["uglify", "watch"]) +} |