mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 13:00:19 +00:00
clear to tests
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
import * as gulp from 'gulp';
|
||||
import * as stylus from 'gulp-stylus';
|
||||
|
||||
gulp.task('styles1', () => {
|
||||
return gulp.src('./css/one.styl')
|
||||
.pipe(stylus())
|
||||
.pipe(gulp.dest('./css/build'));
|
||||
});
|
||||
|
||||
gulp.task('styles2', () => {
|
||||
return gulp.src('./css/compressed.styl')
|
||||
.pipe(stylus({
|
||||
compress: true
|
||||
}))
|
||||
.pipe(gulp.dest('./css/build'));
|
||||
});
|
||||
|
||||
gulp.task('styles3', () => {
|
||||
return gulp.src('./css/*.styl')
|
||||
.pipe(stylus({
|
||||
'include css': true
|
||||
}))
|
||||
.pipe(gulp.dest('./'));
|
||||
});
|
||||
|
||||
const data = {red: '#ff0000'};
|
||||
gulp.task('styles4', () => {
|
||||
gulp.src('./sty/main.styl')
|
||||
.pipe(stylus({ rawDefine: { data }}))
|
||||
.pipe(gulp.dest('./css/build'));
|
||||
});
|
||||
Vendored
+24
@@ -0,0 +1,24 @@
|
||||
// Type definitions for gulp-stylus 2.7
|
||||
// Project: http://github.com/stevelacy/gulp-stylus
|
||||
// Definitions by: Takesi Tokugawa <https://github.com/TokugawaTakesi>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="node"/>
|
||||
|
||||
interface GulpStylus {
|
||||
(options?: GulpStylus.Options): NodeJS.ReadWriteStream;
|
||||
}
|
||||
|
||||
declare namespace GulpStylus {
|
||||
interface Options {
|
||||
compress?: boolean;
|
||||
linenos?: boolean;
|
||||
'include css'?: boolean;
|
||||
rawDefine?: {
|
||||
data: any
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
declare var gulpStylus: GulpStylus;
|
||||
export = gulpStylus;
|
||||
@@ -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-stylus-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
Reference in New Issue
Block a user