-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Suyashtnt <suyashtnt@gmail.com>
- Loading branch information
Showing
15 changed files
with
257 additions
and
251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
Oops, something went wrong.