Skip to content

Commit

Permalink
Add GruntFile to repo
Browse files Browse the repository at this point in the history
  • Loading branch information
blittle committed Apr 17, 2013
1 parent 4c57e8f commit c61ae7c
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions GruntFile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
module.exports = function(grunt) {

// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
typescript: {
base: {
src: ['src/**/*.ts', 'app.ts'],
options: {
module: 'commonjs', //or commonjs
sourcemap: true
}
}
},
jasmine_node: {
specNameMatcher: "./spec", // load only specs containing specNameMatcher
projectRoot: ["."],
requirejs: false,
forceExit: true,
isVerbose: true,
jUnit: {
report: false,
savePath : "./build/reports/jasmine/",
useDotNotation: true,
consolidate: true
}
}
});

// Load the plugins
grunt.loadNpmTasks('grunt-typescript');
grunt.loadNpmTasks('grunt-jasmine-node');

// Register tasks
grunt.registerTask('default', ['typescript']);
grunt.registerTask('test', ['jasmine_node'])

};

0 comments on commit c61ae7c

Please sign in to comment.