Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
joewatt95 committed Nov 27, 2023
0 parents commit 90fb9cb
Show file tree
Hide file tree
Showing 33 changed files with 10,644 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"plugins": ["@babel/syntax-dynamic-import"],
"presets": [
[
"@babel/preset-env",
{
"modules": false
}
]
]
}
2 changes: 2 additions & 0 deletions .clj-kondo/metosin/malli/config.edn
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{:lint-as {malli.experimental/defn schema.core/defn}
:linters {:unresolved-symbol {:exclude [(malli.core/=>)]}}}
1 change: 1 addition & 0 deletions .clj-kondo/prismatic/schema/config.edn
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{:lint-as {schema.test/deftest clojure.test/deftest}}
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.clj-kondo/.cache
.lsp/.cache
.nrepl-*
.shadow-cljs/
public/js
node_modules/
.cpcache/
dist/
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
use-node-version=20.10.0
shamefully-hoist=true
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# le-webform-glue

## Dependencies

- java
- [pnpm](https://pnpm.io/installation)

This project is developed with JDK LTS 21 and nodejs LTS 20.10.0.

## Usage
### Setup
```shell
pnpm install
```

### Demo
- Run the following command to start a local dev server in the `public` directory:

```shell
pnpm start
```

- Go to <http://localhost:8000> in your browser.
You should see a justification tree visualised by
[guifier](https://guifier.com/).

- If you edit and save a file, it will recompile the code and reload the
browser to show the updated version.

### Compile an optimized version

```shell
pnpm build:prod
```
18 changes: 18 additions & 0 deletions deps.edn
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{:paths ["src"]
:deps {thheller/shadow-cljs {:mvn/version "2.26.2"}
binaryage/devtools {:mvn/version "1.0.7"}
org.clojars.quoll/asami {:mvn/version "2.3.4"}
taipei.404/html-to-hiccup {:mvn/version "0.1.8"}
;; meander/epsilon {:mvn/version "0.0.650"}
io.github.noprompt/meander {:git/sha "74de6b1f651441092cc12d1c9012ef7086033040"}
funcool/promesa {:mvn/version "11.0.678"}
applied-science/js-interop {:mvn/version "0.4.2"}
tupelo/tupelo {:mvn/version "23.07.04"}
cljs-bean/cljs-bean {:mvn/version "1.9.0"}
tick/tick {:mvn/version "0.7.5"}
lambdaisland/uri {:mvn/version "1.16.134"}
lambdaisland/fetch {:mvn/version "1.5.83"}
metosin/malli {:mvn/version "0.13.0"}
metosin/jsonista {:mvn/version "0.3.8"}
babashka/fs {:mvn/version "0.4.19"}
lambdaisland/chui {:mvn/version "1.2.205"}}}
38 changes: 38 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"name": "le-webform-glue",
"version": "1.0.0",
"description": "My webpack project",
"private": true,
"devDependencies": {
"@webpack-cli/generators": "^3.0.7",
"babel-loader": "^9.1.3",
"html-webpack-plugin": "^5.5.3",
"mini-css-extract-plugin": "^2.7.6",
"shadow-cljs": "2.26.2",
"webpack": "^5.89.0",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^4.15.1",
"workbox-webpack-plugin": "^7.0.0"
},
"dependencies": {
"@js-joda/core": "^5.6.1",
"@js-joda/locale_en-us": "^4.8.11",
"@js-joda/timezone": "^2.18.2",
"guifier": "^1.0.12",
"platform": "^1.3.6",
"react-dom": "^18.2.0",
"stack-trace": "^0.0.10",
"stacktrace-js": "^2.0.2",
"ws": "^7.5.9"
},
"scripts": {
"preinstall": "npx only-allow pnpm",
"shadow-cljs:release": "shadow-cljs release app",
"start": "shadow-cljs watch app",
"build:prod": "shadow-cljs release app && webpack --mode=production --node-env=production",
"build:dev": "shadow-cljs compile app && webpack --mode=development",
"watch": "webpack --watch",
"serve": "webpack serve",
"run-node": "echo \"{\\\"type\\\": \\\"module\\\"}\" > public/js/package.json && node --experimental-network-imports --trace-uncaught public/node_index.js"
}
}
15 changes: 15 additions & 0 deletions packages/pengines/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "pengines",
"version": "1.0.0",
"description": "",
"main": "pengines.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"browser-or-node": "^2.1.1",
"jquery": "^3.7.1",
"najax": "^1.0.7"
},
"keywords": []
}
Loading

0 comments on commit 90fb9cb

Please sign in to comment.