Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/deploy-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- main
paths:
- 'site/**'
- 'demo/**'
- 'crates/edgeparse-wasm/pkg/**'
- '.github/workflows/deploy-site.yml'
workflow_dispatch:

Expand Down Expand Up @@ -43,6 +45,18 @@ jobs:
working-directory: site
run: pnpm install --frozen-lockfile

- name: Build demo app
working-directory: demo
run: |
npm ci
DEMO_BASE_PATH=/demo/ npx vite build

- name: Copy demo into site
run: |
rm -rf site/public/demo
mkdir -p site/public/demo
cp -r demo/dist/* site/public/demo/

- name: Build site
working-directory: site
run: pnpm run build
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,6 @@ examples/output/
mission/
logs/
.playwright-mcp/

# Root-level screenshots (use site/public/ or docs/ for committed images)
/*.png
8 changes: 8 additions & 0 deletions .vite/deps/_metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"hash": "f05f3447",
"configHash": "86da36e8",
"lockfileHash": "e3b0c442",
"browserHash": "82f036c2",
"optimized": {},
"chunks": {}
}
3 changes: 3 additions & 0 deletions .vite/deps/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"type": "module"
}
159 changes: 157 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ members = [
"crates/pdf-cos",
"crates/edgeparse-python",
"crates/edgeparse-node",
"crates/edgeparse-wasm",
]
default-members = [
"crates/edgeparse-core",
Expand All @@ -24,7 +25,7 @@ description = "EdgeParse — High-performance PDF-to-structured-data extraction
[workspace.dependencies]
# PDF parsing (local fork of lopdf 0.39.0, renamed pdf-cos for clarity)
# Using package alias so all existing `use lopdf::...` code works unchanged.
lopdf = { package = "pdf-cos", path = "crates/pdf-cos", version = "0.39.0" }
lopdf = { package = "pdf-cos", path = "crates/pdf-cos", version = "0.39.0", default-features = false }
pdf-extract = "0.10.0"

# CLI
Expand Down
24 changes: 24 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,30 @@ publish-brew: ## Generate Homebrew formula and push to $(BREW_TAP_REPO)
publish-all: publish-rust publish-python publish-node publish-cli publish-brew ## Publish everything: Rust crates + Python wheels + Node.js packages + CLI binaries + Homebrew formula
$(call ok,All SDKs + CLI + Homebrew tap published)

# ══════════════════════════════════════════════════════════════════════════════
## WASM
# ══════════════════════════════════════════════════════════════════════════════

WASM_CRATE := crates/edgeparse-wasm

wasm-build: ## Build WASM package (release, --target web)
$(call info,Building WASM package...)
@cd $(WASM_CRATE) && wasm-pack build --target web --release --scope edgeparse
$(call ok,WASM package built → $(WASM_CRATE)/pkg/)

wasm-check: ## Check WASM compilation (fast, no codegen)
$(call info,Checking WASM compilation...)
@cargo check --target wasm32-unknown-unknown -p edgeparse-wasm
$(call ok,WASM check passed)

wasm-size: wasm-build ## Show WASM binary size
@echo "Raw WASM size:"
@du -h $(WASM_CRATE)/pkg/edgeparse_wasm_bg.wasm

wasm-clean: ## Remove WASM build artefacts (pkg/)
$(call warn,Removing $(WASM_CRATE)/pkg/ ...)
@rm -rf $(WASM_CRATE)/pkg/

# ══════════════════════════════════════════════════════════════════════════════
## Clean
# ══════════════════════════════════════════════════════════════════════════════
Expand Down
Loading
Loading