grunt-cssjoin
Advanced tools
| @import "/foo.css"; | ||
| .bar{ | ||
| color : red | ||
| } |
+7
-2
@@ -64,8 +64,13 @@ /* | ||
| options: { | ||
| path : "./test/fixtures/path" | ||
| paths : "./test/fixtures/path" | ||
| }, | ||
| files : { | ||
| './tmp/path/bar.css': ['./test/fixtures/default/bar.css'] | ||
| './tmp/path/bar.css': ['./test/fixtures/path/htdocs/bar.css'] | ||
| } | ||
| }, | ||
| pathTestWithNoOption: { | ||
| files : { | ||
| './tmp/path_with_no_option/bar.css': ['./test/fixtures/path/htdocs/bar.css'] | ||
| } | ||
| }, | ||
| sameFileTest : { | ||
@@ -72,0 +77,0 @@ files : grunt.file.expandMapping(["./tmp/sameFileTest/*.css"]), |
+5
-3
| { | ||
| "name": "grunt-cssjoin", | ||
| "description": "Extend and join css @import loaded file", | ||
| "version": "0.1.1", | ||
| "version": "0.2.0", | ||
| "homepage": "https://github.com/suisho/grunt-cssjoin", | ||
@@ -42,7 +42,9 @@ "author": { | ||
| "keywords": [ | ||
| "gruntplugin","css", "import" | ||
| "gruntplugin", | ||
| "css", | ||
| "import" | ||
| ], | ||
| "dependencies": { | ||
| "cssjoin": "~0.1.0-0" | ||
| "cssjoin": "~0.2.0-0" | ||
| } | ||
| } |
+3
-3
@@ -43,3 +43,3 @@ # grunt-cssjoin | ||
| #### options.path | ||
| #### options.paths | ||
| Type: `Array` or `String` | ||
@@ -66,3 +66,3 @@ Css @import resolve include paths() | ||
| #### Path Options | ||
| In this example, setting cssjoin's path. | ||
| In this example, setting cssjoin's paths. | ||
@@ -74,3 +74,3 @@ ```js | ||
| options: { | ||
| path : ["src/"] | ||
| paths : ["src/"] | ||
| }, | ||
@@ -77,0 +77,0 @@ files: { |
+1
-1
@@ -22,3 +22,2 @@ /* | ||
| //this.file.dest = path.normalize(this.file.dest); | ||
| grunt.util.async.forEachSeries(this.files, function(f, nextFileObj){ | ||
@@ -40,2 +39,3 @@ var destFile = f.dest; | ||
| var compiled = []; | ||
| grunt.util.async.concatSeries(files, function(file, next) { | ||
@@ -42,0 +42,0 @@ cssjoin(file, options, function(err ,css){ |
+11
-0
@@ -47,2 +47,13 @@ 'use strict'; | ||
| }, | ||
| path_with_no_options: function(test) { | ||
| test.expect(1); | ||
| var actual = grunt.file.read('tmp/path_with_no_option/bar.css'); | ||
| var expected = grunt.file.read('test/expected/path_with_no_option/bar.css'); | ||
| test.equal(actual, expected, 'should describe what the path option(s) behavior is not(but with path).'); | ||
| test.done(); | ||
| }, | ||
| sameFile: function(test) { | ||
@@ -49,0 +60,0 @@ test.expect(2); |
11556
5.29%14
7.69%231
6.94%+ Added
- Removed
Updated