wapper
v0.3.2
Published
develop with no/less config
Downloads
50
Readme
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