Skip to content

Commit

Permalink
added the MIT licence in the generated files.
Browse files Browse the repository at this point in the history
  • Loading branch information
webcore-it committed Feb 5, 2015
1 parent 6ee6b35 commit 609cdd3
Show file tree
Hide file tree
Showing 3 changed files with 104 additions and 51 deletions.
55 changes: 52 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = function(grunt) {
module.exports = function (grunt) {

// Project configuration.
grunt.initConfig({
Expand All @@ -18,7 +18,31 @@ module.exports = function(grunt) {
// ----------------------------------------------------------------------
concat: {
options: {
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n',
banner: '/*! <%= pkg.name %> | build at <%= grunt.template.today("yyyy-mm-dd") %> */\n\n' +
'/*! \n' +
'The MIT License (MIT) \n' +
' \n' +
'Copyright (c) 2014 webcore-it \n' +
' \n' +
'Permission is hereby granted, free of charge, to any person obtaining a copy \n' +
'of this software and associated documentation files (the "Software"), to deal \n' +
'in the Software without restriction, including without limitation the rights \n' +
'to use, copy, modify, merge, publish, distribute, sublicense, and/or sell \n' +
'copies of the Software, and to permit persons to whom the Software is \n' +
'furnished to do so, subject to the following conditions: \n' +
' \n' +
'The above copyright notice and this permission notice shall be included in all \n' +
'copies or substantial portions of the Software. \n' +
' \n' +
'THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR \n' +
'IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, \n' +
'FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE \n' +
'AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER \n' +
'LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, \n' +
'OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE \n' +
'SOFTWARE. \n' +
'*/ \n\n',

stripBanners: true
},
src: {
Expand All @@ -29,7 +53,32 @@ module.exports = function(grunt) {
// ----------------------------------------------------------------------
uglify: {
options: {
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
banner: '/*! <%= pkg.name %> | build at <%= grunt.template.today("yyyy-mm-dd") %> */\n\n' +
'/*! \n' +
'The MIT License (MIT) \n' +
' \n' +
'Copyright (c) 2014 webcore-it \n' +
' \n' +
'Permission is hereby granted, free of charge, to any person obtaining a copy \n' +
'of this software and associated documentation files (the "Software"), to deal \n' +
'in the Software without restriction, including without limitation the rights \n' +
'to use, copy, modify, merge, publish, distribute, sublicense, and/or sell \n' +
'copies of the Software, and to permit persons to whom the Software is \n' +
'furnished to do so, subject to the following conditions: \n' +
' \n' +
'The above copyright notice and this permission notice shall be included in all \n' +
'copies or substantial portions of the Software. \n' +
' \n' +
'THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR \n' +
'IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, \n' +
'FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE \n' +
'AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER \n' +
'LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, \n' +
'OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE \n' +
'SOFTWARE. \n' +
'*/ \n\n',

stripBanners: true
},
src: {
src: 'dist/<%= pkg.name %>.js',
Expand Down
52 changes: 27 additions & 25 deletions dist/colorful-background-css-generator.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,29 @@
/*! colorful-background-css-generator 2014-09-12 */
/*
The MIT License (MIT)
Copyright (c) 2014 webcore-it
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
/*! colorful-background-css-generator | build at 2015-02-05 */

/*!
The MIT License (MIT)
Copyright (c) 2014 webcore-it
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/

function ColorfulBackgroundGenerator() {
/**
* Holds all layers.
Expand Down Expand Up @@ -225,4 +227,4 @@ ColorfulBackgroundLayer.prototype.getDegreeForVendor = function(prefix) {
// linear-gradient is counting degrees clockwise. 0° is at the bottom side.
// (prefix === undefined)
return this.degree;
};
};
48 changes: 25 additions & 23 deletions dist/colorful-background-css-generator.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 609cdd3

Please sign in to comment.