Created
February 11, 2014 20:39
-
-
Save noeticpenguin/8943625 to your computer and use it in GitHub Desktop.
gruntfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
grunt.initConfig({ | |
jasmine: { | |
proposalPlus: { | |
// Include paths for both the local user, if we're in dev mode, as well as share mode | |
src: 'pp_ngApp_' + process.env.USER + '.resource/pp_ngApp/**/*.js, pp_js' + process.env.USER + '.resource/pp_js/**/*.js, pp_ngApp/pp_ngApp/**/*.js, pp_js/pp_js/**/*.js', | |
options: { | |
// Include path for Jasmine spec files, including both dev and share path versions. | |
specs: 'pp_test_' + process.env.USER + '.resource/pp_test/**/*spec.js, pp_test/pp_test/**/*spec.js', | |
} | |
} | |
} | |
}); | |
// Register tasks. | |
grunt.loadNpmTasks('grunt-contrib-jasmine'); | |
grunt.loadNpmTasks('grunt-env'); | |
// Default task. | |
grunt.registerTask('default', 'jasmine'); | |
grunt.registerTask('foo', 'Test Env vars', function() { | |
grunt.log.warn(process.env.USER); | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment