Blend
=====
Merge, analyze, and optimize client-side assets for web applications and static web sites.
Example
=======
Given the following directory structure::
project
lib
jquery-1.7.2.min.js
src
app.js
components
menu.js
common
helpers.js
And the following ``app.js``::
/* app.js */
//= require jquery
//= require menu
var app = {};
And the following ``menu.js``::
/* menu.js */
//= require jquery
//= require helpers
var menu = {};
And the following ``helpers.js``::
/* helpers.js */
var helpers = {};
Running ``blend`` with no arguments from the ``project`` directory will produce this directory structure::
project
lib
jquery-1.7.2.min.js
output
app.js
app.min.js
menu.js
menu.min.js
src
app.js
components
menu.js
common
helpers.js
Where ``app.js`` has the following content::
/* app.js */
/* ... the minified JQuery code, included only once */
var helpers = {};
var menu = {}
var app = {};
Usage
=====
blend [options] [file1 [file2 [fileN]]]
Command Line Options
--------------------
Output
~~~~~~
``-o OUTPUT, --output=OUTPUT``
Where the file output will be written. The default is a directory at the root of the
project directory named ``output``
Path
~~~~~
``-p PATH, --path=PATH``
A directory to be searched for required files. Multiple directories can specified by
repeating the flag. If you do not
specify any directory with the PATH flag then only the working directory will be searched for required files.
Skip Working Directory
~~~~~~~~~~~~~~~~~~~~~~
``-s, --skipcwd``
Exclude the current working directory from the requirement search paths.
Specify A Configuration File
~~~~~~~~~~~~~~~~~~~~~~~~~~
``-c, --config``
Specify a JSON confguration file that describes the analyzers and minifiers to be used.
Installation
============
From the Python Package Index
-----------------------------
::
pip install blend
From Source
-----------
::
git clone git://github.com/azavea/blend.git
cd blend
python setup.py install
Documentation
=============
http://azavea-blend.readthedocs.org
License
============
MIT
Metadata
Release files for Blend 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| Blend-0.1.5.tar.gz | 2.0 MB | Without provenance | Details |
Release files / Blend-0.1.5.tar.gz
| Download URL | Blend-0.1.5.tar.gz |
|---|---|
| Size | 2.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e2472cb2649fb3a8951ac5e92ae67ece5ac3e11620040f15b9e4de10fa7045bc
|
|
BLAKE2b-256 checksum How to use checksums |
3ab684344231c709377edaf70a4f61ca246e73ff4008e6d1e32a2536e520349a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for Blend 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.