Merge pull request #329 from reagent-project/node-foreign-libs

WIP: Test with foreign libs in node
This commit is contained in:
Juho Teperi 2018-03-08 19:39:49 +02:00 committed by GitHub
commit 572d9dc2db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 15 additions and 1 deletions

View File

@ -1,6 +1,7 @@
{ {
"private": true, "private": true,
"devDependencies": { "devDependencies": {
"gzip-size-cli": "^2.1.0",
"karma": "1.7.1", "karma": "1.7.1",
"karma-chrome-launcher": "2.2.0", "karma-chrome-launcher": "2.2.0",
"karma-cljs-test": "0.1.0", "karma-cljs-test": "0.1.0",

View File

@ -4,7 +4,7 @@
:description "A simple ClojureScript interface to React" :description "A simple ClojureScript interface to React"
:dependencies [[org.clojure/clojure "1.8.0"] :dependencies [[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.9.946"] [org.clojure/clojurescript "1.10.126"]
;; If :npm-deps enabled, these are used only for externs. ;; If :npm-deps enabled, these are used only for externs.
;; Without direct react dependency, other packages, ;; Without direct react dependency, other packages,
;; like react-leaflet might have closer dependency to a other version. ;; like react-leaflet might have closer dependency to a other version.

View File

@ -2,3 +2,4 @@
set -ex set -ex
lein do clean, doo chrome-headless prod-test once lein do clean, doo chrome-headless prod-test once
test -f target/cljsbuild/prod-test/main.js test -f target/cljsbuild/prod-test/main.js
../../node_modules/.bin/gzip-size target/cljsbuild/prod-test/main.js

View File

@ -0,0 +1 @@
../../demo

View File

@ -0,0 +1 @@
../../examples

View File

@ -0,0 +1 @@
../../package-lock.json

View File

@ -0,0 +1 @@
../../package.json

View File

@ -0,0 +1 @@
../../project.clj

View File

@ -0,0 +1 @@
../../site

View File

@ -0,0 +1 @@
../../src

View File

@ -0,0 +1 @@
../../test

View File

@ -0,0 +1,4 @@
#!/bin/bash
set -ex
lein do clean, doo node node-test once
test -f target/cljsbuild/node-test/out/cljsjs/react/development/react.inc.js