aboutsummaryrefslogtreecommitdiffstats
path: root/library/sprintf.js/gruntfile.js
diff options
context:
space:
mode:
Diffstat (limited to 'library/sprintf.js/gruntfile.js')
-rw-r--r--library/sprintf.js/gruntfile.js36
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"])
+}