Skip to content

Commit 64a28f1

Browse files
grunt watch porque eu já estava quase quebrando o cmd+tab para ficar compilando as alterações.
1 parent 3277235 commit 64a28f1

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

gruntfile.js

+14-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,17 @@ module.exports = function(grunt) {
9898
dest: 'img/'
9999
}]
100100
}
101-
}
101+
},
102+
watch: {
103+
scripts: {
104+
files: ['src/js/*.js'],
105+
tasks: ['concat:dist', 'uglify:dist']
106+
},
107+
css: {
108+
files: ['src/css/*.css'],
109+
tasks: ['cssmin:dist']
110+
},
111+
},
102112
});
103113

104114

@@ -108,9 +118,12 @@ module.exports = function(grunt) {
108118
grunt.loadNpmTasks('grunt-contrib-csslint');
109119
grunt.loadNpmTasks('grunt-contrib-cssmin');
110120
grunt.loadNpmTasks('grunt-contrib-imagemin');
121+
grunt.loadNpmTasks('grunt-contrib-watch');
122+
111123
grunt.registerTask('default', ['jshint', 'concat:dist', 'uglify:dist', 'csslint:lax', 'cssmin:dist', 'imagemin']);
112124
grunt.registerTask('test', ['jshint', 'csslint:lax']);
113125
grunt.registerTask('build', ['concat:dist', 'uglify:dist', 'cssmin:dist', 'imagemin']);
126+
114127

115128

116129
};

package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,10 @@
2323
"grunt-contrib-cssmin": "^0.12.2",
2424
"grunt-contrib-imagemin": "^0.9.4",
2525
"grunt-contrib-jshint": "^0.11.1",
26-
"grunt-contrib-uglify": "^0.8.1"
26+
"grunt-contrib-uglify": "^0.8.1",
27+
"grunt-contrib-watch": "^0.6.1"
2728
},
2829
"dependencies": {
29-
"grunt": "^0.4.5",
30-
"jquery": "^2.1.3",
3130
"scrollreveal": "^2.2.0",
3231
"velocity-animate": "^1.2.2"
3332
}

src/css/style.css

-2
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ h3 {
8585
display: inline-block;
8686
}
8787

88-
8988
#menu-topo .nav .nav-ul li a {
9089
float: left;
9190
height: 100%;
@@ -598,5 +597,4 @@ span.first-name {
598597
height: 700px;
599598
}
600599

601-
602600
}

0 commit comments

Comments
 (0)