diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e37d1f9..71639d6 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -16,6 +16,4 @@ jobs: node-version: 24 cache: pnpm - run: pnpm install --frozen-lockfile - - run: pnpm lint - - run: pnpm typecheck - - run: pnpm build + - run: pnpm run ci diff --git a/.vscode/commit-message-instructions.md b/.vscode/commit-message-instructions.md new file mode 100644 index 0000000..9f7c046 --- /dev/null +++ b/.vscode/commit-message-instructions.md @@ -0,0 +1,10 @@ +# Commit message rules + +- Write every commit message in English. +- Create exactly one commit message. +- Use this format exactly: (): +- Scope is mandatory for every commit. +- Never omit the scope. +- Use lowercase for type and scope. +- Write the subject in imperative mood. +- Keep the message to one line and describe the change concisely. diff --git a/.vscode/extensions.json b/.vscode/extensions.json index b2793df..1c5bccf 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,3 +1,8 @@ { - "recommendations": ["biomejs.biome", "JuanBlanco.solidity"] + "recommendations": [ + "biomejs.biome", + "JuanBlanco.solidity", + "GitHub.copilot", + "GitHub.copilot-chat" + ] } diff --git a/.vscode/settings.json b/.vscode/settings.json index 9ae8c22..a555cf2 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -5,6 +5,11 @@ "source.fixAll.biome": "explicit", "source.organizeImports.biome": "explicit" }, + "github.copilot.chat.commitMessageGeneration.instructions": [ + { + "file": ".vscode/commit-message-instructions.md" + } + ], "[solidity]": { "editor.defaultFormatter": "JuanBlanco.solidity" } diff --git a/test/acceptance.spec.ts b/tests/acceptance.spec.ts similarity index 100% rename from test/acceptance.spec.ts rename to tests/acceptance.spec.ts diff --git a/test/assets.spec.ts b/tests/assets.spec.ts similarity index 100% rename from test/assets.spec.ts rename to tests/assets.spec.ts diff --git a/test/bits.spec.ts b/tests/bits.spec.ts similarity index 100% rename from test/bits.spec.ts rename to tests/bits.spec.ts diff --git a/test/cli/args.spec.ts b/tests/cli/args.spec.ts similarity index 100% rename from test/cli/args.spec.ts rename to tests/cli/args.spec.ts diff --git a/test/cli/commands.spec.ts b/tests/cli/commands.spec.ts similarity index 100% rename from test/cli/commands.spec.ts rename to tests/cli/commands.spec.ts diff --git a/test/cli/hex.spec.ts b/tests/cli/hex.spec.ts similarity index 100% rename from test/cli/hex.spec.ts rename to tests/cli/hex.spec.ts diff --git a/test/cli/integration.spec.ts b/tests/cli/integration.spec.ts similarity index 100% rename from test/cli/integration.spec.ts rename to tests/cli/integration.spec.ts diff --git a/test/cli/run.spec.ts b/tests/cli/run.spec.ts similarity index 100% rename from test/cli/run.spec.ts rename to tests/cli/run.spec.ts diff --git a/test/constants.spec.ts b/tests/constants.spec.ts similarity index 100% rename from test/constants.spec.ts rename to tests/constants.spec.ts diff --git a/test/crypto.spec.ts b/tests/crypto.spec.ts similarity index 100% rename from test/crypto.spec.ts rename to tests/crypto.spec.ts diff --git a/test/entropy-generator.spec.ts b/tests/entropy-generator.spec.ts similarity index 100% rename from test/entropy-generator.spec.ts rename to tests/entropy-generator.spec.ts diff --git a/test/entropy-to-mnemonic.spec.ts b/tests/entropy-to-mnemonic.spec.ts similarity index 100% rename from test/entropy-to-mnemonic.spec.ts rename to tests/entropy-to-mnemonic.spec.ts diff --git a/test/errors.spec.ts b/tests/errors.spec.ts similarity index 100% rename from test/errors.spec.ts rename to tests/errors.spec.ts diff --git a/test/integration.spec.ts b/tests/integration.spec.ts similarity index 100% rename from test/integration.spec.ts rename to tests/integration.spec.ts diff --git a/test/mnemonic-to-entropy.spec.ts b/tests/mnemonic-to-entropy.spec.ts similarity index 100% rename from test/mnemonic-to-entropy.spec.ts rename to tests/mnemonic-to-entropy.spec.ts diff --git a/test/mnemonic-to-seed.spec.ts b/tests/mnemonic-to-seed.spec.ts similarity index 100% rename from test/mnemonic-to-seed.spec.ts rename to tests/mnemonic-to-seed.spec.ts diff --git a/test/normalize-mnemonic.spec.ts b/tests/normalize-mnemonic.spec.ts similarity index 100% rename from test/normalize-mnemonic.spec.ts rename to tests/normalize-mnemonic.spec.ts diff --git a/test/strict-mnemonic.spec.ts b/tests/strict-mnemonic.spec.ts similarity index 100% rename from test/strict-mnemonic.spec.ts rename to tests/strict-mnemonic.spec.ts diff --git a/test/validate-mnemonic.spec.ts b/tests/validate-mnemonic.spec.ts similarity index 100% rename from test/validate-mnemonic.spec.ts rename to tests/validate-mnemonic.spec.ts diff --git a/test/validation-result.spec.ts b/tests/validation-result.spec.ts similarity index 100% rename from test/validation-result.spec.ts rename to tests/validation-result.spec.ts diff --git a/vitest.config.ts b/vitest.config.ts index 879d754..788a810 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -4,10 +4,10 @@ export default defineConfig({ test: { environment: "node", include: [ - "test/**/*.spec.ts", - "test/**/*.test.ts", - "test/**/*.spec.js", - "test/**/*.test.js", + "tests/**/*.spec.ts", + "tests/**/*.test.ts", + "tests/**/*.spec.js", + "tests/**/*.test.js", ], }, });