Skip to content

Commit e770c3e

Browse files
committed
First gx-based version
0 parents  commit e770c3e

File tree

20 files changed

+1058
-0
lines changed

20 files changed

+1058
-0
lines changed

.dir-locals.el

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
((nil . ((cider-clojure-cli-global-options . "-A:dev:test"))))

.gitignore

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.cpcache
2+
.nrepl-port
3+
target
4+
repl
5+
scratch.clj
6+
.shadow-cljs
7+
target
8+
yarn.lock
9+
node_modules/
10+
.DS_Store
11+
resources/public/ui
12+
.store
13+
out
14+
.#*

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Unreleased
2+
3+
## Added
4+
5+
## Fixed
6+
7+
## Changed

LICENSE.txt

+373
Large diffs are not rendered by default.

README.md

+89
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# webbing
2+
3+
<!-- badges -->
4+
[![cljdoc badge](https://cljdoc.org/badge/com.lambdaisland/webbing)](https://cljdoc.org/d/com.lambdaisland/webbing) [![Clojars Project](https://img.shields.io/clojars/v/com.lambdaisland/webbing.svg)](https://clojars.org/com.lambdaisland/webbing)
5+
<!-- /badges -->
6+
7+
8+
9+
## Features
10+
11+
<!-- installation -->
12+
## Installation
13+
14+
To use the latest release, add the following to your `deps.edn` ([Clojure CLI](https://clojure.org/guides/deps_and_cli))
15+
16+
```
17+
com.lambdaisland/webbing {:mvn/version "0.0.0"}
18+
```
19+
20+
or add the following to your `project.clj` ([Leiningen](https://leiningen.org/))
21+
22+
```
23+
[com.lambdaisland/webbing "0.0.0"]
24+
```
25+
<!-- /installation -->
26+
27+
## Rationale
28+
29+
## Usage
30+
31+
<!-- opencollective -->
32+
## Lambda Island Open Source
33+
34+
<img align="left" src="https://github.com/lambdaisland/open-source/raw/master/artwork/lighthouse_readme.png">
35+
36+
&nbsp;
37+
38+
webbing is part of a growing collection of quality Clojure libraries created and maintained
39+
by the fine folks at [Gaiwan](https://gaiwan.co).
40+
41+
Pay it forward by [becoming a backer on our Open Collective](http://opencollective.com/lambda-island),
42+
so that we may continue to enjoy a thriving Clojure ecosystem.
43+
44+
You can find an overview of our projects at [lambdaisland/open-source](https://github.com/lambdaisland/open-source).
45+
46+
&nbsp;
47+
48+
&nbsp;
49+
<!-- /opencollective -->
50+
51+
<!-- contributing -->
52+
## Contributing
53+
54+
Everyone has a right to submit patches to webbing, and thus become a contributor.
55+
56+
Contributors MUST
57+
58+
- adhere to the [LambdaIsland Clojure Style Guide](https://nextjournal.com/lambdaisland/clojure-style-guide)
59+
- write patches that solve a problem. Start by stating the problem, then supply a minimal solution. `*`
60+
- agree to license their contributions as MPL 2.0.
61+
- not break the contract with downstream consumers. `**`
62+
- not break the tests.
63+
64+
Contributors SHOULD
65+
66+
- update the CHANGELOG and README.
67+
- add tests for new functionality.
68+
69+
If you submit a pull request that adheres to these rules, then it will almost
70+
certainly be merged immediately. However some things may require more
71+
consideration. If you add new dependencies, or significantly increase the API
72+
surface, then we need to decide if these changes are in line with the project's
73+
goals. In this case you can start by [writing a pitch](https://nextjournal.com/lambdaisland/pitch-template),
74+
and collecting feedback on it.
75+
76+
`*` This goes for features too, a feature needs to solve a problem. State the problem it solves, then supply a minimal solution.
77+
78+
`**` As long as this project has not seen a public release (i.e. is not on Clojars)
79+
we may still consider making breaking changes, if there is consensus that the
80+
changes are justified.
81+
<!-- /contributing -->
82+
83+
<!-- license -->
84+
## License
85+
86+
Copyright &copy; 2022 Arne Brasseur and Contributors
87+
88+
Licensed under the term of the Mozilla Public License 2.0, see LICENSE.
89+
<!-- /license -->

bb.edn

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{:deps
2+
{lambdaisland/open-source {:git/url "https://github.com/lambdaisland/open-source"
3+
:sha "7f39ffb76d47e2ff83d4478957c2ca4fd180f3e5"
4+
#_#_:local/root "../open-source"}}}

bin/kaocha

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
exec clojure -M:test -m kaocha.runner "$@"

bin/proj

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env bb
2+
3+
(ns proj
4+
(:require [lioss.main :as lioss]))
5+
6+
(lioss/main
7+
{:license :mpl
8+
:inception-year 2022
9+
:description ""
10+
:group-id "com.lambdaisland"})
11+
12+
;; Local Variables:
13+
;; mode:clojure
14+
;; End:

deps.edn

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{:paths ["src" "resources"]
2+
3+
:deps
4+
{com.github.kepler16/gx.cljc {:git/url "https://github.com/kepler16/gx.cljc.git"
5+
:git/sha "925155ddbafcac6b544b36ae5bd42ddf496e7e73"}
6+
aero/aero {:mvn/version "1.1.6"}
7+
org.clojure/tools.namespace {:mvn/version "1.3.0"}
8+
org.clojure/tools.cli {:mvn/version "1.0.206"}
9+
com.lambdaisland/dotenv {:mvn/version "0.1.1"}
10+
metosin/malli {:mvn/version "0.8.9"}}
11+
12+
:aliases
13+
{:dev
14+
{:extra-paths ["dev"]
15+
:extra-deps {djblue/portal {:mvn/version "0.29.1"}}}
16+
17+
:test
18+
{:extra-paths ["test"]
19+
:extra-deps {lambdaisland/kaocha {:mvn/version "1.69.1069"}}}}}

dev/user.clj

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
(ns user)
2+
3+
(defmacro jit [sym]
4+
`(requiring-resolve '~sym))
5+
6+
(defn browse []
7+
((jit clojure.java.browse/browse-url) "http://localhost:8000"))
8+
9+
(def portal-instance (atom nil))
10+
11+
(defn portal
12+
"Open a Portal window and register a tap handler for it. The result can be
13+
treated like an atom."
14+
[]
15+
(let [p ((jit portal.api/open) @portal-instance)]
16+
(reset! portal-instance p)
17+
(add-tap (jit portal.api/submit))
18+
p))

repl_sessions/ctnr.clj

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
(ns ctnr)
2+
3+
(require '[clojure.tools.namespace.dir :as ctn-dir]
4+
'[clojure.tools.namespace.repl :as ctn-repl]
5+
'lambdaisland.webbing.dev)
6+
(:clojure.tools.namespace.dir/time ctn-repl/refresh-tracker)
7+
8+
(#'ctn-dir/modified-files
9+
ctn-repl/refresh-tracker
10+
(:clojure.tools.namespace.dir/files ctn-repl/refresh-tracker))
11+
12+
(ctn-dir/scan-dirs ctn-repl/refresh-tracker)
13+
1661257834243
14+
1661257797914

src/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)