Skip to main content

Jack Bower

https://api.travis-ci.org/Celc/jack-bower.png?branch=master https://coveralls.io/repos/Celc/jack-bower/badge.png?branch=master https://pypip.in/v/jack-bower/badge.png https://pypip.in/d/jack-bower/badge.png

Installing frontend Django dependencies via bower.

Installation

To get the latest stable release from PyPi

pip install jack-bower

To get the latest commit from GitHub

pip install -e git+git://github.com/Celc/jack-bower.git#egg=bower

Add bower to your INSTALLED_APPS

INSTALLED_APPS = (
    ...,
    'bower',
)

Usage

Use ./manage.py bower_init <app_name> to bootstrap an app with .bowerrc, bower.json and .gitignore. Add your dependencies to bower.json

{
    "dependencies": {
        "backbone": "1.0.0",
        "underscore": "1.4.4"
    }
}

Then just run ./manage.py bower_install and it’ll install all the dependencies in all the INSTALLED_APPS apps that has a bower.json. Default install path is static/bower_components/<library>, you can edit .bowerrc to change that.

Use like normal in templates:

{% load staticfiles %}
{% static 'components/bootstrap/bootstrap.js'%}

Contribute

If you want to contribute to this project, please perform the following steps:

# Fork this repository
# Clone your fork
mkvirtualenv -p python2.7 jack-bower
npm install -g bower
make develop

git add . && git commit
# Send us a pull request

Metadata

Release files for jack-bower 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jack-bower 0.1.8
File Size Uploaded Provenance
jack-bower-0.1.8.tar.gz 6.1 kB Without provenance Details

Release files / jack-bower-0.1.8.tar.gz

Download URL jack-bower-0.1.8.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
20f918b448cab1737a4f4096a84a8802b1ed2e04647a71b13ad05eecbcc61cf0
BLAKE2b-256 checksum
How to use checksums
0c0594b2b34e1b4473be8af2354419e04e40ee4374c570940217029c71b2cac0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for jack-bower 0.1.8

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page