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


TypeScript slash類代碼示例

本文整理匯總了TypeScript中slash的典型用法代碼示例。如果您正苦於以下問題:TypeScript slash類的具體用法?TypeScript slash怎麽用?TypeScript slash使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了slash類的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。

示例1: function

 return function (filepath) {
   filepath = ENV === 'prod' ? filepath.replace(`/${APP_DEST}`, '') : filepath;
   return slash(plugins.inject.transform.apply(plugins.inject.transform, arguments));
 };
開發者ID:99plus2,項目名稱:pev,代碼行數:4,代碼來源:template-injectables.ts

示例2: function

 return function (filepath) {
   arguments[0] = join(APP_BASE, filepath);
   return slash(plugins.inject.transform.apply(plugins.inject.transform, arguments));
 };
開發者ID:jtborst,項目名稱:instaMoneyDashboard,代碼行數:4,代碼來源:template-injectables.ts

示例3: join

 .map(path => join(target, slash(path).split('/').pop()))
開發者ID:99plus2,項目名稱:pev,代碼行數:1,代碼來源:template-injectables.ts

示例4: callback

 .pipe(through2.obj(function(chunk, enc, callback) {
   this.push(slash(path.relative(__dirname, chunk.path)));
   callback();
 }))
開發者ID:brunkb,項目名稱:a2-contact,代碼行數:4,代碼來源:gulpfile.ts

示例5: function

 return function(filePath) {
   filePath = ENV === 'prod' ? filePath.replace(`/${APP_DEST}`, '') : filePath;
   arguments[0] = join(APP_BASE, filePath) + `?${Date.now()}`;
   return slash(plugins.inject.transform.apply(plugins.inject.transform, arguments));
 };
開發者ID:JayKan,項目名稱:angular2-dashboard,代碼行數:5,代碼來源:template_injectables.ts

示例6: function

 return function (filepath) {
   filepath = ENV === "prod" ? filepath.replace(`/${APP_DEST}`, "") : filepath;
   arguments[0] = join(APP_BASE, filepath) /* + `?${Date.now()}` */ ;
   return slash(plugins.inject.transform.apply(plugins.inject.transform, arguments));
 };
開發者ID:wuyingki,項目名稱:angular2-seed,代碼行數:5,代碼來源:template_injectables.ts

示例7: mapDestPathForlib

function mapDestPathForlib(filePath: string) {
  const relPath = path.dirname(path.relative(__dirname, filePath));
  return slash(relPath).replace(FIRST_PATH_SEGMENT, PATHS.dest.dist.lib);
}
開發者ID:brunkb,項目名稱:a2-contact,代碼行數:4,代碼來源:gulpfile.ts

示例8: function

 return function(filePath) {
   filePath = env === 'prod' ? filePath.replace(FIRST_PATH_SEGMENT, '/lib') : filePath;
   arguments[0] = join('.', filePath);
   return slash(plugins.inject.transform.apply(plugins.inject.transform, arguments));
 };
開發者ID:JayKan,項目名稱:angular2-todo,代碼行數:5,代碼來源:template_injectables.ts

示例9: join

 return PATH.src.lib_inject.map(path =>
   join(PATH.dest.dev.lib, slash(path).split('/').pop()));
開發者ID:Anhmike,項目名稱:hotelbooking-angular2,代碼行數:2,代碼來源:utils.ts

示例10: slash

import * as yargs from 'yargs';
import * as slash from 'slash';
import * as fse from 'fs-extra';

const argv = yargs.argv;
const CWD = slash(process.cwd());

process.env.APP_ENVIRONMENT = argv['env'] || process.env.APP_ENVIRONMENT || 'dev';

export const IS_PROD = process.env.APP_ENVIRONMENT === 'prod';

export const PORT = 5555;
export const LIVE_RELOAD_PORT = 4002;
export const APP_ROOT = '/';

const TMP = 'tmp';
const CLIENT_SRC = 'client';
const CLIENT_DEST = 'dist';
const NM = 'node_modules';
const INDEX_HTML = `${CLIENT_SRC}/index.html`;
const TS_LIB_DEF = [
  'typings/main/ambient/es6-shim/*.d.ts',
  'tools/manual_typings/module.d.ts'
];

export const PATHS = {
  cwd: CWD,
  src: {
    vendor: {
      js: [
        `${NM}/es6-shim/es6-shim.js`,
開發者ID:brunkb,項目名稱:a2-contact,代碼行數:31,代碼來源:config.ts


注:本文中的slash類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。