Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: drawing application #3

Merged
merged 17 commits into from
Sep 17, 2024
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
22 changes: 10 additions & 12 deletions .moon/tasks/tag-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,21 +62,11 @@ tasks:
local: true

# https://moonrepo.dev/docs/guides/examples/eslint
lint:
lint:
command:
- 'eslint'
# - '--ext'
# - '.ts,.tsx,.cts,.mts,.js,.jsx,.cjs,.mjs'
# - '--fix'
# - '--report-unused-disable-directives'
# - '--no-error-on-unmatched-pattern'
# - '--exit-on-fatal-error'
# - '--ignore-path'
# - '@in(2)'
# - "-c"
# - "eslint.config.mjs"
- '.'
inputs:
inputs: &lint
- '*.config.*'
- '**/.eslintrc.*'
- '/.eslintrc.*'
Expand All @@ -87,6 +77,14 @@ tasks:
- '@globs(sources)'
- '@globs(tests)'

lint-fix:
command:
- 'eslint'
- '.'
- '--fix'
inputs: *lint
local: true

# https://moonrepo.dev/docs/guides/examples/jest
test:
command:
Expand Down
106 changes: 2 additions & 104 deletions .moon/tasks/tag-rust-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ tasks:
- '/.config/nextest.*'
env: *env
options:
runInCI: false
runInCI: true

test-node:
command: "wasm-pack test --node"
Expand All @@ -40,7 +40,7 @@ tasks:
- '/.config/nextest.*'
env: *env
options:
runInCI: false
runInCI: true

test:
command: 'nextest run'
Expand All @@ -55,105 +55,3 @@ tasks:
- "~:test-node"
options:
runDepsInParallel: false
# test:
# command: "noop"
# deps:
# - "~:test-web"
# - "~:test-node"
# options:
# runDepsInParallel: false

# implicitInputs:
# - 'Cargo.toml'

# fileGroups:
# cargo:
# - 'Cargo.toml'
# - 'crates/*/src/**/*'
# - 'crates/*/Cargo.toml'
# # - '/.cargo/config.toml'
# - '/rust-toolchain.toml'
# sources: []
# tests:
# - 'crates/*/benches/**/*'
# - 'crates/*/tests/**/*'

# tasks:
# cargo:
# command: 'cargo'
# local: true

# build: &build
# command: 'wasm-pack build'
# inputs:
# - '@group(cargo)'
# - '@group(sources)'
# env: &env
# CARGO_TERM_COLOR: 'always'

# # build-release:
# # <<: *build
# # command: 'cargo build --release'
# # local: true

# check:
# command: 'cargo check --workspace --all-targets'
# inputs:
# - '@group(cargo)'
# - '@group(sources)'
# - '@group(tests)'
# env: *env

# # dev:
# # command: 'cargo run'
# # inputs:
# # - '@group(cargo)'
# # - '@group(sources)'
# # local: true
# # env: *env

# format: &format
# command: 'cargo fmt --all --check'
# inputs:
# - '@group(cargo)'
# - '@group(sources)'
# - '@group(tests)'
# - '/rustfmt.toml'
# env: *env

# format-write:
# <<: *format
# command: 'cargo fmt --all -- --emit=files'
# local: true

# lint: &lint
# command: 'cargo clippy --workspace --all-targets'
# inputs:
# - '@group(cargo)'
# - '@group(sources)'
# - '@group(tests)'
# - '/clippy.toml'
# env: *env

# lint-fix:
# <<: *lint
# command: 'cargo clippy --workspace --all-targets --fix --allow-dirty --allow-staged'
# local: true

# test-web:
# command: 'wasm-pack test --firefox --headless'
# inputs:
# - '@group(cargo)'
# - '@group(sources)'
# - '@group(tests)'
# - '/.config/nextest.*'
# env: *env

# test-node:
# command: "wasm-pack test --node"
# inputs:
# - '@group(cargo)'
# - '@group(sources)'
# - '@group(tests)'
# - '/.config/nextest.*'
# env: *env
1 change: 1 addition & 0 deletions .moon/toolchain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ rust:
bins:
- cargo-nextest
- wasm-pack
- trunk

# List of rustup toolchain components to install and make available.
components:
Expand Down
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ lib/
mjs/
umd/

dist/

.next/
Loading