Skip to content
This repository has been archived by the owner on May 13, 2020. It is now read-only.

Commit

Permalink
Add dependencies management via Bower
Browse files Browse the repository at this point in the history
Add Bootstrap
Update pytz to 2016.1
  • Loading branch information
valerymelou committed Mar 14, 2016
1 parent acf6aef commit b8e6ffa
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,16 @@ Features

* For Django 1.9
* Renders Django projects with 100% starting test coverage
* Twitter Bootstrap_ v4.0.0 - alpha_
* 12-Factor_ based settings via django-environ_
* Optimized development and production settings
* Sass compilation plus CSS, JavaScript and image optimization with Gulp_
* Dependencies management with Bower_
* Works with Python 2.7.x or 3.5.x!
* Run tests with unittest or py.test!

.. _Bootstrap: https://github.com/twbs/bootstrap
.. _alpha: http://blog.getbootstrap.com/2015/08/19/bootstrap-4-alpha/
.. _12-Factor: http://12factor.net/
.. _django-environ: https://github.com/joke2k/django-environ
.. _Gulp: http://gulpjs.com/
Expand Down
2 changes: 1 addition & 1 deletion docs/developing-locally.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Make sure that nodejs_ is installed. Then in the project root run::

$ npm install

Now you just need::
This command will also run `bower install` to install static dependencies for you. Now you just need::

$ gulp

Expand Down
3 changes: 3 additions & 0 deletions {{cookiecutter.repo_name}}/.bowerrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"directory": "{{ cookiecutter.repo_name }}/dist/libs"
}
17 changes: 17 additions & 0 deletions {{cookiecutter.repo_name}}/bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "{{ cookiecutter.repo_name }}",
"authors": [
"{{ cookiecutter.author_name }}"
],
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"dependencies": {
"tether": "^1.2.0",
"bootstrap": "4.0.0-alpha.2"
}
}
3 changes: 3 additions & 0 deletions {{cookiecutter.repo_name}}/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,8 @@
"engines": {
"node": ">=0.8.0"
},
"scripts": {
"install": "bower install"
}
"private": true
}
2 changes: 1 addition & 1 deletion {{cookiecutter.repo_name}}/requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ psycopg2==2.6.1
{%- endif %}

# Time zones support
pytz==2015.7
pytz==2016.1

# Your custom requirements go here
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<![endif]-->

{% block css %}
<link href="{% static 'libs/bootstrap/dist/css/bootstrap.min.css' %}">
<link href="{% static 'css/styles.min.css' %}" rel="stylesheet">
{% endblock %}

Expand All @@ -26,6 +27,9 @@
{% endblock content %}

{% block javascript %}
<script src="{% static 'libs/jquery/dist/jquery.min.js' %}"></script>
<script src="{% static 'libs/tether/dist/js/tether.min.js' %}"></script>
<script src="{% static 'libs/bootstrap/dist/js/bootstrap.min.js' %}"></script>
<script src="{% static 'js/scripts.min.js' %}"></script>
{% endblock javascript %}
</body>
Expand Down

0 comments on commit b8e6ffa

Please sign in to comment.