0.0.3 • Published 9 years ago

gulp-seajs-config v0.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

gulp-seajs-config

生成seajs-config 的 map 参数的js文件,因为spm-build没有生成map的功能,所以写了这一个。

#Usage

var gulp = require('gulp');
var gsc = require('gulp-seajs-config');

gulp.task('default', function() {
	return gulp.src('./spm-modules/**/*.js')
		.pipe(gsc({
			target: './seajs-config.js',
			cwd: './spm-modules'
		}))
		.pipe(gulp.dest('./dest'));
});

#Options 所有参数和默认值

.pipe(gsc({
    target:"./seajs-config.js",
    algorithm:"sha1",
    length:null,
    flatten:false,
    cwd:process.cwd()
}))

简单用法参数

.pipe(gsc("./seajs-config.js"))

Or

.pipe(gsc())

#License

MIT

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago