Skip to content

Commit

Permalink
Second pass at React
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesaoverton committed Jul 25, 2024
1 parent c5d9d09 commit 1526557
Show file tree
Hide file tree
Showing 10 changed files with 16,559 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
/shell.nix
/temp/
/.venv/
/src/javascript/node_modules/
/src/javascript/build/

/examples/penguins/table/nanobot.toml

Expand Down
16 changes: 12 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ usage:
deps:
sudo apt-get update
sudo apt-get install -y rustc cargo
sudo apt-get install -y nodejs npm
sudo apt-get install -y python3-pip
sudo pip install tesh
npm install -g [email protected]
Expand All @@ -24,24 +25,31 @@ format:
cargo fmt

.PHONY: build
build:
build: src/javascript/build/main.js
cargo build --release

clean:
rm -rf build/
rm -rf build/ src/javascript/build/

build/ build/penguins/:
mkdir -p $@

build/penguins/%/:
mkdir -p $@

target/debug/nanobot: Cargo.* src/**
target/debug/nanobot: Cargo.* src/** src/javascript/build/main.js
cargo build

target/release/nanobot: Cargo.* src/**
target/release/nanobot: Cargo.* src/** src/javascript/build/main.js
cargo build --release

src/javascript/build/main.js: src/javascript/package.* src/javascript/src/* src/javascript/public/*
cd src/javascript/ \
&& npm install \
&& npm run build \
&& cp build/static/js/main.*.js build/main.js \
&& cp build/static/css/main.*.css build/main.css

TEST_TABLES = ldtab prefix statement
TEST_TSVS = $(foreach T,$(TEST_TABLES),src/resources/test_data/$(T).tsv)
src/resources/test_data/zfa_excerpt.db: $(TEST_TSVS)
Expand Down
Loading

0 comments on commit 1526557

Please sign in to comment.