Skip to content

Instantly share code, notes, and snippets.

View brunogarcia's full-sized avatar
📚
Always learning

Bruno brunogarcia

📚
Always learning
View GitHub Profile
# 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/
@brunogarcia
brunogarcia / eva.html
Last active September 14, 2015 18:25
<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">
/*
Clean
Clear files and folders
https://github.com/gruntjs/grunt-contrib-clean
*/
'clean': ['<%= config.dist %>', '<%= config.tmp %>'],
/*
Copy
Copy files and folders.
/*
Connect
Start a static web server
https://github.com/gruntjs/grunt-contrib-connect
*/
'connect': {
options: {
port: 9000,
open: true,
livereload: 35729,
/*
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']
},
/*
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']
/*
Clean
Clear files and folders
https://github.com/gruntjs/grunt-contrib-clean
*/
'clean': ['<%= config.dist %>', '<%= config.tmp %>'],
/*
Copy
Copy files and folders.
https://github.com/gruntjs/grunt-contrib-copy
*/
'copy': {
main: {
files: [
{
'expand': true,
/*
Uglify
Minify files with UglifyJS
https://github.com/gruntjs/grunt-contrib-uglify
*/
'uglify': {
my_target: {
files: {
'<%= config.dist %>/assets/js/main.min.js':
[
/*
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']
}