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


TypeScript gulp-concat.default函數代碼示例

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