🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

gulp-elm-basic

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-elm-basic

a gulp plugin wrapping node-elm-compiler

Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

gulpplugin

FAQs

Package last updated on 02 Sep 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts