Skip to content

Instantly share code, notes, and snippets.

View brunogarcia's full-sized avatar
📚
Always learning

Bruno brunogarcia

📚
Always learning
View GitHub Profile
/*
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']
}
/*
HTML Min
Minify HTML
https://github.com/gruntjs/grunt-contrib-htmlmin
*/
'htmlmin': {
dist: {
options: {
removeComments: true,
collapseWhitespace: true
/*
Sass
Compile Sass to CSS
https://www.npmjs.com/package/grunt-contrib-sass
*/
'sass': {
dist: {
options: {
style: 'compressed'
},
/*
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'],
},
/*
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,
/*
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'
},
@brunogarcia
brunogarcia / Dev-tools-for-Ubuntu.sh
Last active November 23, 2021 10:41
Linux Front-end Tools
###############
# GIT
###############
sudo add-apt-repository -y ppa:git-core/ppa
sudo apt-get update
sudo apt-get install -y git
# Configuration
$ nano ~/.gitconfig