Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.