pylpconcat is a plugin for Pylp that can concatenate file contents.
Install pylpconcat with pip:
pip install pylpconcat
If you don't have Python Scripts folder in your PATH, you can run also:
python -m pip install pylpconcat
The usual use of pylpconcat is as follows:
import pylp
from pylpconcat import concat
pylp.task('scripts', lambda:
pylp.src('lib/*.js')
.pipe(concat('all.js'))
.pipe(pylp.dest('dist'))
)Moreover, you can specify the separator to add between files (\n by default):
import pylp
from pylpconcat import concat
pylp.task('scripts', lambda:
pylp.src('lib/*.js')
.pipe(concat('all.js', sep=';'))
.pipe(pylp.dest('dist'))
)