Commit 9d5684f0 authored by Stanislav Fifik's avatar Stanislav Fifik

watch

parent 09886295
......@@ -10,6 +10,7 @@ var source = require('vinyl-source-stream'),
var gulp = require('gulp-help')(require('gulp'));
var gutil = require('gulp-util');
var $gulp = require('gulp-load-plugins')();
var $less = {
......@@ -55,14 +56,23 @@ module.exports = {
},
symfony: function(){
//this.js()
this.js('js', glob.sync('./app/Resources/js/*.js'), './web/js/');
this.cssWebpack('css', glob.sync('app/Resources/less/*.less'), './web/css/');
gulp.task('build', ['js', 'css']);
gulp.task('default', 'Build and watch', function(){
argv.watch = true;
gulp.run('build');
});
},
styleguide: function(){
this.js('js', glob.sync('./js/*.bundle.js'), './demo/web/js/');
this.cssWebpack('css', glob.sync('./demo/resources/less/main.less'), './demo/web/css/');
gulp.task('build', ['js', 'css']);
gulp.task('default', ['build']);
gulp.task('default', 'Build and watch', function(){
argv.watch = true;
gulp.run('build');
});
},
css: function(name, entryPoints, destination) {
......@@ -89,7 +99,6 @@ module.exports = {
webpack({
entry: generateEntries(entryPoints),
devServer: { stats: "errors-only"},
amd: true,
output: {
path: path.resolve(module.exports.gulpfilePath, destination),
filename: '[name].css',
......
var designeoGulp = require('../index.js');
console.log(__dirname);
designeoGulp.init(__dirname);
designeoGulp.styleguide();
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment