Skip to content

raoofha/wapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wapper : develop with no/less config

npm i -g wapper
mkdir myproject
cd myproject
vim index.html
wapper

open localhost:3000

Features

  • start coding without any config
  • live reload
  • show compile errors inside browser
  • open multiple wapper by providing different --port option

Supported filetypes

  • elm : elm-make must be in your path
  • cljs : lumo must be in your path

Examples

<html>
  <body>
    <script type="elm">
import Html exposing (text)

main =
  text "hello world"
    </script>
    <script>
var app = Elm.Main.fullscreen();
    </script>
  </body>
</html>
<html>
  <body>
    <script src="Main.elm"></script>
    <script>
var app = Elm.Main.fullscreen();
    </script>
  </body>
</html>
<html>
  <body>
    <script type="cljs">
(ns main.core) ; the namespace must be named main.core and require doesn't work
(js/document.write "hello world")
    </script>
  </body>
</html>
<html>
  <body>
    <!-- src must begin with src -->
    <script src="src/example/core.cljs"></script>
  </body>
</html>

CLI

--input  set input file or directory 
--port   set port

About

Develop with no/less config

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published