-
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.
- Loading branch information
Showing
45 changed files
with
3,232 additions
and
7,411 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,2 +1,2 @@ | ||
[build] | ||
target-dir = 'dist/target' | ||
target-dir = 'target' |
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
set -eo pipefail | ||
|
||
# Automatically generated by moon. DO NOT MODIFY! | ||
# https://moonrepo.dev/docs/guides/vcs-hooks | ||
|
||
pnpm commitlint --edit $1 | ||
|
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
set -eo pipefail | ||
|
||
# Automatically generated by moon. DO NOT MODIFY! | ||
# https://moonrepo.dev/docs/guides/vcs-hooks | ||
|
||
pnpm moon run :lint :format --affected --status=staged | ||
|
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
$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 test' | ||
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
$schema: 'https://moonrepo.dev/schemas/tasks.json' | ||
|
||
tasks: | ||
test: | ||
command: 'cargo test' | ||
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
$schema: 'https://moonrepo.dev/schemas/tasks.json' | ||
|
||
fileGroups: | ||
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)' |
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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
$schema: 'https://moonrepo.dev/schemas/tasks.json' | ||
|
||
fileGroups: | ||
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)' | ||
test: | ||
command: noop | ||
deps: | ||
- test-intergration | ||
- test-unit | ||
test-intergration: | ||
command: "playwright test" | ||
inputs: | ||
- '@globs(sources)' | ||
- '@globs(tests)' | ||
test-unit: | ||
command: "vitest run" | ||
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
$schema: 'https://moonrepo.dev/schemas/tasks.json' | ||
|
||
tasks: | ||
build: | ||
deps: | ||
- '^:build' | ||
preview: | ||
deps: | ||
- build | ||
- '^:build' | ||
- '^:preview' | ||
local: true | ||
dev: | ||
deps: | ||
- '^:dev' | ||
local: true |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
$schema: 'https://moonrepo.dev/schemas/tasks.json' | ||
|
||
fileGroups: | ||
sources: | ||
- 'src/**/*' | ||
|
||
tasks: | ||
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# https://moonrepo.dev/docs/config/toolchain | ||
$schema: "https://moonrepo.dev/schemas/toolchain.json" | ||
|
||
node: | ||
# We suggest using the latest active LTS version: https://nodejs.org/en/about/releases | ||
version: "20" | ||
|
||
packageManager: "pnpm" | ||
|
||
# Update whenever new major version is out | ||
pnpm: | ||
version: "9.0.6" | ||
|
||
# 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 | ||
|
||
dependencyVersionFormat: "workspace" | ||
|
||
inferTasksFromScripts: false | ||
|
||
# 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 | ||
|
||
# Configures Rust within the toolchain. | ||
rust: | ||
version: "stable" | ||
bins: ["cargo-watch"] | ||
components: ["rustfmt", "rust-src", "rust-analyzer"] | ||
targets: [] | ||
|
||
syncToolchainConfig: true | ||
|
||
typescript: | ||
createMissingConfig: true | ||
includeProjectReferenceSources: true | ||
includeSharedTypes: true | ||
routeOutDirToCache: false | ||
syncProjectReferences: true | ||
syncProjectReferencesToPaths: true |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
$schema: https://moonrepo.dev/schemas/workspace.json | ||
projects: | ||
- apps/* | ||
- libs/* | ||
|
||
vcs: | ||
manager: "git" | ||
defaultBranch: "main" | ||
syncHooks: true | ||
hooks: | ||
pre-commit: | ||
- "pnpm moon run :lint :format --affected --status=staged" | ||
commit-msg: | ||
- "pnpm commitlint --edit $1" | ||
|
||
runner: | ||
archivableTargets: | ||
- ":check" | ||
- ":lint" | ||
- ":test" | ||
- ":lint-clippy" | ||
- ":lint-format" | ||
- ":test-unit" | ||
- ":test-intergration" |
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,3 +1,10 @@ | ||
{ | ||
"recommendations": ["nrwl.angular-console", "dbaeumer.vscode-eslint"] | ||
} | ||
"recommendations": [ | ||
"vivaxy.vscode-conventional-commits", | ||
"rust-lang.rust-analyzer", | ||
"svelte.svelte-vscode", | ||
"tamasfe.even-better-toml", | ||
"moonrepo.moon-console", | ||
"vitest.explorer" | ||
] | ||
} |
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,3 +1,36 @@ | ||
{ | ||
"conventionalCommits.scopes": ["i18n"] | ||
} | ||
"eslint.workingDirectories": [ | ||
{ | ||
"mode": "auto" | ||
} | ||
], | ||
"eslint.experimental.useFlatConfig": true, | ||
"eslint.format.enable": true, | ||
"eslint.enable": true, | ||
"rust-analyzer.testExplorer": true, | ||
"rust-analyzer.interpret.tests": true, | ||
"rust-analyzer.check.command": "clippy", | ||
"eslint.validate": [ | ||
"svelte", | ||
"typescript", | ||
"javascript", | ||
"json", | ||
"yaml" | ||
], | ||
"eslint.probe": [ | ||
"svelte", | ||
"typescript", | ||
"javascript", | ||
"json", | ||
"yaml" | ||
], | ||
"conventionalCommits.scopes": [ | ||
"copper" | ||
], | ||
"yaml.schemas": { | ||
"https://moonrepo.dev/schemas/workspace.json": ".moon/workspace.yml", | ||
"https://moonrepo.dev/schemas/project.json": "**/moon.yml", | ||
"https://moonrepo.dev/schemas/tasks.json": ".moon/tasks/*.yml" | ||
}, | ||
"rust-analyzer.showUnlinkedFileNotification": false | ||
} |
Oops, something went wrong.