Commit graph

55 commits

Author SHA1 Message Date
Daniel Kvistgaard 71471c2d2c Declaring logError as function instead of arrow function. 2018-04-08 13:05:50 +10:00
xzyfer 7656eff297 Adopt airbnb eslint preset 2018-03-24 12:55:37 +11:00
xzyfer 12931694be Bump autoprefixer@^8.1.0, gulp-postcss@^7.0.1 2018-03-24 12:55:37 +11:00
Charles Samborski e61535250e Drop dependency on deprecated gulp-util
Closes dlmanning/gulp-sass#646
2018-03-24 12:55:35 +11:00
Paul Hawxby cc4ed2fc34 Unit tests now work on windows
Closes #620
2018-03-11 16:37:23 +11:00
xzyfer 3150325f32 Fix failing sourcemaps tests
It looks like a dependency has caused some tests to start failing.
Sourcemaps are not a documented API so this is not a breaking
change.
2016-02-04 22:56:41 +11:00
Vincent Prouillet 52fba693e0 Merge pull request #420 from jlgeering/error-msg-unformatted
preserve the original error message for notification(s) support
2015-12-21 10:53:18 +00:00
Jean-Luc Geering 3075a845c6 preserve the original error message 2015-12-21 09:45:33 +01:00
Aaron Schloser 5e8af62356 add relativePath assertion to sync test 2015-12-18 10:38:44 -08:00
Aaron Schloser b3fe81f86a add relativePath property to error object in order to play nicely with gulp-notify 2015-12-18 10:35:52 -08:00
Michael Mifsud 33a8a4fee9 Merge pull request #358 from xzyfer/fix/empty-file
An empty Sass file should produce an empty CSS file
2015-10-26 01:34:12 +11:00
Michael Mifsud 623eebc2c7 Merge pull request #359 from xzyfer/fix/dirty-tests
Test runner should clean up after itself
2015-10-26 01:32:43 +11:00
xzyfer 57f8c6d7ea Use LibSass' pre-formatted error messages 2015-10-26 01:20:58 +11:00
xzyfer 3b30b8a444 Test runner should clean up after itself
We don't remove generated files between tests which results in
false positives when asserting if a file was created. This was
noticed when creating the test cases for #358
2015-10-05 15:14:57 +11:00
xzyfer f8a75e6adf An empty Sass file should produce an empty CSS file
Currently if the input file is blank we bail out early, returning
the input file object. This causes gulp to simply copy the input
Sass file. We instead need to rewrite the file extension to .css.
Fixes #352
2015-10-05 15:09:26 +11:00
xzyfer 16d4efed16 Use node-sass@3.4.0-beta 2015-09-21 22:05:47 +10:00
Martin O'Connor 9cb5f1cb5c Modify sourcemap paths of imported files relative to file.base instead of relative to file, if a different base is specified. 2015-07-30 12:33:15 -04:00
Sam Richard 2a4f945da9 Add test for globbed files
Resolves #282

Resolves #278
2015-07-15 11:00:56 -07:00
Bogdan Chadkin 38e3c361f1 Fixed sourcemaps with different file.base 2015-07-12 22:32:17 +03:00
AJ Ostrow 7f6605e433 check contents length for empty file 2015-06-10 17:45:12 -04:00
Sam Richard cff205b013 Add file name and line:column to error test 2015-05-10 05:27:08 -04:00
Thomas Jaggi bdb05ca910 Add test case with gulp-sourcemaps and autoprefixer 2015-05-09 12:12:13 +02:00
David Manning 9b69aaa2dc Merge pull request #228 from Snugug/2.x-datastream
2.x datastream
2015-04-01 16:59:50 -07:00
Sam Richard ad6e6e4ddd Tests for file rename and file contents change 2015-04-01 11:07:33 -04:00
Sam Richard 5b8d4eb319 Nope, shouldn't be , should be file name 2015-03-31 16:26:47 -04:00
Sam Richard bea198e545 Updated Tests 2015-03-31 15:56:18 -04:00
Vincent Prouillet 5c7777fda9 Rebase on top of 2.x 2015-03-31 15:44:22 +01:00
Vincent Prouillet de6af93958 Add a sass file to the inheritance test 2015-03-31 15:36:23 +01:00
Vincent Prouillet 25ee16f9d6 Replace indent.sass to match an existing issue
https://github.com/dlmanning/gulp-sass/issues/187 was failing
on 1.x
2015-03-31 15:36:23 +01:00
Vincent Prouillet 9c0e76fc8b Add tests for sass+scss syntax 2015-03-31 15:36:23 +01:00
Sam Richard 140c1ebecf Test should be that error is there, not that it is start of string 2015-03-30 08:11:00 -04:00
Sam Richard c1d2696a3b Sync tests 2015-03-26 19:40:09 -04:00
Sam Richard 8bc76e15e6 Moved 'use strict' in index.js to global
Updated tests accordingly
2015-03-26 19:15:59 -04:00
Sam Richard a096e3cfb0 Updated main to coding standards 2015-03-24 05:53:01 -05:00
Sam Richard 47e6b7c772 Make strict rules more specific 2015-03-24 05:52:43 -05:00
Sam Richard 3928f02b01 Function version of 'use strict' for index.js 2015-03-24 05:37:48 -05:00
Sam Richard 8ca25e10ad Added linting
Linting modified from ibm-watson/runner for use in Node
2015-03-24 05:32:12 -05:00
Sam Richard 73b945367b Sourcemap Tests 2015-03-24 04:41:16 -05:00
Vincent Prouillet 1dd861e4d6 Rewrite gulp-sass to be a very light wrapper
Simply pass everything to node-sass and just hand
back the results to gulp.
Removed custom options like success/failure cb
and sync rendering.

Missing:
 -  gulp-sourcemaps support + test
2015-03-23 22:30:52 +00:00
David Manning 314ce5c159 Updated node-sass dependency 2015-02-12 13:49:11 -08:00
Daphne Maddox 12f8db9863 update to node-sass version 2 beta
Peg node-sass dependency at "2.0.0-beta". node-sass version 2 is still
in beta, be wary of this branch.

Handle object output from node-sass, read `css` and `map` properties,
consistent with node-sass v2 API.

Simplify handling of file/data and sourceComments/sourceMap options.
2015-01-04 08:25:18 -08:00
Julien Muetton 7ba09c4bcb Add test for includePaths 2014-11-26 11:07:32 +01:00
David Manning 77159456fb merge 2014-10-28 22:58:24 -07:00
Ryan Schmukler 553e6ea857 bump to node-sass v1.0 2014-10-16 19:21:01 -04:00
David Clark 050724dfd5 Update test.js 2014-10-06 10:29:39 -07:00
David Clark 63a08c54f6 Make sourcemap source paths relative to file.base; fixes #92. 2014-10-04 17:05:52 -07:00
Niels Doucet c55ebd5c2c Add option, so the user can choose to call libsass synchronously. This can alleviate some pressure from the cpu and the memory when rendering large or many files. 2014-07-14 15:21:31 +02:00
David Manning df32000dd2 Added: onError and onSuccess callback options 2014-01-25 09:46:20 -08:00
David Manning d009ffb818 Added: Default for includePaths option 2014-01-22 12:52:04 -08:00
David Manning d537454052 Made tests better 2014-01-19 00:41:04 -08:00