mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
test
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import * as gulp from 'gulp';
|
||||
import * as postcss from 'gulp-postcss';
|
||||
import * as autoprefixer from 'autoprefixer';
|
||||
import * as Vinyl from 'vinyl'
|
||||
import * as Vinyl from 'vinyl';
|
||||
import * as sass from 'sass';
|
||||
|
||||
gulp.task('postCss1', () => {
|
||||
return gulp.src('./src/*.css')
|
||||
@@ -16,14 +17,12 @@ gulp.task('postCss2', () => {
|
||||
.pipe(gulp.dest('./dest'));
|
||||
});
|
||||
|
||||
/*
|
||||
gulp.task('postCss3', () => {
|
||||
const plugins = [ autoprefixer({browsers: ['last 1 version']}) ];
|
||||
return gulp.src('in.sss')
|
||||
.pipe(postcss(plugins, { parser: sugarss }))
|
||||
.pipe(postcss(plugins, { parser: sass }))
|
||||
.pipe(gulp.dest('out'));
|
||||
});
|
||||
*/
|
||||
|
||||
gulp.task('postCss4', () => {
|
||||
function callback(file: Vinyl) {
|
||||
|
||||
Vendored
+2
-2
@@ -2,12 +2,12 @@
|
||||
// Project: https://www.npmjs.com/package/gulp-postcss
|
||||
// Definitions by: Takesi Tokugawa <https://github.com/TokugawaTakesi>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
// TypeScript Version: 2.8
|
||||
|
||||
/// <reference types="node"/>
|
||||
import Vinyl = require('vinyl');
|
||||
|
||||
declare function GulpPostCss(plugins?: string[], options?: GulpPostCss.Options): NodeJS.ReadWriteStream;
|
||||
declare function GulpPostCss(plugins?: any[], options?: GulpPostCss.Options): NodeJS.ReadWriteStream;
|
||||
declare function GulpPostCss(callback?: (file: Vinyl) => { plugins?: string[], options?: GulpPostCss.Options }):
|
||||
NodeJS.ReadWriteStream;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user