0.3.0 • Published 7 years ago

gulp-elm-basic v0.3.0

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

gulp-elm-basic Circle CI

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
})