gulp-elm-basic

0.3.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i gulp-elm-basic

Weekly Downloads

3

Version

0.3.0

License

MIT

Last publish

Collaborators

  • farismmk