Skip to content

u-sho/quantum-game-arena

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f51ec5f · Feb 13, 2025

History

35 Commits
May 3, 2024
May 3, 2024
Dec 17, 2024
Oct 13, 2024
Oct 13, 2024
Sep 22, 2023
Dec 17, 2024
Dec 15, 2021
Oct 16, 2022
Sep 22, 2023
May 17, 2021
Feb 13, 2025
Dec 17, 2024
Dec 17, 2024
Dec 17, 2024
Dec 17, 2024
May 3, 2024
Mar 17, 2024
Mar 17, 2024
Mar 17, 2024
Dec 17, 2024

Repository files navigation

Quantum Game Arena

6137f800-cec1-11eb-8794-82cbef733846

powered by create-svelte;

Developing

Once you've created a project and installed dependencies with npm instal, start a development server:

npm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open

Building

Before creating a production version of your app, install an adapter for your target environment. Then:

npm run build

You can preview the built app with npm run preview, regardless of whether you installed an adapter. This should not be used to serve your app in production.

Format & Lint

Please exec formatter & linter before commit.

# check format
npm run format:dry

# fix format
npm run format

# check lint
npm run lint:dry

# fix lint
npm run lint

Typecheck

npm run check

Test

Unit Test

We use Vitest to unit test. Vitest reports coverage to ./coverage folder.

npm run test

Component Naming

  1. Single-file component filename casing: filenames of single-file components should be always PascalCase.
  2. Base component names: base components (a.k.a. presentational, dumb, or pure components) that apply app-specific styling and conventions should all begin with App prefix.
  3. Tightly coupled component names: child components that are tightly coupled with their parent should include the parent component name as a prefix.
  4. Order of words in component names: component names should start with the highest-level (often most general) words and end with descriptive modifying words.
  5. Full-word component names: component names should prefer full words over abbreviations.

The above list is a little bit customized a part of Vue.js Style Guide