From d52af62896f6a3e8ac6d0cc9945eb7b3cfb2d907 Mon Sep 17 00:00:00 2001 From: Suyashtnt Date: Sat, 22 Jun 2024 16:48:56 +0200 Subject: [PATCH] style: :art: format Signed-off-by: Suyashtnt --- .moon/tasks/rust-application.yml | 52 +++++++------- .moon/tasks/rust-library.yml | 26 +++---- .moon/tasks/rust.yml | 62 ++++++++-------- .moon/tasks/tag-sveltekit.yml | 70 ++++++++++--------- .moon/tasks/typescript.yml | 14 ++-- .moon/toolchain.yml | 54 +++++++------- .moon/workspace.yml | 38 +++++----- apps/glowsquid-frontend/moon.yml | 40 +++++------ .../src/routes/+page.svelte | 1 - apps/glowsquid/moon.yml | 68 +++++++++--------- libs/copper/moon.yml | 18 ++--- libs/eslint-config/index.js | 5 +- libs/eslint-config/moon.yml | 8 +-- libs/tauri-plugin-state/moon.yml | 18 ++--- libs/ui/moon.yml | 34 ++++----- 15 files changed, 257 insertions(+), 251 deletions(-) diff --git a/.moon/tasks/rust-application.yml b/.moon/tasks/rust-application.yml index a95a000..a237737 100644 --- a/.moon/tasks/rust-application.yml +++ b/.moon/tasks/rust-application.yml @@ -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" diff --git a/.moon/tasks/rust-library.yml b/.moon/tasks/rust-library.yml index b338b77..bef9a74 100644 --- a/.moon/tasks/rust-library.yml +++ b/.moon/tasks/rust-library.yml @@ -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" diff --git a/.moon/tasks/rust.yml b/.moon/tasks/rust.yml index 944f385..37f9a52 100644 --- a/.moon/tasks/rust.yml +++ b/.moon/tasks/rust.yml @@ -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)' \ No newline at end of file + 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)" diff --git a/.moon/tasks/tag-sveltekit.yml b/.moon/tasks/tag-sveltekit.yml index 1080800..f38e96e 100644 --- a/.moon/tasks/tag-sveltekit.yml +++ b/.moon/tasks/tag-sveltekit.yml @@ -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)" diff --git a/.moon/tasks/typescript.yml b/.moon/tasks/typescript.yml index 24503fd..a72314e 100644 --- a/.moon/tasks/typescript.yml +++ b/.moon/tasks/typescript.yml @@ -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 .' \ No newline at end of file + lint: + command: "eslint ." + format: + command: "eslint --fix ." diff --git a/.moon/toolchain.yml b/.moon/toolchain.yml index 9396bd6..2ca4519 100644 --- a/.moon/toolchain.yml +++ b/.moon/toolchain.yml @@ -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 diff --git a/.moon/workspace.yml b/.moon/workspace.yml index 2c46f6a..e0835e7 100644 --- a/.moon/workspace.yml +++ b/.moon/workspace.yml @@ -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" diff --git a/apps/glowsquid-frontend/moon.yml b/apps/glowsquid-frontend/moon.yml index b77bb5e..d23c293 100644 --- a/apps/glowsquid-frontend/moon.yml +++ b/apps/glowsquid-frontend/moon.yml @@ -1,8 +1,8 @@ -$schema: 'https://moonrepo.dev/schemas/project.json' +$schema: "https://moonrepo.dev/schemas/project.json" project: - name: Glowsquid Frontend - description: Frontend code for Glowsquid + name: Glowsquid Frontend + description: Frontend code for Glowsquid type: library stack: frontend @@ -10,22 +10,22 @@ language: typescript platform: node tasks: - test: - command: noop - deps: - # - test-intergration - - test-unit - # TODO: Add test-intergration through webdriver - # test-intergration: - # command: 'pnpm playwright test' - # inputs: - # - '@globs(sources)' - # - '@globs(tests)' - test-unit: - command: 'pnpm vitest run' - inputs: - - '@globs(sources)' - - '@globs(tests)' + test: + command: noop + deps: + # - test-intergration + - test-unit + # TODO: Add test-intergration through webdriver + # test-intergration: + # command: 'pnpm playwright test' + # inputs: + # - '@globs(sources)' + # - '@globs(tests)' + test-unit: + command: "pnpm vitest run" + inputs: + - "@globs(sources)" + - "@globs(tests)" tags: - - sveltekit + - sveltekit diff --git a/apps/glowsquid-frontend/src/routes/+page.svelte b/apps/glowsquid-frontend/src/routes/+page.svelte index 61f092a..df333f1 100644 --- a/apps/glowsquid-frontend/src/routes/+page.svelte +++ b/apps/glowsquid-frontend/src/routes/+page.svelte @@ -1,5 +1,4 @@