Browse Source

Add "grunt-banner".

We can't add a banner with "grunt-contrib-sass" anymore.
pull/663/merge
XhmikosR 11 years ago
parent
commit
3140f50f5a
  1. 21
      Gruntfile.js
  2. 1
      package.json

21
Gruntfile.js

@ -24,10 +24,10 @@ module.exports = function (grunt) {
// Metadata.
meta: {
srcPath: 'sass/',
distPath: 'dist/',
docsAssetsPath: 'docs/assets/',
docsPath: 'docs/dist/',
docsAssetsPath: 'docs/assets/'
srcPath: 'sass/'
},
banner: '/*!\n' +
@ -86,6 +86,21 @@ module.exports = function (grunt) {
}
},
usebanner: {
dist: {
options: {
position: 'top',
banner: '<%= banner %>'
},
files: {
src: [
'<%= meta.distPath %>css/*.css',
'<%= meta.docsAssetsPath %>css/docs.css'
]
}
}
},
csscomb: {
options: {
config: 'sass/.csscomb.json'
@ -303,7 +318,7 @@ module.exports = function (grunt) {
require('time-grunt')(grunt);
// Default task(s).
grunt.registerTask('dist-css', ['sass', 'autoprefixer', 'csscomb', 'cssmin']);
grunt.registerTask('dist-css', ['sass', 'autoprefixer', 'usebanner', 'csscomb', 'cssmin']);
grunt.registerTask('dist-js', ['concat', 'uglify']);
grunt.registerTask('dist', ['clean', 'dist-css', 'dist-js', 'copy', 'build-ratchicons-data']);
grunt.registerTask('validate-html', ['jekyll', 'validation']);

1
package.json

@ -28,6 +28,7 @@
"devDependencies": {
"grunt": "~0.4.5",
"grunt-autoprefixer": "~2.2.0",
"grunt-banner": "~0.3.1",
"grunt-contrib-clean": "~0.6.0",
"grunt-contrib-concat": "~0.5.0",
"grunt-contrib-copy": "~0.7.0",

Loading…
Cancel
Save