mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 15:00:26 +00:00
Clear for first checking
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
import * as gulp from 'gulp';
|
||||
import * as postcss from 'gulp-postcss';
|
||||
import * as autoprefixer from 'autoprefixer';
|
||||
import * as Vinyl from 'vinyl'
|
||||
|
||||
gulp.task('postCss1', () => {
|
||||
return gulp.src('./src/*.css')
|
||||
.pipe(postcss())
|
||||
.pipe(gulp.dest('./dest'));
|
||||
});
|
||||
|
||||
gulp.task('postCss2', () => {
|
||||
const postCssPlugins = [ autoprefixer({browsers: ['last 1 version']}) ];
|
||||
return gulp.src('./src/*.css')
|
||||
.pipe(postcss(postCssPlugins))
|
||||
.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(gulp.dest('out'));
|
||||
});
|
||||
*/
|
||||
|
||||
gulp.task('postCss4', () => {
|
||||
function callback(file: Vinyl) {
|
||||
return {
|
||||
plugins: [
|
||||
require('postcss-import')({ root: file.dirname }),
|
||||
require('postcss-modules')
|
||||
],
|
||||
options: {
|
||||
parser: file.extname === '.sss' ? require('sugarss') : false
|
||||
}
|
||||
};
|
||||
}
|
||||
return gulp.src('./src/*.css')
|
||||
.pipe(postcss(callback))
|
||||
.pipe(gulp.dest('./dest'));
|
||||
});
|
||||
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
// Type definitions for gulp-postcss 8.0
|
||||
// Project: https://www.npmjs.com/package/gulp-postcss
|
||||
// Definitions by: Takesi Tokugawa <https://github.com/TokugawaTakesi>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="node"/>
|
||||
import Vinyl = require('vinyl');
|
||||
|
||||
declare function GulpPostCss(plugins?: string[], options?: GulpPostCss.Options): NodeJS.ReadWriteStream;
|
||||
declare function GulpPostCss(callback?: (file: Vinyl) => { plugins?: string[], options?: GulpPostCss.Options }):
|
||||
NodeJS.ReadWriteStream;
|
||||
|
||||
declare namespace GulpPostCss {
|
||||
interface Options {
|
||||
parser?: Object;
|
||||
}
|
||||
}
|
||||
|
||||
export = GulpPostCss;
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictFunctionTypes": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"gulp-tap-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
Reference in New Issue
Block a user