Skip to content

Commit

Permalink
Start using bower and npm
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonardo Zizzamia committed Jul 15, 2014
1 parent c9b286e commit a1b5ac9
Show file tree
Hide file tree
Showing 20 changed files with 64 additions and 61,809 deletions.
3 changes: 3 additions & 0 deletions .bowerrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"directory" : "static/components"
}
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,10 @@
# fabfile caches
.coffeecache
.minifycache

# Node
node_modules
npm-debug.log

# Bower
static/components/
10 changes: 10 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "bombolone",
"version": "0.3.2",
"dependencies": {
"angular": "1.2.20",
"angular-route": "1.2.20",
"angular-resource": "1.2.20",
"components-font-awesome": "4.1.0"
}
}
10 changes: 5 additions & 5 deletions config_home.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
DEBUG = True

# Database connection
DATABASE = 'bombolone'
DATABASE = 'new_app'

# ~
ENV = "home"
Expand Down Expand Up @@ -73,12 +73,12 @@
NOTACTIVATED = 0

# List js local files
JS_FILES_STEP_ONE = ['/static/js/lib/angular.min.js',
'/static/js/lib/angular-route.min.js']
JS_FILES_STEP_ONE = ['/static/components/angular/angular.min.js',
'/static/components/angular-route/angular-route.min.js']

# List js local files
JS_FILES_STEP_TWO = ['/static/js/lib/angular-resource.min.js',
JS_FILES_STEP_TWO = ['/static/components/angular-resource/angular-resource.min.js',
'/static/js/lib/angular-ui.min.js']

# ~
CSS_FONT_AWESOME = '/static/css/font-awesome/font-awesome.css'
CSS_FONT_AWESOME = '/static/components/components-font-awesome/css/font-awesome.min.css'
5 changes: 4 additions & 1 deletion fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import os
import time
import hashlib
import simplejson as json
import shutil
from fabric.api import settings, run, env, cd, lcd, local, sudo
try:
Expand All @@ -30,6 +29,10 @@ def install():
"""
print '\n####### Install Bombolone #######'

# Install npm dependencies
local("sudo npm install -g bower")
local("npm install")
local("bower install")
# Install python PIL library
local("pip install -r REQUIREMENTS.txt")
local("pip install PIL --allow-external PIL --allow-unverified PIL")
Expand Down
29 changes: 29 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "bombolone",
"version": "0.3.2",
"description": "Bombolone is a tasty Content Management System for Python based on Flask, MongoDB, AngularJS, Sass and Bootstrap. It's designed to be a simple, flexible toolset for projects of any size.",
"main": "index.js",
"directories": {
"test": "tests"
},
"dependencies": {},
"scripts": {
"test": ""
},
"repository": {
"type": "git",
"url": "https://github.com/Opentaste/bombolone.git"
},
"keywords": [
"bombolone",
"python",
"flask",
"angularjs"
],
"author": "@zizzamia",
"license": "BSD",
"bugs": {
"url": "https://github.com/Opentaste/bombolone/issues"
},
"homepage": "https://github.com/Opentaste/bombolone"
}
Loading

0 comments on commit a1b5ac9

Please sign in to comment.