Skip to content

Instantly share code, notes, and snippets.

@noeticpenguin
Created February 11, 2014 20:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noeticpenguin/8943625 to your computer and use it in GitHub Desktop.
Save noeticpenguin/8943625 to your computer and use it in GitHub Desktop.
gruntfile
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