Commit graph

76 commits

Author SHA1 Message Date
xzyfer
57f8c6d7ea Use LibSass' pre-formatted error messages 2015-10-26 01:20:58 +11:00
Martin O'Connor
77e66a795a Use path.dirname for enhanced readability 2015-07-30 22:26:15 -04:00
Martin O'Connor
fb26b3a259 Update file processing to a cross platform solution 2015-07-30 14:32:41 -04: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
Bogdan Chadkin
38e3c361f1 Fixed sourcemaps with different file.base 2015-07-12 22:32:17 +03:00
Sam Richard
1604fe745d 🐛 Fix empty partials copied to CSS folder
Resolves #306
2015-06-27 12:39:28 -05:00
Sam Richard
273e0a33f8 Merge pull request #293 from mariusc23/master
Fix gulp watch stopping on error.
2015-06-25 09:36:35 -05:00
AJ Ostrow
7f6605e433 check contents length for empty file 2015-06-10 17:45:12 -04:00
Marius Craciunoiu
061fce9878 Use gutil.PluginError instead of log. 2015-06-09 17:34:58 -04:00
Marius Craciunoiu
de7414b630 Fix gulp watch stopping on error. 2015-06-09 16:46:29 -04:00
Thomas Jaggi
62af7d477a Error handling: Throw complete sass error but extend message 2015-05-12 18:48:07 +02:00
Linus Miller
9407865e27 Unshift instead of push current files path onto includePaths. 2015-05-12 13:31:04 +02:00
Thomas Jaggi
bdb05ca910 Add test case with gulp-sourcemaps and autoprefixer 2015-05-09 12:12:13 +02:00
David Peter
c1d629c209 Allow you to change the compiler and expose it
This will let you write sass.compiler.types, for example, and access the
sass types without having to require it in your main app.

Additionally, this lets you use a forked compiler, or a different branch
of the same compiler.
2015-04-14 12:23:54 -04:00
Sam Richard
b7ade97b7a Indented Syntax support 2015-04-01 12:32:12 -04:00
Sam Richard
0fefd16607 Updated vars and includePaths based on comments 2015-04-01 10:43:39 -04:00
Sam Richard
4c4c3c125e A little bit of source map massaging 2015-03-31 16:26:29 -04:00
Sam Richard
3cdf1a325d Passing file as data
Resolves dlmanning/gulp-sass#158 once I get it working
2015-03-31 15:55:26 -04:00
Sam Richard
5c14789228 Updated Message style
Aligns with Stylish reporter (used in ESLint, jshint-stylish, etc…

Removed colors from message except for  which is a standard Gulp log output color

Includes line and column in error report
2015-03-30 08:16:04 -04:00
Sam Richard
ca990d0981 DRY'ed out the push back into the stream 2015-03-26 20:19:33 -04:00
Sam Richard
7a2f8ac259 Resolved 2.x merge conflicts
# By Vincent Prouillet
# Via Vincent Prouillet
* '2.x' of github.com:Snugug/gulp-sass:
  Use plugin name const in logError

# Conflicts:
#	index.js
2015-03-26 19:55:20 -04:00
Sam Richard
f416379458 Added Sync option
Addes `sass.sync` to allow users to compile synchronously.

Wrapped the async callback in an `if` statement controlled by a `sync` option for the main function

Added `renderSync` render option
2015-03-26 19:42:14 -04:00
Sam Richard
8bc76e15e6 Moved 'use strict' in index.js to global
Updated tests accordingly
2015-03-26 19:15:59 -04:00
Vincent Prouillet
d77ca081c4 Use plugin name const in logError 2015-03-25 19:29:30 +00:00
Sam Richard
5f1812f623 Merge branch '2-sourcemaps' of https://github.com/Keats/gulp-sass into 2.x
# By Vincent Prouillet
# Via Vincent Prouillet
* '2-sourcemaps' of https://github.com/Keats/gulp-sass:
  Sourcemap paths seem to be relative now?

# Conflicts:
#	index.js
2015-03-24 15:21:47 -04:00
Sam Richard
5fbbc32bd9 Updated error message to more closely match 1.x 2015-03-24 15:15:54 -04:00
Sam Richard
eca922cb2d Nicer function for logging errors 2015-03-24 07:32:46 -05:00
Vincent Prouillet
212e221212 Sourcemap paths seem to be relative now?
At least the test still pass and paths
looks the same with and without the relative fudge.
Sourcemaps are completely wonky though and do not point at the right thing

Also removes jshint since it's using eslint now
2015-03-24 12:16:31 +00:00
Sam Richard
ae3fa21a3a Fixed linting issues with index.js 2015-03-24 05:38:03 -05:00
Sam Richard
480820b937 omitSourceMapUrl instead of hack
Node Sass now returns a buffer, so we don't need to turn it into a buffer for the contents
2015-03-24 04:51:57 -05:00
Sam Richard
abb28ba65e Sourcemap Support ported from 1.x 2015-03-24 04:40:48 -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
Matias Singers
9e90c79e5b Format errLogToConsole message with red color 2015-03-16 18:01:37 +08:00
David Manning
314ce5c159 Updated node-sass dependency 2015-02-12 13:49:11 -08:00
MethodGrab
1a1c1b4cd9 Add lineNumber & fileName to emitted error 2015-02-10 13:45:07 +00:00
Joakim Strandell
55601e217b New string for error logging 2015-01-15 13:07:49 +01:00
xzyfer
013064de26 Fix undefined variable 2015-01-14 15:42:01 +11:00
David Manning
cc2b0a919d Fix formatting and remove dead code 2015-01-13 17:21:54 -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
0d1a5eb2b7 Fix include path with node 1.2.3 2014-11-26 11:09:36 +01:00
David Manning
d2d97eb631 little clean up 2014-11-13 18:47:16 -08:00
Felix Zandanel
cff681aeb1 Make a deep clone of the options hash at the prolog 2014-11-08 18:02:07 +01:00
David Manning
77159456fb merge 2014-10-28 22:58:24 -07:00
David Manning
91776b3a39 fix includePaths 2014-10-28 11:01:55 -07:00
David Manning
22fe33db96 merge 2014-10-09 15:03:12 -07:00
David Clark
63a08c54f6 Make sourcemap source paths relative to file.base; fixes #92. 2014-10-04 17:05:52 -07:00
Brent Dearth
e49130a48e fix(sourcemaps): allow for rewriting sourceMappingURL in compressed output style 2014-10-02 14:38:51 -04:00
David Manning
88a7afdc11 fixed issue sourceMap 2014-09-10 22:35:08 -07:00
David Manning
25b326fac1 Resolve merge conflicts 2014-09-10 20:04:06 -07:00
Jesse Pollak
f3db14303a switch to use vinyl-sourcemaps-apply 2014-09-10 16:24:04 -07:00