diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-11-16 01:59:39 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-11-16 02:00:31 +0100 |
commit | bd65bb67e25a79b019d745b7262b2008ce2adb15 (patch) | |
tree | 89e1b032103a63737f1a703e6a943832ef261704 /node_modules/gulp-typescript/release | |
parent | f91466595b651721690133f58ab37f977539e95b (diff) | |
download | wallet-core-bd65bb67e25a79b019d745b7262b2008ce2adb15.tar.xz |
incrementally verify denoms
The denominations are not stored in a separate object store.
Diffstat (limited to 'node_modules/gulp-typescript/release')
-rw-r--r-- | node_modules/gulp-typescript/release/main.js | 25 | ||||
-rw-r--r-- | node_modules/gulp-typescript/release/project.js | 3 | ||||
-rw-r--r-- | node_modules/gulp-typescript/release/types.d.ts | 4 | ||||
-rw-r--r-- | node_modules/gulp-typescript/release/utils.d.ts | 2 | ||||
-rw-r--r-- | node_modules/gulp-typescript/release/utils.js | 15 |
5 files changed, 29 insertions, 20 deletions
diff --git a/node_modules/gulp-typescript/release/main.js b/node_modules/gulp-typescript/release/main.js index b6e235d7d..c85e477f5 100644 --- a/node_modules/gulp-typescript/release/main.js +++ b/node_modules/gulp-typescript/release/main.js @@ -1,22 +1,21 @@ "use strict"; var fs = require('fs'); var path = require('path'); -var gutil = require('gulp-util'); var _project = require('./project'); var utils = require('./utils'); var _reporter = require('./reporter'); function compile(param, theReporter) { if (arguments.length >= 3) { - deprecate("Reporter are now passed as the second argument", "remove the second argument", "Filters have been removed as of gulp-typescript 3.0.\nThe reporter is now passed as the second argument instead of the third argument."); + utils.deprecate("Reporter are now passed as the second argument", "remove the second argument", "Filters have been removed as of gulp-typescript 3.0.\nThe reporter is now passed as the second argument instead of the third argument."); } var proj; if (typeof param === "function") { proj = param; if (arguments.length >= 2) { - deprecate("ts(tsProject, ...) has been deprecated", "use .pipe(tsProject(reporter)) instead", "As of gulp-typescript 3.0, .pipe(ts(tsProject, ...)) should be written as .pipe(tsProject(reporter))."); + utils.deprecate("ts(tsProject, ...) has been deprecated", "use .pipe(tsProject(reporter)) instead", "As of gulp-typescript 3.0, .pipe(ts(tsProject, ...)) should be written as .pipe(tsProject(reporter))."); } else { - deprecate("ts(tsProject) has been deprecated", "use .pipe(tsProject(reporter)) instead", "As of gulp-typescript 3.0, .pipe(ts(tsProject)) should be written as .pipe(tsProject())."); + utils.deprecate("ts(tsProject) has been deprecated", "use .pipe(tsProject(reporter)) instead", "As of gulp-typescript 3.0, .pipe(ts(tsProject)) should be written as .pipe(tsProject())."); } } else { @@ -31,7 +30,7 @@ function getTypeScript(typescript) { return require('typescript'); } catch (e) { - deprecate("TypeScript not installed", "install with `npm install typescript --save-dev`", "As of gulp-typescript 3.0, TypeScript isn't bundled with gulp-typescript any more.\nInstall the latest stable version with `npm install typescript --save-dev`\nor a nightly with `npm install typescript@next --save-dev`"); + utils.deprecate("TypeScript not installed", "install with `npm install typescript --save-dev`", "As of gulp-typescript 3.0, TypeScript isn't bundled with gulp-typescript any more.\nInstall the latest stable version with `npm install typescript --save-dev`\nor a nightly with `npm install typescript@next --save-dev`"); throw new Error("TypeScript not installed"); } } @@ -41,10 +40,10 @@ function getCompilerOptions(settings, projectPath, configFileName) { console.warn('gulp-typescript: sourceRoot isn\'t supported any more. Use sourceRoot option of gulp-sourcemaps instead.'); } if (settings.noExternalResolve !== undefined) { - deprecate("noExternalResolve is deprecated", "use noResolve instead", "The non-standard option noExternalResolve has been removed as of gulp-typescript 3.0.\nUse noResolve instead."); + utils.deprecate("noExternalResolve is deprecated", "use noResolve instead", "The non-standard option noExternalResolve has been removed as of gulp-typescript 3.0.\nUse noResolve instead."); } if (settings.sortOutput !== undefined) { - deprecate("sortOutput is deprecated", "your project might work without it", "The non-standard option sortOutput has been removed as of gulp-typescript 3.0.\nYour project will probably compile without this option.\nOtherwise, if you're using gulp-concat, you should remove gulp-concat and use the outFile option instead."); + utils.deprecate("sortOutput is deprecated", "your project might work without it", "The non-standard option sortOutput has been removed as of gulp-typescript 3.0.\nYour project will probably compile without this option.\nOtherwise, if you're using gulp-concat, you should remove gulp-concat and use the outFile option instead."); } // Copy settings and remove several options var newSettings = {}; @@ -121,18 +120,8 @@ var compile; for (var _i = 0; _i < arguments.length; _i++) { args[_i - 0] = arguments[_i]; } - deprecate('ts.filter() is deprecated', 'soon you can use tsProject.resolve()', 'Filters have been removed as of gulp-typescript 3.0.\nSoon tsProject.resolve() will be available as an alternative.\nSee https://github.com/ivogabe/gulp-typescript/issues/190.'); + utils.deprecate('ts.filter() is deprecated', 'soon you can use tsProject.resolve()', 'Filters have been removed as of gulp-typescript 3.0.\nSoon tsProject.resolve() will be available as an alternative.\nSee https://github.com/ivogabe/gulp-typescript/issues/190.'); } compile.filter = filter; })(compile || (compile = {})); -function deprecate(title, alternative, description) { - console.log(gutil.colors.red('gulp-typescript').toString() + - gutil.colors.gray(': ') + - title + - gutil.colors.gray(' - ') + - alternative); - if (description) - console.log(' ' + gutil.colors.gray(description.replace(/\n/g, '\n '))); - console.log(' ' + gutil.colors.gray('More information: ' + gutil.colors.underline('http://dev.ivogabe.com/gulp-typescript-3/'))); -} module.exports = compile; diff --git a/node_modules/gulp-typescript/release/project.js b/node_modules/gulp-typescript/release/project.js index 01f4696ae..28f1244ca 100644 --- a/node_modules/gulp-typescript/release/project.js +++ b/node_modules/gulp-typescript/release/project.js @@ -58,6 +58,9 @@ function setupProject(projectDirectory, config, options, typescript) { } exports.setupProject = setupProject; function src() { + if (arguments.length >= 1) { + utils.message("tsProject.src() takes no arguments", "Use gulp.src(..) if you need to specify a glob"); + } var base; if (this.options["rootDir"]) { base = path.resolve(this.projectDirectory, this.options["rootDir"]); diff --git a/node_modules/gulp-typescript/release/types.d.ts b/node_modules/gulp-typescript/release/types.d.ts index 6d8c2ea11..b1c0e1076 100644 --- a/node_modules/gulp-typescript/release/types.d.ts +++ b/node_modules/gulp-typescript/release/types.d.ts @@ -18,9 +18,9 @@ export interface VinylFile { isDirectory(): boolean; } export interface RawSourceMap { - file?: string; + file: string; sourceRoot?: string; - version: string; + version: number; sources: string[]; names: string[]; sourcesContent?: string[]; diff --git a/node_modules/gulp-typescript/release/utils.d.ts b/node_modules/gulp-typescript/release/utils.d.ts index de309db57..263b102d9 100644 --- a/node_modules/gulp-typescript/release/utils.d.ts +++ b/node_modules/gulp-typescript/release/utils.d.ts @@ -19,3 +19,5 @@ export declare function splitExtension(fileName: string, knownExtensions?: strin export declare function getCommonBasePath(a: string, b: string): string; export declare function getCommonBasePathOfArray(paths: string[]): string; export declare function getError(info: ts.Diagnostic, typescript: typeof ts, file?: File): reporter.TypeScriptError; +export declare function deprecate(title: string, alternative: string, description?: string): void; +export declare function message(title: string, alternative: string, description?: string): void; diff --git a/node_modules/gulp-typescript/release/utils.js b/node_modules/gulp-typescript/release/utils.js index 8185ab432..78fe2cc3d 100644 --- a/node_modules/gulp-typescript/release/utils.js +++ b/node_modules/gulp-typescript/release/utils.js @@ -97,3 +97,18 @@ function getError(info, typescript, file) { return err; } exports.getError = getError; +function deprecate(title, alternative, description) { + message(title, alternative, description); + console.log(' ' + gutil.colors.gray('More information: ' + gutil.colors.underline('http://dev.ivogabe.com/gulp-typescript-3/'))); +} +exports.deprecate = deprecate; +function message(title, alternative, description) { + console.log(gutil.colors.red('gulp-typescript').toString() + + gutil.colors.gray(': ') + + title + + gutil.colors.gray(' - ') + + alternative); + if (description) + console.log(' ' + gutil.colors.gray(description.replace(/\n/g, '\n '))); +} +exports.message = message; |