Permalink
Browse files

chore(Build): Add license to css files

License banner is now added to css files automatically.

Also updated LICENSE.md date and the license banner formatting

Fixes #1316
  • Loading branch information...
1 parent 04d2fa6 commit d6eec4c4d692fec31345a89600274fb177b0b9bb @c0bra c0bra committed Jan 29, 2015
Showing with 13 additions and 8 deletions.
  1. +11 −6 Gruntfile.js
  2. +1 −1 LICENSE.md
  3. +1 −1 package.json
View
@@ -31,11 +31,12 @@ module.exports = function(grunt) {
stable_version: util.getStableVersion(),
dist: 'dist',
site: process.env.TRAVIS ? 'ui-grid.info' : '127.0.0.1:<%= connect.docs.options.port %>',
- banner: '/*! <%= pkg.title || pkg.name %> - v<%= version %> - ' +
+ banner: '/*!\n' +
+ ' * <%= pkg.title || pkg.name %> - v<%= version %> - ' +
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
'<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' +
- '* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' +
- ' License: <%= pkg.license %> */\n',
+ ' * Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' +
+ ' License: <%= pkg.license %> \n */\n\n',
shell: {
options: {
@@ -128,18 +129,22 @@ module.exports = function(grunt) {
less: {
dist: {
// paths: ['/bower_components/bootstrap'],
+ options: {
+ banner: '<%= banner %>'
+ },
files: {
// 'dist/release/<%= pkg.name %>.css': ['src/less/main.less', 'src/features/*/less/**/*.less', '.tmp/icon/icons.data.svg.css'],
'dist/release/<%= pkg.name %>.css': ['src/less/main.less', 'src/features/*/less/**/*.less', '.tmp/font/ui-grid-codes.css']
}
},
min: {
+ options: {
+ banner: '<%= banner %>',
+ compress: true
+ },
files: {
// 'dist/release/<%= pkg.name %>.min.css': ['src/less/main.less', 'src/features/*/less/**/*.less', '.tmp/icon/icons.data.svg.css']
'dist/release/<%= pkg.name %>.min.css': ['src/less/main.less', 'src/features/*/less/**/*.less', '.tmp/font/ui-grid-codes.css']
- },
- options: {
- compress: true
}
}
},
View
@@ -1,6 +1,6 @@
The MIT License
-Copyright (c) 2012 the AngularUI Team, http://angular-ui.github.com
+Copyright (c) 2015 the AngularUI Team, http://angular-ui.github.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
View
@@ -35,7 +35,7 @@
"grunt-contrib-jasmine": "~0.5",
"grunt-contrib-clean": "~0.5",
"grunt-contrib-jshint": "~0.7",
- "grunt-contrib-less": "~0.8",
+ "grunt-contrib-less": "~1.0",
"grunt-angular-templates": "~0.5",
"grunt-contrib-connect": "~0.5",
"grunt-fontello": "~0.1",

0 comments on commit d6eec4c

Please sign in to comment.