mirror of
https://github.com/zhigang1992/deployd.git
synced 2026-01-12 22:46:42 +08:00
Fixed various JSHint complaints, and also fixed type-loader to not throw when a node module can't be loaded.
50 lines
1010 B
JavaScript
50 lines
1010 B
JavaScript
module.exports = function (grunt) {
|
|
grunt.initConfig({
|
|
less: {
|
|
production: {
|
|
options: {
|
|
paths: ["lib/resources/dashboard/stylesheets"],
|
|
yuicompress: true
|
|
},
|
|
files: {
|
|
"lib/resources/dashboard/stylesheets/style.css": "lib/resources/dashboard/stylesheets/style.less"
|
|
}
|
|
}
|
|
},
|
|
|
|
jshint: {
|
|
options: {
|
|
"laxcomma": true,
|
|
"expr": true,
|
|
"proto": true,
|
|
"lastsemic": true,
|
|
"laxbreak": true,
|
|
"strict": false
|
|
},
|
|
cli: [
|
|
'bin/dpd'
|
|
],
|
|
dpdJs: [
|
|
'clib/*.js'
|
|
],
|
|
dashboard: [
|
|
'lib/resources/dashboard/js/*.js'
|
|
],
|
|
collectionDashboard: [
|
|
'lib/resources/collection/dashboard/js/*.js'
|
|
],
|
|
lib: [
|
|
'lib/client/*.js',
|
|
'lib/resources/*.js',
|
|
'lib/util/*.js',
|
|
'lib/*.js'
|
|
]
|
|
}
|
|
|
|
});
|
|
|
|
grunt.loadNpmTasks('grunt-contrib-less');
|
|
grunt.loadNpmTasks('grunt-contrib-jshint');
|
|
|
|
grunt.registerTask('dashboard', ['less:production']);
|
|
}; |