Skip to content

Commit

Permalink
style: 🎨 format
Browse files Browse the repository at this point in the history
Signed-off-by: Suyashtnt <suyashtnt@gmail.com>
  • Loading branch information
Suya1671 committed Jun 22, 2024
1 parent 103d3c7 commit d52af62
Show file tree
Hide file tree
Showing 15 changed files with 257 additions and 251 deletions.
52 changes: 26 additions & 26 deletions .moon/tasks/rust-application.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
$schema: 'https://moonrepo.dev/schemas/tasks.json'
$schema: "https://moonrepo.dev/schemas/tasks.json"

tasks:
build:
command: 'cargo build --release'
inputs:
- '@globs(sources)'
deps:
- '^:build'
preview:
command: 'cargo run --release'
deps:
- build
- '^:build'
- '^:preview'
local: true
test:
command: 'cargo nextest run'
inputs:
- '@globs(sources)'
- '@globs(tests)'
coverage:
command: 'cargo llvm-cov nextest --all-features --codecov --output-path codecov.json'
inputs:
- '@globs(sources)'
- '@globs(tests)'
outputs:
- 'codecov.json'
build:
command: "cargo build --release"
inputs:
- "@globs(sources)"
deps:
- "^:build"
preview:
command: "cargo run --release"
deps:
- build
- "^:build"
- "^:preview"
local: true
test:
command: "cargo nextest run"
inputs:
- "@globs(sources)"
- "@globs(tests)"
coverage:
command: "cargo llvm-cov nextest --all-features --codecov --output-path codecov.json"
inputs:
- "@globs(sources)"
- "@globs(tests)"
outputs:
- "codecov.json"
26 changes: 13 additions & 13 deletions .moon/tasks/rust-library.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
$schema: 'https://moonrepo.dev/schemas/tasks.json'
$schema: "https://moonrepo.dev/schemas/tasks.json"

tasks:
test:
command: 'cargo nextest run'
inputs:
- '@globs(sources)'
- '@globs(tests)'
coverage:
command: 'cargo llvm-cov nextest --all-features --codecov --output-path codecov.json'
inputs:
- '@globs(sources)'
- '@globs(tests)'
outputs:
- 'codecov.json'
test:
command: "cargo nextest run"
inputs:
- "@globs(sources)"
- "@globs(tests)"
coverage:
command: "cargo llvm-cov nextest --all-features --codecov --output-path codecov.json"
inputs:
- "@globs(sources)"
- "@globs(tests)"
outputs:
- "codecov.json"
62 changes: 31 additions & 31 deletions .moon/tasks/rust.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
$schema: 'https://moonrepo.dev/schemas/tasks.json'
$schema: "https://moonrepo.dev/schemas/tasks.json"

fileGroups:
sources:
- 'src/**/*'
- 'Cargo.toml'
tests:
- 'benches/**/*'
- 'tests/**/*'
sources:
- "src/**/*"
- "Cargo.toml"
tests:
- "benches/**/*"
- "tests/**/*"

tasks:
check:
command: 'cargo check'
inputs:
- '@globs(sources)'
format:
command: 'cargo fmt'
inputs:
- '@globs(sources)'
- '@globs(tests)'
lint:
command: noop
deps:
- lint-clippy
- lint-format
lint-clippy:
command: 'cargo clippy'
inputs:
- '@globs(sources)'
- '@globs(tests)'
lint-format:
command: 'cargo fmt --check'
inputs:
- '@globs(sources)'
- '@globs(tests)'
check:
command: "cargo check"
inputs:
- "@globs(sources)"
format:
command: "cargo fmt"
inputs:
- "@globs(sources)"
- "@globs(tests)"
lint:
command: noop
deps:
- lint-clippy
- lint-format
lint-clippy:
command: "cargo clippy"
inputs:
- "@globs(sources)"
- "@globs(tests)"
lint-format:
command: "cargo fmt --check"
inputs:
- "@globs(sources)"
- "@globs(tests)"
70 changes: 36 additions & 34 deletions .moon/tasks/tag-sveltekit.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,40 @@
$schema: 'https://moonrepo.dev/schemas/tasks.json'
$schema: "https://moonrepo.dev/schemas/tasks.json"

fileGroups:
sources:
- 'src/**/*'
- 'static/**/*'
tests:
- 'tests/**/*'
sources:
- "src/**/*"
- "static/**/*"
tests:
- "tests/**/*"

tasks:
dev:
command: 'vite dev'
deps:
- '^:dev'
local: true
preview:
command: 'vite preview'
deps:
- build
- '^:build'
- '^:preview'
local: true
build:
command: 'vite build'
inputs:
- '@globs(sources)'
outputs:
- 'dist'
check:
command: 'svelte-check --tsconfig ./tsconfig.json'
inputs:
- '@globs(sources)'
deps:
- sync
sync:
command: 'svelte-kit sync'
inputs:
- '@globs(sources)'
dev:
command: "vite dev"
deps:
- "^:dev"
local: true
preview:
command: "vite preview"
deps:
- build
- "^:build"
- "^:preview"
local: true
build:
command: "vite build"
deps:
- ^:build
inputs:
- "@globs(sources)"
outputs:
- "dist"
check:
command: "svelte-check --tsconfig ./tsconfig.json"
inputs:
- "@globs(sources)"
deps:
- sync
sync:
command: "svelte-kit sync"
inputs:
- "@globs(sources)"
14 changes: 7 additions & 7 deletions .moon/tasks/typescript.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
$schema: 'https://moonrepo.dev/schemas/tasks.json'
$schema: "https://moonrepo.dev/schemas/tasks.json"

fileGroups:
sources:
- 'src/**/*'
sources:
- "src/**/*"

tasks:
lint:
command: 'eslint .'
format:
command: 'eslint --fix .'
lint:
command: "eslint ."
format:
command: "eslint --fix ."
54 changes: 30 additions & 24 deletions .moon/toolchain.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,44 @@
# https://moonrepo.dev/docs/config/toolchain
$schema: 'https://moonrepo.dev/schemas/toolchain.json'
$schema: "https://moonrepo.dev/schemas/toolchain.json"

node:
packageManager: 'pnpm'
packageManager: "pnpm"

# Add `node.version` as a constraint in the root `package.json` `engines`.
addEnginesConstraint: true
# Add `node.version` as a constraint in the root `package.json` `engines`.
addEnginesConstraint: true

# Currently buggy and dedupes even with up to date lockfiles
dedupeOnLockfileChange: false
# Currently buggy and dedupes even with up to date lockfiles
dedupeOnLockfileChange: false

dependencyVersionFormat: 'workspace'
dependencyVersionFormat: "workspace"

inferTasksFromScripts: false
inferTasksFromScripts: false

# Support the "one version policy" by only declaring dependencies in the root `package.json`.
# rootPackageOnly: true
# Support the "one version policy" by only declaring dependencies in the root `package.json`.
# rootPackageOnly: true

# Sync a project's relationships as `dependencies` within the project's `package.json`.
syncProjectWorkspaceDependencies: true
# Sync a project's relationships as `dependencies` within the project's `package.json`.
syncProjectWorkspaceDependencies: true

# Configures Rust within the toolchain.
rust:
version: 'stable'
bins: ['cargo-watch', 'tauri-cli@^2.0.0-beta', 'cargo-nextest', 'cargo-llvm-cov']
components: ['rustfmt', 'rust-src', 'rust-analyzer', 'llvm-tools-preview']
targets: []

syncToolchainConfig: true
version: "stable"
bins:
[
"cargo-watch",
"tauri-cli@^2.0.0-beta",
"cargo-nextest",
"cargo-llvm-cov",
]
components: ["rustfmt", "rust-src", "rust-analyzer", "llvm-tools-preview"]
targets: []

syncToolchainConfig: true

typescript:
createMissingConfig: true
includeProjectReferenceSources: false
includeSharedTypes: true
routeOutDirToCache: false
syncProjectReferences: true
syncProjectReferencesToPaths: false
createMissingConfig: true
includeProjectReferenceSources: false
includeSharedTypes: true
routeOutDirToCache: false
syncProjectReferences: true
syncProjectReferencesToPaths: false
38 changes: 19 additions & 19 deletions .moon/workspace.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
$schema: https://moonrepo.dev/schemas/workspace.json
projects:
- apps/*
- libs/*
- apps/*
- libs/*

vcs:
manager: 'git'
defaultBranch: 'dev'
syncHooks: true
hooks:
pre-commit:
- 'pnpm moon run :lint :format --affected --status=staged'
commit-msg:
- 'pnpm commitlint --edit $1'
manager: "git"
defaultBranch: "dev"
syncHooks: true
hooks:
pre-commit:
- "pnpm moon run :lint :format --affected --status=staged"
commit-msg:
- "pnpm commitlint --edit $1"

runner:
archivableTargets:
- ':check'
- ':lint'
- ':test'
- ':coverage'
- ':lint-clippy'
- ':lint-format'
- ':test-unit'
- ':test-intergration'
archivableTargets:
- ":check"
- ":lint"
- ":test"
- ":coverage"
- ":lint-clippy"
- ":lint-format"
- ":test-unit"
- ":test-intergration"
Loading

0 comments on commit d52af62

Please sign in to comment.