зеркало из https://github.com/nextcloud/news.git
more enhancements for grunt
This commit is contained in:
Родитель
467f320d98
Коммит
151527c264
|
@ -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>'
|
||||
|
|
11
js/app.js
11
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){
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче