-
Notifications
You must be signed in to change notification settings - Fork 67
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
1 parent
bbd4a88
commit 0f1023c
Showing
99 changed files
with
13,203 additions
and
41 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,10 @@ | ||
# editorconfig.org | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true |
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
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,199 @@ | ||
module.exports = (grunt) -> | ||
|
||
config = require(__dirname + "/app/config/config") | ||
|
||
### | ||
Dynamically load npm tasks | ||
### | ||
require("load-grunt-tasks") grunt | ||
|
||
grunt.initConfig | ||
|
||
pkg: grunt.file.readJSON("package.json") | ||
|
||
# Watching changes files *.less, *.js, | ||
watch: | ||
all: | ||
files: [ | ||
"Gruntfile.coffee" | ||
"public/js/**/*.js" | ||
"public/less/*.less" | ||
"public/less/**/*.less" | ||
] | ||
tasks: [ | ||
"clean:dev" | ||
"concat" | ||
"less:compileCore" | ||
"less:compileCustom" | ||
"watch" | ||
] | ||
options: | ||
nospawn: true | ||
|
||
# Concat js files | ||
concat: | ||
options: | ||
separator: ";" #separates scripts | ||
|
||
bootstrap: | ||
src: [ | ||
"public/js/bootstrap/transition.js" | ||
"public/js/bootstrap/alert.js" | ||
"public/js/bootstrap/button.js" | ||
"public/js/bootstrap/carousel.js" | ||
"public/js/bootstrap/collapse.js" | ||
"public/js/bootstrap/dropdown.js" | ||
"public/js/bootstrap/modal.js" | ||
"public/js/bootstrap/tooltip.js" | ||
"public/js/bootstrap/popover.js" | ||
"public/js/bootstrap/scrollspy.js" | ||
"public/js/bootstrap/tab.js" | ||
"public/js/bootstrap/affix.js" | ||
] | ||
dest: "public/js/bootstrap.js" | ||
|
||
apps: | ||
src: [ | ||
"public/js/apps/home.js" | ||
] | ||
dest: "public/js/apps.js" | ||
|
||
jshint: | ||
options: | ||
jshintrc: "js/bootstrap/.jshintrc" | ||
|
||
src: | ||
src: "js/bootstrap/*.js" | ||
|
||
|
||
#our uglify options | ||
uglify: | ||
options: | ||
report: "min" | ||
compress: | ||
dead_code: true | ||
# wrap: true, | ||
# sourceMap: true | ||
main_script: | ||
src: [ | ||
"public/js/apps.js" | ||
"<%= concat.bootstrap.dest %>" | ||
] | ||
dest: "public/assets/js/apps.min.js" | ||
|
||
less: | ||
compileCore: | ||
options: | ||
strictMath: true | ||
sourceMap: true | ||
outputSourceFiles: true | ||
sourceMapURL: "bootstrap.css.map" | ||
sourceMapFilename: "public/css/bootstrap.css.map" | ||
|
||
files: | ||
"public/css/bootstrap.css": "public/less/bootstrap/bootstrap.less" | ||
|
||
compileCustom: | ||
options: | ||
strictMath: true | ||
sourceMap: true | ||
outputSourceFiles: true | ||
sourceMapURL: "apps.css.map" | ||
sourceMapFilename: "public/css/apps.css.map" | ||
|
||
files: | ||
"public/css/apps.css": "public/less/apps.less" | ||
|
||
cssmin: | ||
combine: | ||
files: | ||
"public/assets/css/apps.min.css": [ | ||
"public/css/bootstrap.css" | ||
"public/css/apps.css" | ||
] | ||
|
||
copy: | ||
main: | ||
files: [ | ||
{ | ||
expand: true | ||
cwd: "public/img/" | ||
src: ["**"] | ||
dest: "public/assets/img" | ||
} | ||
{ | ||
expand: true | ||
cwd: "public/fonts/" | ||
src: ["**"] | ||
dest: "public/assets/fonts" | ||
} | ||
] | ||
|
||
nodemon: | ||
dev: | ||
script: "server.js" | ||
options: | ||
ignore: [ | ||
"README.md" | ||
"node_modules/**" | ||
".DS_Store" | ||
"public" | ||
] | ||
ext: "js" | ||
watch: [ | ||
"app" | ||
"server.js" | ||
"Gruntfile.js" | ||
"package.json" | ||
] | ||
delayTime: 1 | ||
env: | ||
PORT: config.server.port | ||
cwd: __dirname | ||
|
||
concurrent: | ||
tasks: [ | ||
"watch" | ||
"nodemon" | ||
] | ||
options: | ||
logConcurrentOutput: true | ||
|
||
clean: | ||
dev: [ | ||
"public/js/apps.js" | ||
"public/js/bootstrap.js" | ||
] | ||
|
||
build: [ | ||
"public/assets/*" | ||
] | ||
|
||
grunt.registerTask "less-compile", [ | ||
"clean:dev" | ||
"less:compileCore" | ||
"less:compileCustom" | ||
] | ||
|
||
grunt.registerTask "dev", [ | ||
"clean:dev" | ||
"less:compileCore" | ||
"less:compileCustom" | ||
"concat" | ||
] | ||
|
||
grunt.registerTask "default", [ | ||
"dev" | ||
"concurrent" | ||
] | ||
|
||
grunt.registerTask "production", [ | ||
"clean:build" | ||
"less:compileCore" | ||
"less:compileCustom" | ||
"cssmin" | ||
"copy" | ||
"concat" | ||
"uglify" | ||
] | ||
return |
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
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
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
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,5 +1,9 @@ | ||
script(src='/js/jquery-2.1.0.min.js') | ||
script(src='/js/bootstrap.min.js') | ||
script(src='//ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js') | ||
script. | ||
window.jQuery || document.write('<script src="/js/libs/jquery-2.1.0.min.js"><\/script>') | ||
|
||
script(src='/js/bootstrap.js') | ||
script(src='/js/apps.js') | ||
|
||
script. | ||
var _gaq = _gaq || []; _gaq.push(['_setAccount', 'XX-XXXXXXXX-X']); _gaq.push(['_trackPageview']);(function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); |
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
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
Oops, something went wrong.