-
Notifications
You must be signed in to change notification settings - Fork 20
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
0 parents
commit 4155a9b
Showing
90 changed files
with
3,830 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# http://editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.{py,rst,ini}] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[*.py] | ||
# https://github.com/timothycrosley/isort/wiki/isort-Settings | ||
line_length=120 | ||
known_first_party=osmcha-django | ||
multi_line_output=3 | ||
default_section=THIRDPARTY | ||
|
||
[*.yml] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[Makefile] | ||
indent_style = tab |
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 @@ | ||
* text=auto |
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,46 @@ | ||
# Python bytecode: | ||
*.py[co] | ||
|
||
# Packaging files: | ||
*.egg* | ||
|
||
# Sphinx docs: | ||
build | ||
|
||
# SQLite3 database files: | ||
*.db | ||
|
||
# Logs: | ||
*.log | ||
|
||
# Eclipse | ||
.project | ||
.pydevproject | ||
.settings | ||
|
||
# Linux Editors | ||
*~ | ||
\#*\# | ||
/.emacs.desktop | ||
/.emacs.desktop.lock | ||
.elc | ||
auto-save-list | ||
tramp | ||
.\#* | ||
*.swp | ||
*.swo | ||
*.nja | ||
|
||
# Mac | ||
.DS_Store | ||
._* | ||
|
||
# Windows | ||
Thumbs.db | ||
Desktop.ini | ||
|
||
#tests | ||
.coverage | ||
|
||
#js | ||
node_modules/ |
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 @@ | ||
Wille Marcel |
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,104 @@ | ||
module.exports = function (grunt) { | ||
|
||
var appConfig = grunt.file.readJSON('package.json'); | ||
|
||
// Load grunt tasks automatically | ||
// see: https://github.com/sindresorhus/load-grunt-tasks | ||
require('load-grunt-tasks')(grunt); | ||
|
||
// Time how long tasks take. Can help when optimizing build times | ||
// see: https://npmjs.org/package/time-grunt | ||
require('time-grunt')(grunt); | ||
|
||
var pathsConfig = function (appName) { | ||
this.app = appName || appConfig.name; | ||
|
||
return { | ||
app: this.app, | ||
templates: this.app + '/templates', | ||
css: this.app + '/static/css', | ||
sass: this.app + '/static/sass', | ||
fonts: this.app + '/static/fonts', | ||
images: this.app + '/static/images', | ||
js: this.app + '/static/js', | ||
manageScript: 'manage.py', | ||
|
||
} | ||
}; | ||
|
||
grunt.initConfig({ | ||
|
||
paths: pathsConfig(), | ||
pkg: appConfig, | ||
|
||
// see: https://github.com/gruntjs/grunt-contrib-watch | ||
watch: { | ||
gruntfile: { | ||
files: ['Gruntfile.js'] | ||
}, | ||
compass: { | ||
files: ['<%= paths.sass %>/**/*.{scss,sass}'], | ||
tasks: ['compass:server'] | ||
}, | ||
livereload: { | ||
files: [ | ||
'<%= paths.js %>/**/*.js', | ||
'<%= paths.sass %>/**/*.{scss,sass}', | ||
'<%= paths.app %>/**/*.html' | ||
], | ||
options: { | ||
spawn: false, | ||
livereload: true, | ||
}, | ||
}, | ||
}, | ||
|
||
// see: https://github.com/gruntjs/grunt-contrib-compass | ||
compass: { | ||
options: { | ||
sassDir: '<%= paths.sass %>', | ||
cssDir: '<%= paths.css %>', | ||
fontsDir: '<%= paths.fonts %>', | ||
imagesDir: '<%= paths.images %>', | ||
relativeAssets: false, | ||
assetCacheBuster: false, | ||
raw: 'Sass::Script::Number.precision = 10\n' | ||
}, | ||
dist: { | ||
options: { | ||
environment: 'production' | ||
} | ||
}, | ||
server: { | ||
options: { | ||
// debugInfo: true | ||
} | ||
} | ||
}, | ||
|
||
// see: https://npmjs.org/package/grunt-bg-shell | ||
bgShell: { | ||
_defaults: { | ||
bg: true | ||
}, | ||
runDjango: { | ||
cmd: 'python <%= paths.manageScript %> runserver' | ||
}, | ||
|
||
} | ||
}); | ||
|
||
grunt.registerTask('serve', [ | ||
'bgShell:runDjango', | ||
'watch' | ||
]); | ||
|
||
grunt.registerTask('build', [ | ||
'compass:dist' | ||
]); | ||
|
||
grunt.registerTask('default', [ | ||
'build' | ||
]); | ||
|
||
}; |
Oops, something went wrong.