• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

TypeScript gulp-load-plugins类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了TypeScript中gulp-load-plugins的典型用法代码示例。如果您正苦于以下问题:TypeScript gulp-load-plugins类的具体用法?TypeScript gulp-load-plugins怎么用?TypeScript gulp-load-plugins使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了gulp-load-plugins类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的TypeScript代码示例。

示例1: gulpLoadPlugins

import * as gulpLoadPlugins from "gulp-load-plugins";
import * as util from "gulp-util";

const plugins: any = gulpLoadPlugins();

/**
 * This task runs the xmpl modifier scripts
 * It will modify the input xml files so they are in the correct format to be read by the commadns generator script.
 */
export = () => {
  return plugins.run("../tools/commandsGenerator/ModifyXMLs.ps1", {usePowerShell :true} ).exec();
};
开发者ID:gesh123,项目名称:MyLibrary,代码行数:12,代码来源:generate.commands.modify.xmls.ts


示例2: gulpLoadPlugins

import * as gulp from 'gulp'
import * as gulpLoadPlugins from 'gulp-load-plugins'
import * as runSequence from 'run-sequence'

const $ = gulpLoadPlugins()

gulp.task('chromeManifest', ['js'], () => {
  return gulp
    .src('app/manifest.json')
    .pipe(
      $.chromeManifest({
        buildnumber: true,
        background: {
          target: 'scripts/background.js',
          exclude: ['scripts/chromereload.js']
        }
      })
    )
    .pipe(gulp.dest('dist'))
})

gulp.task('js', () => {
  return gulp
    .src(['app/scripts/options.js', 'app/scripts/popup.js'])
    .pipe(gulp.dest('dist/scripts'))
})

gulp.task('size', () => {
  return gulp.src('dist/**/*').pipe($.size({ title: 'build', gzip: true }))
})
开发者ID:taka-sho,项目名称:userdive-tag-paster,代码行数:30,代码来源:gulpfile.ts


示例3:

/// <reference path="../gulp-concat/gulp-concat" />
/// <reference path="gulp-load-plugins" />

import * as gulp from 'gulp';
import * as gulpConcat from 'gulp-concat';
import * as gulpLoadPlugins from 'gulp-load-plugins';

interface GulpPlugins extends IGulpPlugins {
	concat: typeof gulpConcat;
}

var plugins = gulpLoadPlugins<GulpPlugins>({
    pattern: ['gulp-*', 'gulp.*'],
    config: 'package.json',
    scope: ['dependencies', 'devDependencies', 'peerDependencies'],
    replaceString: /^gulp(-|\.)/,
    camelize: true,
    lazy: true,
    rename: {}
});
plugins = gulpLoadPlugins<GulpPlugins>();

gulp.task('taskName', () => {
	gulp.src('*.*')
		.pipe(plugins.concat('concatenated.js'))
		.pipe(gulp.dest('output'));
});

/*
 * From 0.8.0, you can pass in an object of mappings for renaming plugins. For example,
 * imagine you want to load the  gulp-ruby-sass  plugin, but want to refer to it as just
开发者ID:0815fox,项目名称:DefinitelyTyped,代码行数:31,代码来源:gulp-load-plugins-tests.ts


示例4: task

export function task(taskname: string, option?: string) {
  return require(join('..', 'tasks', taskname))(gulp, plugins(), option);
}
开发者ID:hjc879227,项目名称:angular2-hot-loader-demo,代码行数:3,代码来源:tasks-tools.ts


示例5: task

export function task(taskName: string, option?: string) {
  util.log('loading task', chalk.yellow(taskName, option || ''));
  return require(join('..', 'tasks', taskName))(gulp, gulpLoadPlugins(), option);
}
开发者ID:JayKan,项目名称:angular2-dashboard,代码行数:4,代码来源:tasks_tools.ts


示例6: task

export function task(taskname: string, option?: string) {
  return require(join('.', 'gulp', taskname))(gulp, gulpLoadPlugins(), option);
}
开发者ID:destyjustc,项目名称:agl2-research,代码行数:3,代码来源:gulpfile.ts


示例7: tasks

function tasks(task: string, option?: string) {
  return require('./tools/tasks/' + task)(gulp, plugins(), option);
}
开发者ID:Anhmike,项目名称:hotelbooking-angular2,代码行数:3,代码来源:gulpfile.ts


示例8: task

export function task(taskname: string, option?: string) {
  return require(join("..", "tasks", taskname))(gulp, gulpLoaderPlugins(), option);
}
开发者ID:wuyingki,项目名称:angular2-seed,代码行数:3,代码来源:tasks_tools.ts


示例9: task

export function task(name: string, option?: string) {
    util.log('Loading task', chalk.yellow(name, option || ''));

    return require(`../tasks/${name}`)(gulp, plugins(), option);
};
开发者ID:fellswoop,项目名称:angular-project-template,代码行数:5,代码来源:tasks.ts



注:本文中的gulp-load-plugins类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
TypeScript gulp-minify-html类代码示例发布时间:2022-05-28
下一篇:
TypeScript gulp-less类代码示例发布时间:2022-05-28
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap