mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Formatting gruntfile correctly
This commit is contained in:
parent
d794301301
commit
72a28f7905
39
Gruntfile.js
39
Gruntfile.js
@ -1,11 +1,6 @@
|
|||||||
grunt.loadNpmTasks('grunt-contrib-connect');
|
module.exports = function(grunt) {
|
||||||
grunt.loadNpmTasks('grunt-contrib-jshint');
|
grunt.initConfig({
|
||||||
//grunt.loadNpmTasks('grunt-contrib-nodeunit');
|
jshint: {
|
||||||
grunt.loadNpmTasks('grunt-ghost');
|
|
||||||
|
|
||||||
grunt.registerTask('test', ['jshint', /*'nodeunit',*/ 'connect', 'ghost']);
|
|
||||||
|
|
||||||
jshint: {
|
|
||||||
/*options: {
|
/*options: {
|
||||||
jshintrc: '.jshintrc'
|
jshintrc: '.jshintrc'
|
||||||
},*/
|
},*/
|
||||||
@ -15,21 +10,21 @@ jshint: {
|
|||||||
'source/**/*.js'/*,
|
'source/**/*.js'/*,
|
||||||
'<%= nodeunit.tests %>'*/
|
'<%= nodeunit.tests %>'*/
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
/*
|
/*
|
||||||
nodeunit: {
|
nodeunit: {
|
||||||
tests: ['tests/nodeunit/*_test.js']
|
tests: ['tests/nodeunit/*_test.js']
|
||||||
},
|
},
|
||||||
*/
|
*/
|
||||||
connect: {
|
connect: {
|
||||||
www: {
|
www: {
|
||||||
options: {
|
options: {
|
||||||
base: 'source',
|
base: 'source',
|
||||||
port: 4545
|
port: 4545
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
ghost: {
|
ghost: {
|
||||||
test: {
|
test: {
|
||||||
files: [{
|
files: [{
|
||||||
src: ['tests/integration/casperjs/*_test.js']
|
src: ['tests/integration/casperjs/*_test.js']
|
||||||
@ -45,4 +40,14 @@ ghost: {
|
|||||||
printCommand: false,
|
printCommand: false,
|
||||||
printFilePaths: true
|
printFilePaths: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
grunt.loadNpmTasks('grunt-contrib-connect');
|
||||||
|
grunt.loadNpmTasks('grunt-contrib-jshint');
|
||||||
|
//grunt.loadNpmTasks('grunt-contrib-nodeunit');
|
||||||
|
grunt.loadNpmTasks('grunt-ghost');
|
||||||
|
|
||||||
|
grunt.registerTask('test', ['jshint', /*'nodeunit',*/ 'connect', 'ghost']);
|
||||||
|
|
||||||
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user