Skip to content

Instantly share code, notes, and snippets.

@johnhunter
Last active September 10, 2016 17:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save johnhunter/6621891 to your computer and use it in GitHub Desktop.
Save johnhunter/6621891 to your computer and use it in GitHub Desktop.
Teamcity grunt runner test
/* jshint node: true */
module.exports = function(grunt) {
grunt.registerTask('default', ['concat:test']);
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
test: {
// src/three.js does not exist
// raises a Grunt warning to stderr
// is not reported in TeamCity
src: ['src/one.js', 'src/two.js', 'src/three.js'],
dest: 'build/out.js',
nonull: true
}
}
});
};
{
"name": "Scratch",
"version": "0.1.0",
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-concat": "~0.3.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment