aboutsummaryrefslogtreecommitdiffstats
path: root/library/sprintf.js/gruntfile.js
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-05-14 22:01:02 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-05-14 22:01:02 -0700
commitbceef58584a5753482412e7029f59710afe94a20 (patch)
tree90e6d35708946a3154a18c2b91b6210b8c8202e9 /library/sprintf.js/gruntfile.js
parent47564d4310da9a494cafcaba2741d6974dfcb9ce (diff)
parentd5803cfd0221cccc2456d72f15f39cf4f891a1da (diff)
downloadvolse-hubzilla-bceef58584a5753482412e7029f59710afe94a20.tar.gz
volse-hubzilla-bceef58584a5753482412e7029f59710afe94a20.tar.bz2
volse-hubzilla-bceef58584a5753482412e7029f59710afe94a20.zip
Merge https://github.com/redmatrix/redmatrix into pending_merge
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"])
+}