本文整理汇总了TypeScript中gulp-concat.default函数的典型用法代码示例。如果您正苦于以下问题:TypeScript default函数的具体用法?TypeScript default怎么用?TypeScript default使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了default函数的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的TypeScript代码示例。
示例1: compile
function compile(isRelease: boolean) {
var tsProject = ts.createProject({
removeComments: true, // Do not emit comments to output.
//noImplicitAny: false, // Warn on expressions and declarations with an implied 'any' type.
//noLib: false, // Don't include the default lib (with definitions for - Array, Date etc)
//noEmitOnError: false, // Do not emit outputs if any type checking errors were reported.
//target: "ES3", // Specify ECMAScript target version: 'ES3' (default), 'ES5' or 'ES6'.
//module: "", // Specify module code generation: 'commonjs' or 'amd'
//sourceRoot: "", // Specifies the location where debugger should locate TypeScript files instead of source locations.
declarationFiles: false, // Generates corresponding .d.ts files.
noExternalResolve: false, // Do not resolve files that are not in the input. Explanation below.
sortOutput: true, // Sort output files. Usefull if you want to concatenate files (see below).
});
var tsResult = gulp.src(srcGlob)
.pipe(ts(tsProject, { referencedFrom: ['Application.ts'] }));
return tsResult.js
.pipe(concat('app.js'))
//.pipe(ngAnnotate())
//.pipe(gulpIf(isRelease, uglify()))
//.pipe(uglify())
.pipe(gulp.dest('Chokaigi2015/html/js'));
}
开发者ID:yuhki50,项目名称:pepper-chokaigi2015,代码行数:25,代码来源:typescript.ts
示例2: compileStyles
/************************************************************
*
*
* STYLES
*
*
***********************************************************/
public compileStyles(destPath: string, bundleFilename: string,
filesInBundle: string[], onCompileDone) {
var self = this;
this.terminal.echoArray("Compiling StyleSheets", filesInBundle);
this.terminal.echoInfo("Output Path Path \"" + destPath + "\"");
var dateString = new Date().toString();
var dnaStamp = "/* PackMan DNA | " + dateString + "*/\n";
var stream: any;
if (Global.Settings.useSourceMaps) {
var stream = gulp.src(filesInBundle)
.pipe(taskSourceMaps.init())
.pipe(taskSass().on('error', function(error) {
console.log("SASS Compilation error", error.message);
}))
.pipe(taskMinifyCss())
.pipe(taskConcat(bundleFilename))
.pipe(taskSourceMaps.write())
.pipe(taskInsert.prepend(dnaStamp))
.pipe(gulp.dest(destPath));
}
stream.on('end', function() {
onCompileDone();
self.terminal.echoPrefixedCyan("** Style Build done", path.join(destPath, bundleFilename));
});
}
开发者ID:duffman,项目名称:packman,代码行数:36,代码来源:resource.processor.ts
示例3: bundleRelease
function bundleRelease(stream) {
return stream
.pipe(concat('main.css'))
.pipe(applySass())
.pipe(autoprefixer({browsers: settings.autoprefixer}))
.pipe(minify())
.pipe(gulp.dest(helper.getTempFolder() + '/css'));
}
开发者ID:mtfranchetto,项目名称:smild,代码行数:8,代码来源:Styles.ts
示例4: uglify
() => {
return gulp.src(config.containerSource)
.pipe(concat('library.js.dist'))
.pipe(gulpif(minify, uglify().on('error', gutil.log)))
.pipe(gulp.dest(APP_DIR + '/Resources/container-lib'));
}
开发者ID:lindsaymacvean,项目名称:seventag,代码行数:8,代码来源:Gulpfile.ts
示例5: function
gulp.task('build:server', function () {
var tsProject = tsc.createProject('server/tsconfig.json');
var tsResult = gulp.src('server/**/*.ts')
.pipe(sourcemaps.init())
.pipe(tsc(tsProject))
return tsResult.js
.pipe(concat('server.js'))
.pipe(sourcemaps.write())
.pipe(gulp.dest('build'))
});
开发者ID:camphor-scent,项目名称:camphor,代码行数:10,代码来源:gulpfile.ts
示例6: bundleDevelopment
function bundleDevelopment(stream) {
return stream
.pipe(sourcemaps.init())
.pipe(concat('main.css'))
.pipe(applySass())
.pipe(autoprefixer({browsers: settings.autoprefixerRules}))
.pipe(sourcemaps.write())
.pipe(gulp.dest(helper.getDistFolder() + '/css'))
.pipe(refresh({
start: helper.isWatching(),
port: settings.liveReloadPort
}));
}
开发者ID:mtfranchetto,项目名称:smild,代码行数:13,代码来源:Styles.ts
示例7:
() => {
return gulp.src([
DEST_DIR + '/' + DEBUGGER_NAMESPACE + '/**/*.html',
'!' + DEST_DIR + '/' + DEBUGGER_NAMESPACE + '/*.html'
])
.pipe(ngTemplate({
module: 'stg.debugger.templates'
}))
.pipe(concat('templates.cache.js'))
.pipe(gulp.dest(DEST_DIR + '/' + DEBUGGER_NAMESPACE));
}
开发者ID:lindsaymacvean,项目名称:seventag,代码行数:13,代码来源:Gulpfile.ts
示例8: wiredep
() => {
let bowerDeps = wiredep({
dependencies: true,
devDependencies: env !== 'prod'
});
return gulp.src(bowerDeps.js, {base: 'bower_components'})
.pipe(concat('vendor.js'))
.pipe(gulpif(minify, uglify().on('error', gutil.log)))
.pipe(gulp.dest(DEST_DIR + '/' + DEBUGGER_NAMESPACE));
}
开发者ID:lindsaymacvean,项目名称:seventag,代码行数:13,代码来源:Gulpfile.ts
示例9:
gulp.task('jsconcat', () => {
return gulp.src(
[
'public/javascripts/*.js',
'public/backend/javascripts/*.js',
'public/front/javascripts/*.js'
],
{base: '..'})
.pipe(uglify())
.pipe(concat('client.min.js'))
.pipe(gulp.dest('production/wmonsin/public/javascripts'))
.pipe(gulp.dest('public/javascripts'));
});
开发者ID:7thCode,项目名称:wmonsin,代码行数:13,代码来源:gulpfile.ts
注:本文中的gulp-concat.default函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论