Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gulp #20

Closed
yukulele opened this issue May 17, 2017 · 4 comments
Closed

gulp #20

yukulele opened this issue May 17, 2017 · 4 comments

Comments

@yukulele
Copy link

yukulele commented May 17, 2017

Is it posible to compile lightscript via gulp? is there a gulp-lightscript library?

@haltcase
Copy link
Contributor

You should just use gulp-babel and the lightscript preset or plugin:

const gulp = require('gulp')
const babel = require('gulp-babel')

gulp.task('default', () =>
  gulp.src('src/app.js')
    .pipe(babel({
      presets: ['lightscript']
      // or for just the language:
      // plugins: ['lightscript']
    }))
    .pipe(gulp.dest('dist'))
)

@rattrayalex
Copy link
Contributor

@citycide is correct (thanks for sharing an example!) – hope this is ok to close @yukulele ?

@rattrayalex
Copy link
Contributor

By the way, we're happy to help with little things as you get started in the gitter chat if you have more questions – http://gitter.im/lightscript/Lobby – though you're certainly more than welcome to open issues as well! (this one was certainly appropriate)

@yukulele
Copy link
Author

Thanks, perfect !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants