當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript require-dir.default函數代碼示例

本文整理匯總了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;未經允許,請勿轉載。