Skip to content

Commit

Permalink
chore(Build): Add license to css files
Browse files Browse the repository at this point in the history
License banner is now added to css files automatically.

Also updated LICENSE.md date and the license banner formatting

Fixes #1316
  • Loading branch information
c0bra committed Jan 29, 2015
1 parent 04d2fa6 commit d6eec4c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
17 changes: 11 additions & 6 deletions Gruntfile.js
Expand Up @@ -31,11 +31,12 @@ module.exports = function(grunt) {
stable_version: util.getStableVersion(), stable_version: util.getStableVersion(),
dist: 'dist', dist: 'dist',
site: process.env.TRAVIS ? 'ui-grid.info' : '127.0.0.1:<%= connect.docs.options.port %>', 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' + '<%= grunt.template.today("yyyy-mm-dd") %>\n' +
'<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' + '<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' +
'* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' + ' * Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' +
' License: <%= pkg.license %> */\n', ' License: <%= pkg.license %> \n */\n\n',


shell: { shell: {
options: { options: {
Expand Down Expand Up @@ -128,18 +129,22 @@ module.exports = function(grunt) {
less: { less: {
dist: { dist: {
// paths: ['/bower_components/bootstrap'], // paths: ['/bower_components/bootstrap'],
options: {
banner: '<%= banner %>'
},
files: { 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/icon/icons.data.svg.css'],
'dist/release/<%= pkg.name %>.css': ['src/less/main.less', 'src/features/*/less/**/*.less', '.tmp/font/ui-grid-codes.css'] 'dist/release/<%= pkg.name %>.css': ['src/less/main.less', 'src/features/*/less/**/*.less', '.tmp/font/ui-grid-codes.css']
} }
}, },
min: { min: {
options: {
banner: '<%= banner %>',
compress: true
},
files: { 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/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'] 'dist/release/<%= pkg.name %>.min.css': ['src/less/main.less', 'src/features/*/less/**/*.less', '.tmp/font/ui-grid-codes.css']
},
options: {
compress: true
} }
} }
}, },
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
@@ -1,6 +1,6 @@
The MIT License 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 Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -35,7 +35,7 @@
"grunt-contrib-jasmine": "~0.5", "grunt-contrib-jasmine": "~0.5",
"grunt-contrib-clean": "~0.5", "grunt-contrib-clean": "~0.5",
"grunt-contrib-jshint": "~0.7", "grunt-contrib-jshint": "~0.7",
"grunt-contrib-less": "~0.8", "grunt-contrib-less": "~1.0",
"grunt-angular-templates": "~0.5", "grunt-angular-templates": "~0.5",
"grunt-contrib-connect": "~0.5", "grunt-contrib-connect": "~0.5",
"grunt-fontello": "~0.1", "grunt-fontello": "~0.1",
Expand Down

0 comments on commit d6eec4c

Please sign in to comment.