0.9.3 • Published 8 years ago

gulp-salt v0.9.3

Weekly downloads
1
License
Unlicense
Repository
github
Last release
8 years ago

gulp-salt

generates ascii-font headers like this:

###
 0000000   0000000   000      000000000
000       000   000  000         000   
0000000   000000000  000         000   
     000  000   000  000         000   
0000000   000   000  0000000     000   
###

when it discovers special comment lines:

#!! salt

it is most useful when attached to a watch:

gulpfile.coffee

gulp = require 'gulp'
salt = require 'gulp-salt'

gulp.task 'default', ->        
    gulp.watch ['**/*.coffee'], (e) -> 
        gulp.src e.path, base: './'
        .pipe salt()
        .pipe gulp.dest '.'

it keeps the indentation level intact and you can configure the comment format for different file types:

default config

coffee: 
    marker:  '#!!'
    prefix:  '###'
    postfix: '###'
styl: 
    marker:  '//!'
    prefix:  '/*'
    fill:    '*  '
    postfix: '*/'

This stuff works for me, but I won't guarantee that it works for you as well. Use at your own risk!

npm

0.9.3

8 years ago

0.9.2

8 years ago

0.9.1

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.0

8 years ago