Skip to content

Instantly share code, notes, and snippets.

@LucasLLLS
LucasLLLS / gulpfile.js
Created July 19, 2016 01:01
Creating a basic gulpfile
var gulp = require('gulp');
gulp.task('nome da tarefa', function(){
//aqui serão inseridos os comandos;
});
@LucasLLLS
LucasLLLS / basicgulpfile.js
Created July 19, 2016 01:10
Basic gulpfile with uglify
var gulp = require('gulp');
uglify = require('gulp-uglify');
gulp.task('default', function() {
// corpo da tarefa
gulp.src('js/*.js')
.pipe(uglify())
.pipe(gulp.dest('minjs'))
});
@LucasLLLS
LucasLLLS / basicgulpwatch.js
Created July 19, 2016 01:15
Gulp watch exemple
gulp.task('watch', function(){
gulp.watch('js/*.js', ['scripts'])
});
body {
font: 100% Helvetica, sans-serif;
color: #333;
}
nav
ul
margin: 0
padding: 0
list-style: none
li
display: inline-block
a
nav ul {
margin: 0;
padding: 0;
list-style: none;
}
nav li {
display: inline-block;
}
// _reset.sass
html,
body,
ul,
ol
margin: 0
padding: 0
//base.sass
@import reset
body
font: 100% Helvetica, sans-serif
background-color: #efefef
$fonte: Helvetica, sans-serif
$cor-primaria: #333
body
font: 100% $fonte
color: $cor-primaria
html, body, ul, ol {
margin: 0;
padding: 0;
}
body {
font: 100% Helvetica, sans-serif;
background-color: #efefef;
}