U
U
unclechu2014-08-29 06:00:57
JavaScript
unclechu, 2014-08-29 06:00:57

How to transform LiveScript for Browserify?

I'm trying to write a Gulp task to build LiveScript with Browserify, but I can't find the LiveScript transformer. I want to do everything concisely in the Gulp style, without unnecessary intermediate entities in the file system. For Browserify itself, the CoffeeScript approach is described: https://www.npmjs.org/package/gulp-browserify

gulp.task('coffee', function() {
  gulp.src('src/coffee/app.coffee', { read: false })
    .pipe(browserify({
      transform: ['coffeeify'],
      extensions: ['.coffee']
    }))
    .pipe(rename('app.js'))
    .pipe(gulp.dest('./build/js'))
});

Which relies on the package https://www.npmjs.org/package/coffeeify , the solution is what I need, but I can not find a similar one for LiveScript. Does this even exist in nature, or is it time to write a bicycle?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
U
unclechu, 2014-08-29
@unclechu

Taki found: https://github.com/substack/node-browserify/wiki/l...
Actually what was needed: https://github.com/quarterto/liveify

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question