grunt-angular-templates
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -56,3 +56,3 @@ /* | ||
custom_angular: { | ||
src: 'test/fixtures/**/*.html', | ||
src: ['test/fixtures/one.html', 'test/fixtures/two/**/*.html'], | ||
dest: 'tmp/custom_angular.js', | ||
@@ -66,3 +66,3 @@ options: { | ||
custom_bootstrap: { | ||
src: 'test/fixtures/**/*.html', | ||
src: ['test/fixtures/one.html', 'test/fixtures/two/**/*.html'], | ||
dest: 'tmp/custom_bootstrap.js', | ||
@@ -78,3 +78,3 @@ options: { | ||
custom_concat: { | ||
src: 'test/fixtures/**/*.html', | ||
src: ['test/fixtures/one.html', 'test/fixtures/two/**/*.html'], | ||
dest: 'tmp/custom_concat.js', | ||
@@ -88,3 +88,3 @@ options: { | ||
custom_htmlmin: { | ||
src: 'test/fixtures/**/*.html', | ||
src: ['test/fixtures/one.html', 'test/fixtures/two/**/*.html'], | ||
dest: 'tmp/custom_htmlmin.js', | ||
@@ -107,3 +107,3 @@ options: { | ||
task_htmlmin: { | ||
src: 'test/fixtures/**/*.html', | ||
src: ['test/fixtures/one.html', 'test/fixtures/two/**/*.html'], | ||
dest: 'tmp/task_htmlmin.js', | ||
@@ -117,3 +117,3 @@ options: { | ||
default_module: { | ||
src: 'test/fixtures/**/*.html', | ||
src: ['test/fixtures/one.html', 'test/fixtures/two/**/*.html'], | ||
dest: 'tmp/default_module.js' | ||
@@ -124,3 +124,3 @@ }, | ||
custom_module: { | ||
src: 'test/fixtures/**/*.html', | ||
src: ['test/fixtures/one.html', 'test/fixtures/two/**/*.html'], | ||
dest: 'tmp/custom_module.js', | ||
@@ -134,3 +134,3 @@ options: { | ||
callback_module: { | ||
src: 'test/fixtures/**/*.html', | ||
src: ['test/fixtures/one.html', 'test/fixtures/two/**/*.html'], | ||
dest: 'tmp/callback_module.js', | ||
@@ -149,3 +149,3 @@ options: { | ||
custom_source: { | ||
src: 'test/fixtures/**/*.html', | ||
src: ['test/fixtures/one.html', 'test/fixtures/two/**/*.html'], | ||
dest: 'tmp/custom_source.js', | ||
@@ -161,3 +161,3 @@ options: { | ||
standalone: { | ||
src: 'test/fixtures/**/*.html', | ||
src: ['test/fixtures/one.html', 'test/fixtures/two/**/*.html'], | ||
dest: 'tmp/standalone.js', | ||
@@ -171,3 +171,3 @@ options: { | ||
full_url: { | ||
src: 'test/fixtures/**/*.html', | ||
src: ['test/fixtures/one.html', 'test/fixtures/two/**/*.html'], | ||
dest: 'tmp/full_url.js' | ||
@@ -179,3 +179,3 @@ }, | ||
cwd: 'test/fixtures', | ||
src: '**/*.html', | ||
src: ['one.html', 'two/**/*.html'], | ||
dest: 'tmp/relative_url.js' | ||
@@ -186,3 +186,3 @@ }, | ||
custom_url: { | ||
src: 'test/fixtures/**/*.html', | ||
src: ['test/fixtures/one.html', 'test/fixtures/two/**/*.html'], | ||
dest: 'tmp/custom_url.js', | ||
@@ -194,2 +194,8 @@ options: { | ||
} | ||
}, | ||
// Empty file | ||
empty_file: { | ||
src: 'test/fixtures/empty.html', | ||
dest: 'tmp/empty_file.js' | ||
} | ||
@@ -196,0 +202,0 @@ } |
{ | ||
"name": "grunt-angular-templates", | ||
"description": "Grunt build task to concatenate & register your AngularJS templates in the $templateCache", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"homepage": "https://github.com/ericclemmons/grunt-angular-templates", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -313,2 +313,3 @@ # grunt-angular-templates [![Build Status](https://travis-ci.org/ericclemmons/grunt-angular-templates.png?branch=master)](https://travis-ci.org/ericclemmons/grunt-angular-templates) | ||
- v0.4.1 – Fix bug with empty files. | ||
- v0.4.0 – Complete rewrite. | ||
@@ -315,0 +316,0 @@ - v0.3.12 – Whoops, forgot to make `htmlmin` a regular dependency. Thanks @rubenv ([#37](https://github.com/ericclemmons/grunt-angular-templates/pull/37)) |
@@ -177,3 +177,3 @@ /* | ||
return JSON.stringify(line); | ||
}).join(' +\n '); | ||
}).join(' +\n ') || '""'; | ||
}; | ||
@@ -180,0 +180,0 @@ |
@@ -138,2 +138,12 @@ 'use strict'; | ||
empty_file: function(test) { | ||
test.expect(1); | ||
var actual = grunt.file.read('tmp/empty_file.js'); | ||
var expected = grunt.file.read('test/expected/empty_file.js'); | ||
test.equal(expected, actual); | ||
test.done(); | ||
}, | ||
}; |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
37895
28
779
348
0