Skip to content

kdframework/gulp-kdf-pistachio

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-kdf-pistachio

A gulp task that compiles pistachio strings of given JS files.

Example

# Gulpfile.coffee
gulp       = require 'gulp'
browserify = require 'browserify'
source     = require 'vinyl-source-stream'
pistachio  = require 'gulp-kdf-pistachio'
gulpBuffer = require 'gulp-buffer'

b = browserify
  cache        : {}
  packageCache : {}
  entries      : ['./src/index.coffee']
  extensions   : ['.coffee', '.js']
.transform 'coffeeify'

runBrowserify = ->
  b.bundle()
    .pipe source('share.js')
    .pipe gulpBuffer()
    .pipe pistachio()
    .pipe gulp.dest('./dist')

gulp.task 'build', -> runBrowserify()

Installation

npm install gulp-kdf-pistachio

About

pistachio compiler for KD's own templates

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%