本文整理汇总了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 });
开发者ID:stolpnik,项目名称:angular2-test,代码行数:4,代码来源:gulpfile.ts
示例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);
});
开发者ID:ryohpops,项目名称:kspRemoteTechPlanner,代码行数:13,代码来源:gulpfile.ts
示例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});
开发者ID:albatrosary,项目名称:tasks,代码行数:7,代码来源:gulpfile.ts
示例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 });
开发者ID:yuhki50,项目名称:pepper-chokaigi2015,代码行数:4,代码来源:gulpfile.ts
示例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});
开发者ID:MSakamaki,项目名称:rxjs-handson,代码行数:8,代码来源:gulpfile.ts
示例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));
}
开发者ID:lddubeau,项目名称:salve,代码行数:31,代码来源:convert.ts
示例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')
}
开发者ID:embedthis,项目名称:appweb,代码行数:13,代码来源:gulpfile.ts
注:本文中的require-dir.default函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论