Skip to content

303K/gulp-sync-env

Repository files navigation

gulp-sync-env

NPM version Build Status Coverage Status Dependency Status

sync-env plugin for gulp

Usage

First, install gulp-sync-env as a development dependency:

npm install --save-dev gulp-sync-env

Then, add it to your gulpfile.js:

var syncEnv = require('gulp-sync-env');
var gulp = require('gulp');

gulp.task('syncEnv', function(){
    gulp.src('.env')
    .pipe(syncEnv('.env-example'))
    .pipe(gulp.dest(''));
});

gulp.task('watch', function(){
    gulp.watch('.env', ['syncEnv']);
});

gulp.task('default', ['watch']);

API

sync-env(options)

options.msg

Type: String
Default: .env-example

The name of the saved file.

About Appstract

Appstract is a small team from The Netherlands. We create (open source) tools for webdevelopment and write about related subjects on Medium. You can follow us on Twitter, buy us a beer or support us on Patreon.

License

MIT License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published