summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-02-07 00:29:51 +0100
committerBernhard Posselt <nukeawhale@gmail.com>2013-02-07 00:29:51 +0100
commit151527c2649af40b22aaba76166e06eb0a274b22 (patch)
tree7aa99cf09d2d99921f7594ada10b5bea9be50d96
parent467f320d98fd9279d234b9aea1b8fbf19f710900 (diff)
more enhancements for grunt
-rw-r--r--coffee/grunt.coffee20
-rw-r--r--js/app.js11
2 files changed, 23 insertions, 8 deletions
diff --git a/coffee/grunt.coffee b/coffee/grunt.coffee
index a236f1169..538babc1f 100644
--- a/coffee/grunt.coffee
+++ b/coffee/grunt.coffee
@@ -6,15 +6,18 @@ module.exports = (grunt) ->
meta:
pkg: '<json:package.json>'
- version: '<config:meta.pkg.version>'
- banner: '/*! <%= meta.pkg.description %> - v<%= meta.version %> - ' +
- '<%= grunt.template.today("yyyy-mm-dd") %>\n' +
- ' * https://github.com/owncloud/apps\n' +
+ version: '<%= meta.pkg.version %>'
+ banner: '/**\n' +
+ ' * <%= meta.pkg.description %> - v<%= meta.version %>\n' +
+ ' *\n' +
'<% _.forEach(meta.pkg.contributors, function(contributor){ %>' +
- ' * Copyright (c) <%= grunt.template.today("yyyy") %> ' +
+ ' * Copyright (c) <%= grunt.template.today("yyyy") %> - ' +
'<%= contributor.name %> <<%= contributor.email %>>\n' +
- '<% };) %>' +
- ' * Licensed AGPL \n' +
+ '<% }) %>' +
+ ' *\n' +
+ ' * This file is licensed under the Affero General Public License version 3 or later.\n' +
+ ' * See the COPYING-README file\n' +
+ ' *\n' +
' */'
prefix: '(function(angular, $, OC, oc_requesttoken){'
suffix: '})(window.angular, jQuery, OC, oc_requesttoken);'
@@ -23,7 +26,8 @@ module.exports = (grunt) ->
concat:
app:
- src: [
+ src: [
+ '<banner:meta.banner>'
'<banner:meta.prefix>'
'<%= meta.build %>main.js'
'<banner:meta.suffix>'
diff --git a/js/app.js b/js/app.js
index df3fdbe7e..fe4b04f5f 100644
--- a/js/app.js
+++ b/js/app.js
@@ -1,3 +1,14 @@
+/**
+ * ownCloud RSS reader app - v0.0.1
+ *
+ * Copyright (c) 2013 - Alessandro Cosentino <cosenal@gmail.com>
+ * Copyright (c) 2013 - Bernhard Posselt <nukeawhale@gmail.com>
+ *
+ * This file is licensed under the Affero General Public License version 3 or later.
+ * See the COPYING-README file
+ *
+ */
+
(function(angular, $, OC, oc_requesttoken){