aboutsummaryrefslogtreecommitdiffstats
path: root/library/sprintf.js/gruntfile.js
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-05-14 22:12:56 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-05-14 22:12:56 -0700
commitf0cb3cba124e637fa46143b692dbb561d4ee3ae0 (patch)
tree4f68c7be82a55db67083c4618fa6dfa227994713 /library/sprintf.js/gruntfile.js
parenta6cb90c81c29663e96d4fd96acd43fde1c28ac15 (diff)
parent291f3beccfa6aede56cd2df811701fecbbdbbbc1 (diff)
downloadvolse-hubzilla-f0cb3cba124e637fa46143b692dbb561d4ee3ae0.tar.gz
volse-hubzilla-f0cb3cba124e637fa46143b692dbb561d4ee3ae0.tar.bz2
volse-hubzilla-f0cb3cba124e637fa46143b692dbb561d4ee3ae0.zip
Merge branch 'master' into tres
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"])
+}