本文整理汇总了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'));
}
示例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));
});
}
示例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'));
}
示例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'));
}
示例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'))
});
示例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
}));
}
示例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));
}
示例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));
}
示例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'));
});