Merge branch '4.x'

# Conflicts:
#	tasks/test.js
This commit is contained in:
Nils Knappmeier
2017-05-15 00:12:54 +02:00
2 changed files with 8 additions and 4 deletions
+3 -2
View File
@@ -1,5 +1,6 @@
# Handlebars templates in test cases
# Handlebars-template fixtures in test cases need deterministic eol
*.handlebars text eol=lf
*.hbs text eol=lf
# Lexer files
# Lexer files as well
*.l text eol=lf
+5 -2
View File
@@ -1,11 +1,14 @@
var childProcess = require('child_process'),
fs = require('fs');
fs = require('fs'),
os = require('os');
module.exports = function(grunt) {
grunt.registerTask('test:bin', function() {
var done = this.async();
childProcess.exec('node ./bin/handlebars -a spec/artifacts/empty.handlebars', function(err, stdout) {
// On Windows, the executable handlebars.js file cannot be run directly
var prefix = os.type().match(/^Windows/) ? process.argv[0] : '';
childProcess.exec(prefix + ' ./bin/handlebars -a spec/artifacts/empty.handlebars', function(err, stdout) {
if (err) {
throw err;
}