0.3.0 • Published 7 years ago
gulp-elm-basic v0.3.0
gulp-elm-basic
Given an *.elm
file, it will use node-elm-compiler
to compile and produce vinyl objects.
Example
on the elm side
-- Main.elm
module Main exposing (..)
import Html exposing (Html, div, p)
main : Html a
main =
div [] [ Html.text "hello world" ]
on the gulp side
const elm = require('gulp-elm-basic')
gulp.task('compile-elm', () => {
return gulp.src('Main.elm')
.pipe(elmCss())
.pipe(uglifyjs())
.pipe(gulp.dest('build')) // output to /dist/Main.js
})