Skip to content

farism/gulp-elm-basic

Repository files navigation

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

About

A gulp plugin wrapping node-elm-compiler

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published