Can you explain this to us slowly? ;-)


On Saturday, 12 July 2014 17:59:10 UTC-5, Ramos wrote:
>
> after learning about gulp.js i had to do this
>
> https://www.youtube.com/watch?v=zt5gnKk40Zw
>
> my Gulpfile.coffee
>
> gulp       = require 'gulp'
> stylus     = require 'gulp-stylus'
> prefix     = require 'gulp-autoprefixer'
> cssmin     = require 'gulp-cssmin'
> jade       = require 'gulp-jade'
> minifyHTML = require 'gulp-minify-html'
> ngClassify = require 'gulp-ng-classify'
> coffee     = require 'gulp-coffee'
>  gutil      = require 'gulp-util' 
> coffeelint = require 'gulp-coffeelint'
> sourcemaps = require 'gulp-sourcemaps'
> livereload = require 'gulp-livereload'
> gulp.task 'coffee', ->
>   gulp.src 'static/js/*.coffee'
>     .pipe coffeelint()
>     .pipe coffeelint.reporter()
>     .pipe ngClassify()
>     .pipe sourcemaps.init()
>     .pipe(coffee({bare: true}).on('error', gutil.log))
>     .pipe sourcemaps.write('./maps')
>     .pipe gulp.dest 'static/js'
> gulp.task 'css', ->
>   gulp.src 'static/css/*.styl'
>     .pipe stylus()
>     .pipe prefix "> 1%"
>     .pipe cssmin keepSpecialComments: 0
>     .pipe gulp.dest 'static/css'
> gulp.task 'html', ->
>   gulp.src 'views/default/*.jade'
>     .pipe jade()
>     .pipe minifyHTML()
>     .pipe gulp.dest 'views/default'
> gulp.task 'watch', ->
>     livereload.listen()
>     gulp.watch('views/default/*.jade', ['html']).on('change', 
>  livereload.changed)
>     gulp.watch('static/css/*.styl', ['css']).on('change', 
>  livereload.changed)
>     gulp.watch('static/js/*.coffee', ['coffee']).on('change', 
>  livereload.changed)
> gulp.task 'default', ['css', 'html','coffee','watch']
>
>
>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to