本文整理汇总了TypeScript中require-dir.default函数的典型用法代码示例。如果您正苦于以下问题:TypeScript default函数的具体用法?TypeScript default怎么用?TypeScript default使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了default函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: require
/// <reference path="./typings/main.d.ts" />
const requireDir = require('require-dir');
requireDir('./tasks/', { recurse: true });
示例2: require
ďťż/// <reference path="_references.ts" />
'use strict';
import gulp = require("gulp");
var sequence: Function = require("run-sequence");
var requireDir = require("require-dir");
var tasks = requireDir("tasks/");
gulp.task("deploy-with-readme",(cb: gulp.ITaskCallback) => {
sequence("make-readme", "deploy", cb);
});
示例3: require
/// <reference path="./typings/main.d.ts"/>
const gulpLoadPlugins = require('gulp-load-plugins');
const requireDir = require('require-dir');
gulpLoadPlugins();
requireDir('./gulp_tasks',{recurse:true});
示例4: require
/// <reference path="./typings/tsd.d.ts"/>
var requireDir = require('require-dir');
var path = require('path');
requireDir(path.join(__dirname, '/gulp/tasks'), { recursive: true });
示例5: require
/// <reference path="./typings/main.d.ts"/>
const gulp = require('gulp');
const gulpLoadPlugins = require('gulp-load-plugins');
const requireDir = require('require-dir');
gulpLoadPlugins();
requireDir('./gulp.ts',{recurse:true});
示例6: terminate
makeResourceLoader, makeSimplifier, makeValidator,
parseSimplifiedSchema, SchemaValidationError, serialize,
SimplificationResult } from "../conversion";
import { ParameterParsingError, ValueValidationError } from "../datatypes";
import { writeTreeToJSON } from "../json-format/write";
import { version } from "../validate";
import { Fatal } from "./convert/fatal";
// tslint:disable:no-console no-non-null-assertion radix
temp.track();
const prog = path.basename(process.argv[1]);
const stderr = process.stderr;
requireDir("../conversion/schema-simplifiers");
requireDir("../conversion/schema-validators");
//
// Safety harness
//
let args: any;
let terminating = false;
function terminate(ex: unknown): void {
// We don't want to handle exceptions that happen while we're terminating.
if (terminating) {
if (ex != null) {
process.stderr.write(`${prog}: got error while terminating\n`);
process.stderr.write(util.inspect(ex));
}
示例7: require
/*
gulpfile.js - main gulp file
*/
var fs = require('fs');
var requireDir = require('require-dir');
eval(`global.top = "${__dirname}"`);
require('../paks/assist/gulp/website/init');
requireDir('../paks/assist/gulp/website');
if (fs.existsSync('bin/gulp')) {
requireDir('bin/gulp')
}