Sorry, your browser is not supported
To have the best experience using Skillshare, we recommend that you use one of these supported browsers.

My Gruntfile.js

module.exports = function(grunt) {
require('jit-grunt')(grunt);

grunt.initConfig({
jshint: {
all: ['js/dTable.js']
},


csslint: {
all: ['css/style.css']
},


cssmin: {
dist: {
files: {
'css/style.min.css': ['css/style.css']
}
}
},

autoprefixer: {
all: {
src: 'css/style.min.css'
}
},

less: {
dist: {
files: {
'css/style.css' : ['less/style.less']
}
},

options: {
compress:true
}
},

watch: {
less: {
files: ['less/*.less'], // which files to watch
tasks: ['less'],
options: {
spawn: false
}
},

js: {
files: ['js/*.js'],
tasks: ['jshint']
}
}
});

grunt.loadNpmTasks('grunt-autoprefixer');

grunt.loadNpmTasks('grunt-contrib-jshint');

grunt.loadNpmTasks('grunt-contrib-csslint');

grunt.loadNpmTasks('grunt-contrib-less');

grunt.loadNpmTasks('grunt-contrib-watch');

grunt.registerTask('default', [
'jshint',
'less',
'csslint',
'watch',
'autoprefixer'

]);
};

Comments

Please sign in or sign up to comment.