grunt-aco2less
Version:
A grunt plugin used to create .less variables out of .aco files.
54 lines (43 loc) • 1.03 kB
JavaScript
/*
* grunt-aco2less
* https://github.com/teemualap/grunt-aco2less
*
* Copyright (c) 2013 Teemu Alapoikela
* Licensed under the MIT license.
*/
;
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
jshint: {
all: [
'Gruntfile.js',
'tasks/*.js'
],
options: {
jshintrc: '.jshintrc'
},
},
// Before generating any new files, remove any previously-created files.
clean: {
tests: ['tmp'],
},
// Configuration to be run (and then tested).
aco2less: {
aco: {
options: {
},
files: {
'tmp/test.less': ['test/fixtures/*.aco']
}
}
}
});
// Actually load this plugin's task(s).
grunt.loadTasks('tasks');
// These plugins provide necessary tasks.
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-clean');
// By default, lint and run all tests.
grunt.registerTask('default', ['jshint', 'aco2less']);
};