diff --git a/Cargo.lock b/Cargo.lock
index 9911efe..855ef27 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -28,7 +28,7 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "daisycalc"
-version = "1.1.2"
+version = "1.1.3"
dependencies = [
"cfg-if",
"num",
diff --git a/Cargo.toml b/Cargo.toml
index 04c8119..3dc7b41 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "daisycalc"
-version = "1.1.2"
+version = "1.1.3"
edition = "2021"
build = "buildscript/main.rs"
license = "GPL-3.0-only"
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..60e598b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,18 @@
+release:
+ cargo build --release
+
+test:
+ cargo test
+
+run:
+ cargo run
+
+wasm:
+ wasm-pack build --release --target web --out-dir server/pkg
+
+publish:
+ cargo test
+ cargo publish
+
+docker:
+ docker build ./server -t git.betalupi.com/mark/daisy
diff --git a/README.md b/README.md
index 4f0943f..0c7f9c6 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-![](./site/misc/readme-banner.png)
+![](./server/site/resources/readme-banner.png)
A high-precision scientific calculator with support for units, derivatives, and more.
diff --git a/TODO.md b/TODO.md
index 41380a6..0c7d92a 100644
--- a/TODO.md
+++ b/TODO.md
@@ -1,5 +1,4 @@
## Version Bump checklist
- - TODO: build and publish script
- update Cargo.toml
- run cargo test
- commit
@@ -7,12 +6,9 @@
- merge
- git tag -a v1.0.0 -m "Version 1.0.0" on merge commit
- cargo publish
- - Update packages
- Build wasm & push changes
- - Squash merge
- Update AUR package
-
## Pre-release
- Tuple operations
- we don't need vectors as arguments to operators
@@ -22,25 +18,18 @@
- Should functions be operators?
- Binary, hex, octal numbers
-
## General
- Better tests (assignment, many expressions in one context)
- Optional config file
- Optional history file
- - evaluate straight from command line
- Package for debian, nix
-
-
-## Internals
- Non-recursive treeify
- Faster factorial function. Maybe use gamma instead?
- - Arbitrary precision float (rug doesn't offer arbitrary exponents)
+ - Arbitrary precision floats
## Math Features
- Mean, Median, Min
- Arbitrary base logarithm
- - Derivatives
- - CAS features (trig, roots and powers)
- Complex numbers
- acot/acoth functions
- Sums and products with functional arguments
@@ -50,8 +39,7 @@
- Fix terminal color detection
- Live syntax/output (like firefox js terminal)
- Syntax highlighting
- - fish-style tab completion
- - Numbered expressions, history recall
+ - Numbered history recall
- Enable/disable unit sets (defaults?)
- Consistent unit ordering
diff --git a/server/.gitignore b/server/.gitignore
new file mode 100644
index 0000000..9f62a81
--- /dev/null
+++ b/server/.gitignore
@@ -0,0 +1,2 @@
+/site/node_modules
+/pkg
\ No newline at end of file
diff --git a/Dockerfile b/server/Dockerfile
similarity index 100%
rename from Dockerfile
rename to server/Dockerfile
diff --git a/default b/server/default
similarity index 100%
rename from default
rename to server/default
diff --git a/docker-compose.yml b/server/docker-compose.yml
similarity index 88%
rename from docker-compose.yml
rename to server/docker-compose.yml
index e52a66d..196f830 100644
--- a/docker-compose.yml
+++ b/server/docker-compose.yml
@@ -7,7 +7,7 @@ networks:
services:
daisy:
- build: ./.
+ build: .
container_name: daisy
restart: unless-stopped
diff --git a/site/index.html b/server/site/index.html
similarity index 94%
rename from site/index.html
rename to server/site/index.html
index 78e2766..9053391 100644
--- a/site/index.html
+++ b/server/site/index.html
@@ -100,6 +100,11 @@
AUR
+
+