Skip to content

pylp/pylpconcat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Information

PyPI PyPI PyPI

pylpconcat is a plugin for Pylp that can concatenate file contents.

Installation

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

Usage

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'))
)

About

Concatenation plugin for Pylp

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages