0.3.2 • Published 7 years ago

wapper v0.3.2

Weekly downloads
11
License
MIT
Repository
-
Last release
7 years ago

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
0.3.2

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.5

7 years ago

0.2.4

7 years ago

0.2.3

7 years ago

0.2.1

7 years ago

0.2.0-2

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago

0.0.0

7 years ago