UNPKG

1.49 kBSource Map (JSON)View Raw
1{"version":3,"file":"GulpProxy.js","sourceRoot":"","sources":["../src/GulpProxy.ts"],"names":[],"mappings":";AAAA,4FAA4F;AAC5F,2DAA2D;;AAG3D,6CAA8C;AAE9C;;GAEG;AACH,MAAa,SAAU,SAAQ,YAAY;IAKzC,YAAmB,YAAuB;QACxC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,GAAG,GAAG,YAAY,CAAC,GAAG,CAAC;QAC5B,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC,IAAI,CAAC;QAC9B,IAAI,CAAC,KAAK,GAAG,YAAY,CAAC,KAAK,CAAC;IAClC,CAAC;IAED,8DAA8D;IACvD,IAAI;QACT,MAAM,IAAI,KAAK,CACb,qIAAqI,CACtI,CAAC;IACJ,CAAC;CACF;AAlBD,8BAkBC","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\r\n// See LICENSE in the project root for license information.\r\n\r\nimport gulp = require('gulp');\r\nimport Orchestrator = require('orchestrator');\r\n\r\n/**\r\n * A helper utility for gulp which can be extended to provide additional features to gulp vinyl streams\r\n */\r\nexport class GulpProxy extends Orchestrator {\r\n public src: gulp.SrcMethod;\r\n public dest: gulp.DestMethod;\r\n public watch: gulp.WatchMethod;\r\n\r\n public constructor(gulpInstance: gulp.Gulp) {\r\n super();\r\n this.src = gulpInstance.src;\r\n this.dest = gulpInstance.dest;\r\n this.watch = gulpInstance.watch;\r\n }\r\n\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n public task(): any {\r\n throw new Error(\r\n 'You should not define gulp tasks directly, but instead subclass the GulpTask or call subTask(), and register it to gulp-core-build.'\r\n );\r\n }\r\n}\r\n"]}
\No newline at end of file