Skip to content

Commit da6a352

Browse files
committed
release information within artefacts (auto)
1 parent e71c4fe commit da6a352

File tree

7 files changed

+47
-8
lines changed

7 files changed

+47
-8
lines changed

Gruntfile.coffee

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@ module.exports = (grunt) ->
1010
grunt.loadNpmTasks 'grunt-contrib-uglify'
1111

1212
grunt.initConfig
13+
packageBower: grunt.file.readJSON('./bower.json')
14+
timestamp: (new Date()).toISOString()
15+
releaseData:
16+
'/*!\n' +
17+
' * <%= packageBower.name %>\n' +
18+
' * <%= packageBower.homepage %>\n' +
19+
' * Version: <%= packageBower.version %> -- <%= timestamp %>\n' +
20+
' * License: <%= packageBower.license %>\n' +
21+
' */\n'
1322
connect:
1423
app:
1524
options:
@@ -49,11 +58,11 @@ module.exports = (grunt) ->
4958
bare: true
5059
#sourceMap: true
5160

52-
#prepend 'use strict' to the files
5361
concat:
54-
#usestrict:
5562
options:
56-
banner: '(function () {\n\'use strict\';\n'
63+
#prepend 'use strict' and release data to the files
64+
banner:
65+
'<%= releaseData %> \n\n (function () {\n\'use strict\';\n'
5766
footer: '}());'
5867
stripBanners: true
5968
process: (src, filepath) ->
@@ -71,11 +80,13 @@ module.exports = (grunt) ->
7180
)
7281

7382
dynamic_mappings:
74-
files:
83+
files:
7584
'dist/ui-scroll.js': ['./temp/**/ui-scroll.js']
7685
'dist/ui-scroll-jqlite.js': ['./temp/**/ui-scroll-jqlite.js']
7786

7887
uglify:
88+
options:
89+
banner: '<%= releaseData %>'
7990
common:
8091
files:
8192
'./dist/ui-scroll.min.js': [

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-ui-scroll",
3-
"version": "1.3.0",
3+
"version": "1.3.1",
44
"homepage": "https://github.com/angular-ui/ui-scroll.git",
55
"description": "AngularJS infinite scrolling module",
66
"main": "./dist/ui-scroll.js",

dist/ui-scroll-jqlite.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
(function () {
1+
/*!
2+
* angular-ui-scroll
3+
* https://github.com/angular-ui/ui-scroll.git
4+
* Version: 1.3.1 -- 2015-08-05T13:39:04.079Z
5+
* License: MIT
6+
*/
7+
8+
9+
(function () {
210
'use strict';
311
angular.module('ui.scroll.jqlite', ['ui.scroll']).service('jqLiteExtras', [
412
'$log', '$window', function(console, window) {

dist/ui-scroll-jqlite.min.js

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/ui-scroll.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
(function () {
1+
/*!
2+
* angular-ui-scroll
3+
* https://github.com/angular-ui/ui-scroll.git
4+
* Version: 1.3.1 -- 2015-08-05T13:39:04.079Z
5+
* License: MIT
6+
*/
7+
8+
9+
(function () {
210
'use strict';
311

412
/*!

dist/ui-scroll.min.js

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "angular-ui-scroll",
33
"description": "two way infinite scroll",
4-
"version": "1.3.0",
4+
"version": "1.3.1",
55
"src": "./src/",
66
"public": "./public/",
77
"main": "./dist/ui-scroll.js",

0 commit comments

Comments
 (0)