Skip to content

Commit

Permalink
Add Jasmine to project
Browse files Browse the repository at this point in the history
Signed-off-by: Moacir de Oliveira <moacirdeoliveira.eng@gmail.com>
  • Loading branch information
moacir committed Aug 23, 2015
1 parent 66b476a commit 0b26809
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
14 changes: 11 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,25 @@ module.exports = function(grunt) {
dest: 'dist/jspt-web.js'
},
options: {
alias: ["./lib/jspt/main.js:jspt"],
alias: ['./lib/jspt/main.js:jspt'],
}
},
jasmine: {
src: 'dist/jspt-web.js',
options: {
specs: 'spec/**/*.js'
}
}
});

grunt.loadNpmTasks('grunt-contrib-jasmine');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-browserify');

// Default task(s).
grunt.registerTask('default', ['jshint', 'browserify', /*'concat',*/ 'uglify']);
// Tasks
grunt.registerTask('default', ['jshint', 'browserify', /*'concat',*/ 'uglify', 'jasmine']);
grunt.registerTask('test', ['jshint', 'jasmine']);

};
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"author": {
"name": "Moacir de Oliveira",
"email": "moacirdeoliveira.eng@gmail.com"
},
},
"repository": {
"type": "git",
"url": "http://github.com/moacir/jspt.git"
Expand All @@ -17,10 +17,11 @@
},
"devDependencies": {
"grunt": "~0.4.1",
"grunt-browserify": "~1.2.4",
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-jasmine": "^0.9.1",
"grunt-contrib-jshint": "~0.6.3",
"grunt-contrib-nodeunit": "~0.2.0",
"grunt-contrib-uglify": "~0.2.2",
"grunt-contrib-concat": "~0.3.0",
"grunt-browserify": "~1.2.4"
"grunt-contrib-uglify": "~0.2.2"
}
}

0 comments on commit 0b26809

Please sign in to comment.