diff --git a/examples/gulp/package.json b/examples/gulp/package.json index 3d4e1e2..4cf2032 100644 --- a/examples/gulp/package.json +++ b/examples/gulp/package.json @@ -8,7 +8,7 @@ "start": "gulp" }, "author": "", - "license": "ISC", + "license": "MIT", "dependencies": { "gulp": "3.9.1", "gulp-stylus": "2.7.0", diff --git a/examples/webpack-css/package.json b/examples/webpack-css/package.json index 6847529..f8f73e5 100644 --- a/examples/webpack-css/package.json +++ b/examples/webpack-css/package.json @@ -8,7 +8,7 @@ "start": "webpack" }, "author": "", - "license": "ISC", + "license": "MIT", "dependencies": { "css-loader": "1.0.1", "setka": "0.1.2", diff --git a/examples/webpack-stylus/package.json b/examples/webpack-stylus/package.json index 9de76a4..9c22a09 100644 --- a/examples/webpack-stylus/package.json +++ b/examples/webpack-stylus/package.json @@ -8,7 +8,7 @@ "start": "webpack" }, "author": "", - "license": "ISC", + "license": "MIT", "dependencies": { "autoprefixer": "9.3.1", "css-loader": "1.0.1", diff --git a/gulpfile.js b/gulpfile.js index 2dcb00b..f0b82b8 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -6,6 +6,13 @@ const autoprefixer = require('gulp-autoprefixer'); const src = './lib/setka/setka.styl' const csso = require('gulp-csso'); const sourcemaps = require('gulp-sourcemaps'); +const headerComment = require('gulp-header-comment'); +const comment = ` +Setka CSS Library v<%= pkg.version %> +Author: Alexey Novichkov +License: MIT (https://github.com/anovi/setka/blob/master/LICENSE) +Generated on <%= moment().format('YYYY-MM-DD') %> +` // Get one .styl file and render gulp.task('build', function () { @@ -15,6 +22,7 @@ gulp.task('build', function () { .pipe(autoprefixer({ cascade: false })) + .pipe(headerComment(comment)) .pipe(rename("setka.css")) .pipe(sourcemaps.write('.')) .pipe(gulp.dest('./dist')); @@ -32,6 +40,7 @@ gulp.task('build-mini', function () { sourceMap: true, debug: true })) + .pipe(headerComment(comment)) .pipe(rename("setka.min.css")) .pipe(sourcemaps.write('.')) .pipe(gulp.dest('./dist')); diff --git a/package-lock.json b/package-lock.json index 03c71cb..d6f35ac 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2609,6 +2609,12 @@ "integrity": "sha512-wPMUt6FnH2yzG95SA6mzjQOEKUU3aLaDEmzs1ti+1E9h+CsrZghRlqEM/EJ4KscsQVG8uNN4uVreUeT8+drlgg==", "dev": true }, + "commenting": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/commenting/-/commenting-1.0.5.tgz", + "integrity": "sha512-U7qGbcDLSNpOcV3RQRKHp7hFpy9WUmfawbkPdS4R2RhrSu4dOF85QQpx/Zjcv7uLF6tWSUKEKUIkxknPCrVjwg==", + "dev": true + }, "commondir": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", @@ -5614,6 +5620,42 @@ } } }, + "gulp-header-comment": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/gulp-header-comment/-/gulp-header-comment-0.4.0.tgz", + "integrity": "sha512-2GQBDQNhZ58bJBJvZckTLUkkNIqORaG0Oi8whKkVR6S0Tk1DQllj5PWlYMWgaBX6yYOWZFpnDBom/sEYA2WaBw==", + "dev": true, + "requires": { + "ansi-colors": "1.1.0", + "commenting": "1.0.5", + "fancy-log": "1.3.2", + "lodash": "4.17.5", + "moment": "2.21.0", + "plugin-error": "1.0.1", + "q": "1.5.1", + "through2": "2.0.3" + }, + "dependencies": { + "lodash": { + "version": "4.17.5", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.5.tgz", + "integrity": "sha512-svL3uiZf1RwhH+cWrfZn3A4+U58wbP0tGVTLQPbjplZxZ8ROD9VLuNgsRniTlLe7OlSqR79RUehXgpBW/s0IQw==", + "dev": true + }, + "plugin-error": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/plugin-error/-/plugin-error-1.0.1.tgz", + "integrity": "sha512-L1zP0dk7vGweZME2i+EeakvUNqSrdiI3F91TwEoYiGrAfUXmVv6fJIq4g82PAXxNsWOp0J7ZqQy/3Szz0ajTxA==", + "dev": true, + "requires": { + "ansi-colors": "1.1.0", + "arr-diff": "4.0.0", + "arr-union": "3.1.0", + "extend-shallow": "3.0.2" + } + } + } + }, "gulp-rename": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/gulp-rename/-/gulp-rename-1.4.0.tgz", @@ -7262,6 +7304,12 @@ "minimist": "0.0.8" } }, + "moment": { + "version": "2.21.0", + "resolved": "http://registry.npmjs.org/moment/-/moment-2.21.0.tgz", + "integrity": "sha512-TCZ36BjURTeFTM/CwRcViQlfkMvL1/vFISuNLO5GkcVm1+QHfbSiNqZuWeMFjj1/3+uAjXswgRk30j1kkLYJBQ==", + "dev": true + }, "move-concurrently": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/move-concurrently/-/move-concurrently-1.0.1.tgz", diff --git a/package.json b/package.json index 70ab120..493ae28 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "gulp": "3.9.1", "gulp-autoprefixer": "6.0.0", "gulp-csso": "3.0.1", + "gulp-header-comment": "0.4.0", "gulp-rename": "1.4.0", "gulp-sourcemaps": "2.6.4", "gulp-stylus": "2.7.0", @@ -35,7 +36,7 @@ "grid", "layout" ], - "license": "ISC", + "license": "MIT", "bugs": { "url": "https://github.com/anovi/setka/issues" },