Skip to content

Commit

Permalink
Merge pull request #2 from pesterhazy/pau3
Browse files Browse the repository at this point in the history
Use cljs.main to build bundle
  • Loading branch information
mkarp committed Apr 26, 2018
2 parents adf37ca + 39f9fcb commit 17a0d4e
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ node_modules
compiled
package-lock.json
target
.cpcache
out
2 changes: 2 additions & 0 deletions deps.edn
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{:paths ["src/first"]
:deps {org.clojure/clojurescript {:mvn/version "1.10.238"}}}
9 changes: 0 additions & 9 deletions scripts/run-test

This file was deleted.

9 changes: 9 additions & 0 deletions scripts/run-test-deps
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -euo pipefail && cd "$(dirname "${BASH_SOURCE[0]}")/.."

set -x

rm -rf out
npm install
clj -m cljs.main -t node -O simple -o out/first.js -co "{:source-map \"out/main.js.map\"}" -c demo.first -w src/first
node out/first.js
2 changes: 0 additions & 2 deletions src/first/demo/first.cljs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
(ns demo.first)

(.install (js/require "source-map-support"))

(defn -main []
(.trace js/console))

Expand Down

0 comments on commit 17a0d4e

Please sign in to comment.