Skip to content

Commit

Permalink
Add devcards extra main
Browse files Browse the repository at this point in the history
  • Loading branch information
dan sutton committed Oct 23, 2018
1 parent 823fdf6 commit ad8efb2
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ A Clojure library designed to ... well, that part is up to you.
lein build-dev
```

This will open up a browser for you. The default page will open up a repl. You can also view http://localhost:9500/test.html to load the tests in a test runner.

Then go to http://localhost:3449/cards.html
This will open up the default page which will connect a repl. Also noteworthy:

- http://localhost:9500/devcards.html
- http://localhost:9500/test.html

## License

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
<!--<link href="/css/example.css" rel="stylesheet" type="text/css">-->
</head>
<body>
<script src="js/react_hitch_devcards.js" type="text/javascript"></script>
<script src="cljs-out/dev-main-devcards.js" type="text/javascript"></script>
</body>
</html>
</html>
2 changes: 1 addition & 1 deletion dev.cljs.edn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
^{:extra-main-files {:devcards {:main react-hitch.devcards-runner}
:test {:main react-hitch.test-runner}}
:watch-dirs ["src" "test"]}
:watch-dirs ["src" "test" "devcards"]}
{:main react-hitch.qui-tracker}
6 changes: 6 additions & 0 deletions devcards/react_hitch/devcards_runner.cljs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
(ns react-hitch.devcards-runner
(:require [devcards.core]
))

(devcards.core/start-devcard-ui!)

6 changes: 0 additions & 6 deletions test/react_hitch/devcards_runner.cljs

This file was deleted.

0 comments on commit ad8efb2

Please sign in to comment.