File tree Expand file tree Collapse file tree 3 files changed +45
-6
lines changed Expand file tree Collapse file tree 3 files changed +45
-6
lines changed Original file line number Diff line number Diff line change
1
+ /// <reference types="node"/>
2
+
3
+ import { Options } from 'sass' ;
4
+
5
+ interface SassResults {
6
+ css : string ;
7
+ map : string ;
8
+ stats : {
9
+ entry : string ;
10
+ start : Date ;
11
+ end : Date ;
12
+ duration : number ;
13
+ includedFiles : string [ ] ;
14
+ }
15
+ }
16
+
17
+ interface SassOptions extends Options {
18
+ success ?: ( results : SassResults ) => any ;
19
+ error ?: ( err : Error ) => any ;
20
+ imagePaths ?: string [ ] ;
21
+ }
22
+
23
+ interface GulpSassOptions extends SassOptions {
24
+ errLogToConsole ?: boolean ;
25
+ onSuccess ?: ( css : string ) => any ;
26
+ onError ?: ( err : Error ) => any ;
27
+ sync ?: boolean ;
28
+ }
29
+
30
+ interface Sass {
31
+ ( opts ?: GulpSassOptions ) : NodeJS . ReadWriteStream ;
32
+ logError ( error ?: string ) : void ;
33
+ sync ( options ?: GulpSassOptions ) : NodeJS . ReadWriteStream ;
34
+ }
35
+
36
+ declare var _tmp : Sass ;
37
+ export = _tmp ;
Original file line number Diff line number Diff line change @@ -163,6 +163,6 @@ gulpSass.logError = function logError(error) {
163
163
//////////////////////////////
164
164
// Store compiler in a prop
165
165
//////////////////////////////
166
- gulpSass . compiler = require ( 'node- sass' ) ;
166
+ gulpSass . compiler = require ( 'sass' ) ;
167
167
168
168
module . exports = gulpSass ;
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " gulp-sass" ,
3
- "version" : " 4.1.0 " ,
2
+ "name" : " @liquid-js/ gulp-sass" ,
3
+ "version" : " 4.1.2 " ,
4
4
"description" : " Gulp plugin for sass" ,
5
5
"main" : " index.js" ,
6
6
"engines" : {
7
7
"node" : " >=6"
8
8
},
9
9
"scripts" : {
10
- "test" : " ./node_modules/.bin/ mocha test"
10
+ "test" : " mocha test"
11
11
},
12
12
"repository" : {
13
13
"type" : " git" ,
18
18
" sass" ,
19
19
" gulp"
20
20
],
21
+ "typings" : " index.d.ts" ,
21
22
"author" : " David Manning" ,
22
23
"license" : " MIT" ,
23
24
"bugs" : {
24
25
"url" : " https://github.com/dlmanning/gulp-sass/issues"
25
26
},
26
27
"dependencies" : {
28
+ "@types/sass" : " ^1.16.0" ,
27
29
"chalk" : " ^2.3.0" ,
28
30
"lodash" : " ^4.17.11" ,
29
- "node-sass" : " ^4.8.3" ,
30
31
"plugin-error" : " ^1.0.1" ,
31
32
"replace-ext" : " ^1.0.0" ,
33
+ "sass" : " ^1.34.1" ,
32
34
"strip-ansi" : " ^4.0.0" ,
33
35
"through2" : " ^2.0.0" ,
34
36
"vinyl-sourcemaps-apply" : " ^0.2.0"
48
50
"should" : " ^13.2.1" ,
49
51
"vinyl" : " ^2.1.0"
50
52
}
51
- }
53
+ }
You can’t perform that action at this time.
0 commit comments