-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
275 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,72 @@ | ||
*.pyc | ||
*.pyo | ||
env/ | ||
env3/ | ||
.build/ | ||
# Catux specific | ||
backup.xml | ||
bower_components/ | ||
node_modules/ | ||
app/public/ | ||
venv/ | ||
.sass-cache/ | ||
|
||
# PyCharm | ||
.idea/ | ||
|
||
### Python template | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
env/ | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*,cover | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
|
||
# PyBuilder | ||
target/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
module.exports = function(grunt) { | ||
|
||
// Project configuration. | ||
grunt.initConfig({ | ||
pkg: grunt.file.readJSON('package.json'), | ||
|
||
config: { | ||
app: 'app' | ||
}, | ||
|
||
connect: { | ||
options: { | ||
port: 9000, | ||
livereload: 35729, | ||
// Change this to '0.0.0.0' to access the server from outside | ||
hostname: 'localhost' | ||
}, | ||
livereload: { | ||
options: { | ||
open: true, | ||
base: [ | ||
'.tmp', | ||
'<%= config.app %>/public' | ||
] | ||
} | ||
}, | ||
}, | ||
watch: { | ||
options: { | ||
livereload: true, | ||
}, | ||
livereload: { | ||
options: { | ||
livereload: '<%= connect.options.livereload %>' | ||
}, | ||
files: [ | ||
'<%= config.app %>/public/{,*/}*.html', | ||
'<%= config.app %>/public/css/{,*/}*.css', | ||
'<%= config.app %>/public/images/{,*/}*', | ||
] | ||
}, | ||
compass: { | ||
files: ['**/*.{scss,sass}'], | ||
tasks: ['compass:dev'] | ||
}, | ||
jinja2: { | ||
files: ['app/src/templates/**'], | ||
tasks: ['jinja2:dev'] | ||
}, | ||
copy: { | ||
files: ['app/src/images/*', 'app/src/fonts/*'], | ||
tasks: ['copy:main'] | ||
} | ||
}, | ||
compass: { | ||
dev: { | ||
options: { | ||
sassDir: ['app/src/stylesheets'], | ||
cssDir: ['app/public/css'], | ||
environment: 'development' | ||
} | ||
}, | ||
prod: { | ||
options: { | ||
sassDir: ['app/src/stylesheets'], | ||
cssDir: ['app/public/css'], | ||
environment: 'production', | ||
outputStyle: 'compressed' | ||
} | ||
}, | ||
}, | ||
jinja2: { | ||
main: { | ||
options:{ | ||
template_path: 'app/src/templates', | ||
context_path: 'app/src/templates/context' | ||
}, | ||
files: [{ | ||
expand: true, | ||
cwd: 'app/src/templates', | ||
src: ['index.html', 'posts/*.html'], | ||
dest: 'app/public', | ||
ext: '.html' | ||
}] | ||
} | ||
}, | ||
copy: { | ||
main: { | ||
files: [ | ||
{ | ||
expand: true, | ||
cwd: 'app/src/images', | ||
src: '**/*', | ||
dest: 'app/public/images/' | ||
}, | ||
{ | ||
expand: true, | ||
cwd: 'bower_components/fontawesome/fonts/', | ||
src: '**/*', | ||
dest: 'app/public/fonts/' | ||
} | ||
] | ||
|
||
} | ||
} | ||
}); | ||
|
||
// Load the plugin | ||
grunt.loadNpmTasks('grunt-contrib-watch'); | ||
grunt.loadNpmTasks('grunt-contrib-compass'); | ||
grunt.loadNpmTasks('grunt-contrib-connect'); | ||
grunt.loadNpmTasks('grunt-contrib-copy'); | ||
grunt.loadNpmTasks('grunt-jinja2'); | ||
|
||
|
||
// Default task(s). | ||
grunt.registerTask('default', ['connect:livereload', 'compass:dev', 'jinja2', 'copy', 'watch']); | ||
// prod build | ||
grunt.registerTask('prod', ['compass:prod', 'jinja2', 'copy']); | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Installation | ||
============ | ||
|
||
``` | ||
npm install | ||
bower install | ||
virtualenv venv | ||
. venv/bin/activate | ||
pip install -r requirements.txt | ||
grunt | ||
``` |
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@import "variables"; | ||
@import "../../../bower_components/bootstrap-sass/assets/stylesheets/_bootstrap-compass.scss"; | ||
@import "../../../bower_components/fontawesome/scss/font-awesome.scss"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head lang="en"> | ||
<meta charset="UTF-8"> | ||
<title></title> | ||
</head> | ||
<body> | ||
|
||
</body> | ||
</html> |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head lang="en"> | ||
<meta charset="UTF-8"> | ||
<title></title> | ||
</head> | ||
<body> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head lang="en"> | ||
<meta charset="UTF-8"> | ||
<title></title> | ||
</head> | ||
<body> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"name": "catux-homepage", | ||
"version": "2.0.0", | ||
"authors": [ | ||
"Catux" | ||
], | ||
"license": "GPL", | ||
"private": true, | ||
"homepage": "http://catux.org/", | ||
"dependencies": { | ||
"bootstrap-sass": "latest", | ||
"fontawesome": "latest" | ||
}, | ||
"ignore": [ | ||
"**/.*", | ||
"node_modules", | ||
"bower_components", | ||
"test", | ||
"tests" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"name": "package", | ||
"version": "2.0.0", | ||
"dependencies": {}, | ||
"author": "Catux", | ||
"devDependencies": { | ||
"grunt": "latest", | ||
"grunt-contrib-watch": "latest", | ||
"grunt-contrib-compass": "latest", | ||
"grunt-contrib-connect": "latest", | ||
"grunt-contrib-copy": "latest", | ||
"grunt-jinja2": "latest", | ||
"grunt-cli": "latest", | ||
"bower": "latest", | ||
"compass": "latest" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
python-dateutil==2.1 | ||
xmltodict==0.8.1 | ||
jinja2==2.7.3 |