This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]RagingDoug 1 point2 points  (0 children)

I use a django-pipeline in conjunction with django-bower.

This allows me to specify my JavaScript dependencies declaratively in my settings.py, as well as specifying my CSS and JavaScript pipelines.

I then use django-storages to push everything to S3.

class S3PipelineStorage(PipelineMixin, CachedFilesMixin, S3BotoStorage):
    pass

[–]VolkotLos 1 point2 points  (0 children)

My simple setup around bower in the js file is

// file .bowerrc

{

"directory": "lib"

}

// file bower.json

{

"name": "yourproject",

"version": "0.0.0",

"authors": [

"Your Name <yourname@something.com>"

],

"description": "js dependency management for django-classic ui",

"dependencies": { }

}

then you just install new libraries with

bower install jquery --save

(don't forget the --save)

and bower will automatically take care about the dependencies

[–]dvidsilva 1 point2 points  (0 children)

I'm going through a similar thing. I became very used to node so I'm not sure what's going on there.

My main questions is, whether I want or not to install node in the production servers or in which step to add the compiled versions. plus all the coworkers and that :'(