Skip to content

Commit 0238cdc

Browse files
committed
* Add cli script
* Add bin field into npm package * Update package.json with the repository information and the cli main module
1 parent c3c4b9a commit 0238cdc

File tree

7 files changed

+19366
-8
lines changed

7 files changed

+19366
-8
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ elm-stuff
22
.idea
33
node_modules
44
elmclient.log
5+
yarn.lock

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# html-to-elm
2-
An online tool for converting HTML to [elm-html](https://github.com/evancz/elm-html) code.
2+
An online and cli tool for converting HTML to [elm-html](https://github.com/evancz/elm-html) code.
33

4-
*Go to http://mbylstra.github.io/html-to-elm/*
4+
*Go to http://mbylstra.github.io/html-to-elm/* or clone this repository and run on the rootpath `./main.js "<h1>This is a test</h1>"`

build-cli.sh

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env sh
2+
elm-make elm-src/HtmlToElmCli/Main.elm --output=./cli/Main.js

0 commit comments

Comments
 (0)