Repository URL to install this package:
|
Version:
0.0.2 ▾
|
node-sitefile
/
Gruntfile.js
|
|---|
'use strict';
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
options: {
jshintrc: '.jshintrc'
},
gruntfile: {
src: 'Gruntfile.js'
},
},
coffeelint: {
options: {
configFile: '.coffeelint.json'
},
app: [
'bin/*.coffee',
'lib/**/*.coffee',
'config/**/*.coffee'
]
},
yamllint: {
all: {
src: [
'Sitefile.yaml'
]
}
},
//nodeunit: {
// files: ['test/nodeunit/**/*.coffee'],
//},
watch: {
gruntfile: {
files: '<%= jshint.gruntfile.src %>',
tasks: ['jshint:gruntfile']
},
lib: {
files: '<%= jshint.lib.src %>',
tasks: [
'jshint:src',
'nodeunit'
]
},
test: {
files: '<%= jshint.test.src %>',
tasks: [
'jshint:test'
]
},
},
});
// auto load grunt contrib tasks from package.json
require('load-grunt-tasks')(grunt);
grunt.registerTask('lint', [
'coffeelint',
'jshint',
'yamllint'
]);
grunt.registerTask('test', [
//'make:test'
]);
// Default task.
grunt.registerTask('default', [
'lint',
'test'
]);
};