Skip to content
Merged

Dev #121

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
16 changes: 8 additions & 8 deletions .github/workflows/release-ducrs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ name: Release Rust

on:
workflow_dispatch:
# push:
# branches:
# - main
# - next
# - dev
# paths:
# - 'packages/ducrs/**'
# - 'package.json'
push:
branches:
- main
- next
- dev
paths:
- 'packages/ducrs/**'
- 'package.json'

permissions:
contents: write
Expand Down
16 changes: 6 additions & 10 deletions packages/ducpdf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
}
},
"files": [
"dist",
"pkg",
"src"
"dist"
],
"publishConfig": {
"access": "public"
Expand All @@ -39,18 +37,16 @@
"url": "https://github.com/ducflair/duc/issues"
},
"scripts": {
"build": "bun run build:wasm && bun run copy:wasm-to-dist && bun run build:ts",
"build": "bun run clean && bun run build:wasm && bun run copy:wasm-to-dist && bun run build:ts",
"build:ts": "tsc -p tsconfig.json",
"build:rs": "cd src/duc2pdf && cargo build",
"build:wasm": "cd src/duc2pdf && wasm-pack build --target web --out-dir ../../../pkg --dev",
"build:wasm:prod": "cd src/duc2pdf && wasm-pack build --target web --out-dir ../../../pkg --release",
"copy:wasm-to-dist": "mkdir -p dist && cp ../pkg/duc2pdf_bg.wasm dist/ && cp ../pkg/duc2pdf.js dist/ && cp ../pkg/duc2pdf.d.ts dist/ && cp ../pkg/duc2pdf_bg.wasm.d.ts dist/",
"build:wasm": "cd src/duc2pdf && wasm-pack build --target web --out-dir ../../pkg --dev",
"build:wasm:prod": "cd src/duc2pdf && wasm-pack build --target web --out-dir ../../pkg --release",
"copy:wasm-to-dist": "mkdir -p dist && cp pkg/duc2pdf_bg.wasm dist/ && cp pkg/duc2pdf.js dist/ && cp pkg/duc2pdf.d.ts dist/ && cp pkg/duc2pdf_bg.wasm.d.ts dist/",
"clean": "rm -rf dist pkg && cd src/duc2pdf && cargo clean",
"test": "bun run build:wasm && bun test",
"test:rs": "cd src/duc2pdf && cargo test",
"test:duc2pdf": "cd src/duc2pdf && cargo test",
"prebuild": "bun run clean",
"prepack": "bun run build"
"test:duc2pdf": "cd src/duc2pdf && cargo test"
},
"dependencies": {
"ducjs": "workspace:^"
Expand Down
13 changes: 0 additions & 13 deletions packages/ducrs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,6 @@ The `duc` crate offers comprehensive Rust types and helper functions to work eff
- **Extensible Architecture:** Designed to integrate seamlessly with other `ducflair` packages and your custom tools.
- **Performance Optimized:** Efficient processing to handle complex CAD data with ease.

## Installation

Install the crate using Cargo:

```bash
cargo add duc
```

## Usage
```rust
use duc::*;
```


## Documentation

Expand Down
Loading