mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-28 17:00:04 +02:00
Move casper into grunt file and OR into opening images
This commit is contained in:
parent
c469368727
commit
461da3b42c
2 changed files with 9 additions and 3 deletions
|
@ -192,6 +192,10 @@ module.exports = function(grunt) {
|
|||
shell: {
|
||||
gitAdd: {
|
||||
command: 'git add build/'
|
||||
},
|
||||
casperTest: {
|
||||
command: 'casperjs test ./src/__tests__/casperjs/*.js || ' +
|
||||
'open ./src/__tests__/casperjs/screenshots/*.png'
|
||||
}
|
||||
},
|
||||
jasmine_node: {
|
||||
|
@ -226,13 +230,14 @@ module.exports = function(grunt) {
|
|||
grunt.loadNpmTasks('grunt-contrib-uglify');
|
||||
|
||||
grunt.registerTask('build',
|
||||
['clean', 'browserify', 'uglify', 'hash', 'buildIndex', 'shell', 'jasmine_node', 'jshint', 'lintStrings', 'compliment']
|
||||
['clean', 'browserify', 'uglify', 'hash', 'buildIndex', 'shell:gitAdd', 'jasmine_node', 'jshint', 'lintStrings', 'compliment']
|
||||
);
|
||||
grunt.registerTask('lint', ['jshint', 'compliment']);
|
||||
grunt.registerTask('fastBuild', ['clean', 'browserify', 'hash', 'buildIndexDev', 'jshint']);
|
||||
grunt.registerTask('watching', ['fastBuild', 'jasmine_node', 'jshint', 'lintStrings']);
|
||||
|
||||
grunt.registerTask('default', ['build']);
|
||||
grunt.registerTask('test', ['jasmine_node']);
|
||||
grunt.registerTask('test', ['jasmine_node', 'shell:casperTest']);
|
||||
grunt.registerTask('casperTest', ['shell:casperTest']);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue