This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

gulp-pkg-export

0.1.0 • Public • Published

The tool is used to export packages in your project via Gulp.

Use this like:

const gulp = require('gulp');
const pkgExport = require('gulp-pkg-export');

gulp.task('pkg', function() {
	return gulp.src('src/**/*.js', {read: false})
		.pipe(pkgExport({
			// options for `pkg-export`
			base: 'src',
			npm: 'js/npm',
			compiler: function(content) {
				return require('babel-core').transform(content, {
					presets: ['es2015', 'stage-0'],
					plugins: ['transform-runtime']
				}).code;
			}
		}))
		.pipe(gulp.dest('dist'))
});

The options are passed to pkg-export. See here: https://github.com/HaoyCn/pkg-export

Readme

Keywords

Package Sidebar

Install

npm i gulp-pkg-export

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • haoycn