mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-08-03 17:44:33 +02:00
Grunt.js and package.json change so we can build, thanks a ton jeffrey! Issue #89
This commit is contained in:
parent
b26dc7e0bf
commit
532439f821
3 changed files with 7 additions and 11 deletions
13
grunt.js
13
grunt.js
|
@ -94,12 +94,6 @@ module.exports = function(grunt) {
|
|||
src: ['build/bundle.min.js', 'src/style/main.css'],
|
||||
dest: 'build/'
|
||||
},
|
||||
jasmine_node: {
|
||||
specNameMatcher: 'spec', // load only specs containing specNameMatcher
|
||||
projectRoot: '.',
|
||||
forceExit: true,
|
||||
verbose: true
|
||||
},
|
||||
watch: {
|
||||
files: '<config:lint.files>',
|
||||
tasks: 'watching'
|
||||
|
@ -116,6 +110,9 @@ module.exports = function(grunt) {
|
|||
shell: {
|
||||
gitAdd: {
|
||||
command: 'git add build/'
|
||||
},
|
||||
test: {
|
||||
command: 'jasmine-node spec/git.spec.js'
|
||||
}
|
||||
},
|
||||
jshint: {
|
||||
|
@ -172,17 +169,15 @@ module.exports = function(grunt) {
|
|||
// all my npm helpers
|
||||
grunt.loadNpmTasks('grunt-jslint');
|
||||
grunt.loadNpmTasks('grunt-browserify');
|
||||
grunt.loadNpmTasks('grunt-jasmine-node');
|
||||
grunt.loadNpmTasks('grunt-hash');
|
||||
grunt.loadNpmTasks('grunt-rm');
|
||||
grunt.loadNpmTasks('grunt-shell');
|
||||
|
||||
grunt.registerTask('build', 'rm browserify min hash buildIndex shell lint lintStrings test compliment');
|
||||
grunt.registerTask('build', 'rm browserify min hash buildIndex shell lint lintStrings compliment');
|
||||
grunt.registerTask('fastBuild', 'rm browserify hash buildIndex');
|
||||
|
||||
grunt.registerTask('default', 'build');
|
||||
|
||||
grunt.registerTask('watching', 'fastBuild lint lintStrings');
|
||||
grunt.registerTask('test', 'jasmine_node');
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue