diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 0000000..2ab0bdd --- /dev/null +++ b/Gruntfile.js @@ -0,0 +1,32 @@ +module.exports = function (grunt) { + 'use strict'; + // Project configuration + grunt.initConfig({ + // Metadata + pkg: grunt.file.readJSON('package.json'), + banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' + + '<%= grunt.template.today("yyyy-mm-dd") %>\n' + + '<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' + + '* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' + + ' Licensed <%= props.license %> */\n', + // Task configuration + csslint: { + options: { + csslintrc: '.csslintrc' + }, + strict: { + options: { + import: 2 + }, + src: ['core/themes/seven/css/style.css'] + }, + } + }); + + // These plugins provide necessary tasks + grunt.loadNpmTasks('grunt-contrib-csslint'); + + // Default task + grunt.registerTask('default', ['csslint']); +}; + diff --git a/package.json b/package.json new file mode 100644 index 0000000..5dd5eff --- /dev/null +++ b/package.json @@ -0,0 +1,9 @@ +{ + "name": "Drupal", + "version": "0.0.0", + "dependencies": {}, + "devDependencies": { + "grunt": "~0.4.2", + "grunt-contrib-csslint": "^0.2.0" + } +}