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
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | |
.grunt | |
# Dependency directory | |
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git | |
node_modules | |
# Grunt usually compiles files inside this directory | |
dist/ |
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
<style type="text/css"> | |
#spinner_wrapper {position: fixed; width: 100%; height: 100%; background-color: #000; z-index: 9999} | |
#spinner_wrapper .loading-image {margin-top: -127px} | |
#spinner_wrapper .message {position: relative;top: 50%;text-align: center;font-size: 14px;color: #fff} | |
#spinner_wrapper .message span {padding: 5px 10px} | |
</style> | |
<!--Spinner--> | |
<div id="spinner_wrapper"> | |
<div class="message loading-image"> |
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
/* | |
Clean | |
Clear files and folders | |
https://github.com/gruntjs/grunt-contrib-clean | |
*/ | |
'clean': ['<%= config.dist %>', '<%= config.tmp %>'], | |
/* | |
Copy | |
Copy files and folders. |
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
/* | |
Connect | |
Start a static web server | |
https://github.com/gruntjs/grunt-contrib-connect | |
*/ | |
'connect': { | |
options: { | |
port: 9000, | |
open: true, | |
livereload: 35729, |
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
/* | |
Watch | |
Run tasks whenever watched files change | |
https://www.npmjs.com/package/grunt-contrib-watch | |
*/ | |
'watch': { | |
css: { | |
files: '<%= config.dev %>/assets/scss/*.scss', | |
tasks: ['sass:dev'] | |
}, |
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
/* | |
JSHint | |
Validate files with JSHint | |
https://github.com/gruntjs/grunt-contrib-jshint | |
*/ | |
'jshint': { | |
options: { | |
jshintrc: true | |
}, | |
all: ['Gruntfile.js', '<%= config.dev %>/assets/js/main.js'] |
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
/* | |
Clean | |
Clear files and folders | |
https://github.com/gruntjs/grunt-contrib-clean | |
*/ | |
'clean': ['<%= config.dist %>', '<%= config.tmp %>'], |
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
/* | |
Copy | |
Copy files and folders. | |
https://github.com/gruntjs/grunt-contrib-copy | |
*/ | |
'copy': { | |
main: { | |
files: [ | |
{ | |
'expand': 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
/* | |
Uglify | |
Minify files with UglifyJS | |
https://github.com/gruntjs/grunt-contrib-uglify | |
*/ | |
'uglify': { | |
my_target: { | |
files: { | |
'<%= config.dist %>/assets/js/main.min.js': | |
[ |
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
/* | |
Process HTML | |
Process html files at build time to modify them depending on the release environment | |
https://www.npmjs.com/package/grunt-processhtml | |
*/ | |
'processhtml': { | |
dist: { | |
files: { | |
'<%= config.tmp %>/index.html': ['<%= config.dev %>/index.html'] | |
} |