1
0
mirror of https://github.com/locomotivemtl/locomotive-boilerplate.git synced 2026-01-15 00:55:08 +08:00

Add BrowserSync Grunt plugin and sync task

This commit is contained in:
Antoine Boulanger
2015-04-20 09:41:41 -04:00
parent a2745bbf47
commit 2b65c4a356
3 changed files with 20 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
module.exports = function(grunt) {
function loadConfig(path) {
var glob = require('glob');
var object = {};
@@ -27,6 +27,7 @@ module.exports = function(grunt) {
// Register tasks
grunt.registerTask('default', ['watch', 'notify:watch']);
grunt.registerTask('sync', ['browserSync', 'watch', 'notify:watch']);
grunt.registerTask('build', [
'concat',
'sass',

View File

@@ -0,0 +1,17 @@
module.exports = {
dev: {
bsFiles: {
src : [
'assets/styles/dist/*.css'
,'assets/scripts/dist/*.js'
,'assets/templates/*.php'
]
},
options: {
proxy: "localhost",
port: 3000,
watchTask: true,
notify: false
}
}
}

View File

@@ -9,6 +9,7 @@
"devDependencies": {
"grunt": "0.0.0",
"grunt-autoprefixer": "0.0.0",
"grunt-browser-sync": "0.0.0",
"grunt-contrib-concat": "0.0.0",
"grunt-contrib-cssmin": "0.0.0",
"grunt-contrib-uglify": "0.0.0",