8000 chore(release): v0.0.1 (#2) · homebaseio/homebase-react@ec291de · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ec291de

Browse files
rubinovitzbecomingbabyman
authored andcommitted
chore(release): v0.0.1 (#2)
1 parent f08a213 commit ec291de

File tree

4 files changed

+21
-7
lines changed

4 files changed

+21
-7
lines changed

package.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"homepage": "https://github.com/homebaseio/homebase-react",
77
"repository": {
88
"type": "git",
9-
"url": "https://github.com/homebaseio/homebase-react.git"
9+
"url": "git+https://github.com/homebaseio/homebase-react.git"
1010
},
1111
"keywords": [
1212
"react",
@@ -15,6 +15,7 @@
1515
"state",
1616
"graph"
1717
],
18+
"main": "./dist/homebase.react.js",
1819
"devDependencies": {
1920
"@babel/cli": "7.11.6",
2021
"@babel/core": "7.11.6",
@@ -26,5 +27,12 @@
2627
"react-dom": "16.13.0",
2728
"shadow-cljs": "2.11.4"
2829
},
29-
"dependencies": {}
30+
"dependencies": {},
31+
"bugs": {
32+
"url": "https://github.com/homebaseio/homebase-react/issues"
33+
},
34+
"scripts": {
35+
"test": "echo \"Error: no test specified\" && exit 1"
36+
},
37+
"author": ""
3038
}

shadow-cljs.edn

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,10 @@
1818
:output-feature-set :es6}
1919
:modules {:main {:init-fn example.core/init}}
2020
:js-options {:resolve {"devcards-marked" {:target :npm :require "marked"}
21-
"devcards-syntax-highlighter" {:target :npm :require "highlight.js"}}}}}}
21+
"devcards-syntax-highlighter" {:target :npm :require "highlight.js"}}}}
22+
:npm-dist {:target :npm-module
23+
:output-dir "dist"
24+
:output-to "dist/lib.js"
25+
:entries [homebase.react]
26+
:compiler-options {:optimizations :advanced
27+
:source-map false}}}}

src/example/core.cljs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
["marked" :as marked]
55
[cljsjs.react]
66
[cljsjs.react.dom]
7+
[reagent.core]
78
[devcards.core :as dc]
89
[example.counter]
910
[example.todo]))
@@ -14,4 +15,4 @@
1415
(js/goog.exportSymbol "DevcardsSyntaxHighlighter" highlight)
1516

1617
(defn init []
17-
(dc/start-devcard-ui!))
18+
(dc/start-devcard-ui!))

src/homebase/react.cljs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
(ns homebase.react
22
(:require
33
["react" :as react]
4-
[reagent.core :as r]
54
[homebase.js :as hbjs]
65
[datascript.core :as d]))
76

@@ -16,7 +15,7 @@
1615
(merge (hbjs/js->schema (.-schema config)) base-schema)
1716
base-schema))]
1817
(when (.-initialData config) (hbjs/transact! conn (.-initialData config)))
19-
(r/create-element
18+
(react/createElement
2019
(.-Provider homebase-context) #js {:value conn}
2120
(.-children props))))
2221

@@ -43,4 +42,4 @@
4342
(defn ^:export useTransact []
4443
(let [conn (react/useContext homebase-context)
4544
transact (fn transact [txs] (hbjs/transact! conn txs))]
46-
[transact]))
45+
[transact]))

0 commit comments

Comments
 (0)
0