mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +08:00
gulp-typescript: implemented createProject which uses the existing file
This commit is contained in:
@@ -26,6 +26,11 @@ var tsProject = typescript.createProject({
|
||||
noExternalResolve: true
|
||||
});
|
||||
|
||||
|
||||
var mainTscProject = typescript.createProject("tsconfig.json", {
|
||||
target: "es6"
|
||||
});
|
||||
|
||||
gulp.task('scripts', function() {
|
||||
var tsResult = gulp.src('lib/*.ts')
|
||||
.pipe(typescript(tsProject));
|
||||
|
||||
Vendored
+2
-1
@@ -8,8 +8,9 @@
|
||||
declare module "gulp-typescript" {
|
||||
function GulpTypescript(params: GulpTypescript.Params, filters?: GulpTypescript.FilterSettings, reporter?: GulpTypescript.Reporter): GulpTypescript.CompilationStream;
|
||||
|
||||
module GulpTypescript {
|
||||
module GulpTypescript {
|
||||
export function createProject(params: Params): Params;
|
||||
export function createProject(file: string, params: Params): Params;
|
||||
export function filter(filters: FilterSettings): CompilationStream;
|
||||
interface Params {
|
||||
declarationFiles?: boolean;
|
||||
|
||||
Reference in New Issue
Block a user