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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>A simple Backbone testing</title> | |
</head> | |
<body> | |
<script id="userTemplate" type="text/template"> | |
<li><%= id %></li> |
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
/* | |
Bower copy | |
Scrupulously manage file locations for bower dependencies. | |
https://www.npmjs.com/package/grunt-bowercopy | |
*/ | |
'bowercopy': { | |
libs: { | |
options: { | |
destPrefix: '<%= config.dev %>/assets/js/vendors' | |
}, |
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
/* | |
FTP Deploy | |
Grunt task for code deployment over ftp | |
https://github.com/zonak/grunt-ftp-deploy | |
*/ | |
'ftp-deploy': { | |
build: { | |
auth: { | |
host: 'ftp.TU_DOMINIO.com', | |
port: 21, |
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
/* | |
Cache breaker | |
Simple cache-breaker, appends a timestamp or md5 hash to any urls | |
https://www.npmjs.com/package/grunt-cache-breaker | |
*/ | |
'cachebreaker': { | |
dev: { | |
options: { | |
match: ['main.min.js', 'main.css'], | |
}, |
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
/* | |
Sass | |
Compile Sass to CSS | |
https://www.npmjs.com/package/grunt-contrib-sass | |
*/ | |
'sass': { | |
dist: { | |
options: { | |
style: 'compressed' | |
}, |
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
/* | |
Sass | |
Compile Sass to CSS | |
https://www.npmjs.com/package/grunt-contrib-sass | |
*/ | |
'sass': { | |
dev: { | |
options: { | |
style: 'expanded' | |
}, |
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
/* | |
HTML Min | |
Minify HTML | |
https://github.com/gruntjs/grunt-contrib-htmlmin | |
*/ | |
'htmlmin': { | |
dist: { | |
options: { | |
removeComments: true, | |
collapseWhitespace: 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
/* | |
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'] | |
} |
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
/* | |
Copy | |
Copy files and folders. | |
https://github.com/gruntjs/grunt-contrib-copy | |
*/ | |
'copy': { | |
main: { | |
files: [ | |
{ | |
'expand': true, |