Skip to content

Commit

Permalink
Merge pull request #58 from falsepopsky/dev
Browse files Browse the repository at this point in the history
chore: stable release (part 1)
  • Loading branch information
falsepopsky committed Jan 16, 2024
2 parents c4e4023 + 5845d6f commit 4df44c1
Show file tree
Hide file tree
Showing 194 changed files with 17,688 additions and 7,189 deletions.
5 changes: 4 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"features": {
"ghcr.io/devcontainers/features/node:1": {
"nodeGypDependencies": true,
"version": "20.9.0",
"version": "20.11.0",
"nvmVersion": "latest"
}
},
Expand All @@ -15,6 +15,9 @@
"esbenp.prettier-vscode",
"editorconfig.editorconfig",
"orta.vscode-jest",
"bradlc.vscode-tailwindcss",
"astro-build.astro-vscode",
"unifiedjs.vscode-mdx",
"pkief.material-icon-theme",
"github.vscode-github-actions",
"github.vscode-pull-request-github"
Expand Down
17 changes: 17 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module.exports = {
root: true,
env: {
es2022: true,
node: true,
},
plugins: ['@typescript-eslint', 'promise'],
extends: ['untidy'],
parser: '@typescript-eslint/parser',
parserOptions: {
tsconfigRootDir: __dirname,
ecmaVersion: 'latest',
sourceType: 'module',
project: ['./tsconfig.json', './packages/web/tsconfig.json', './packages/api/tsconfig.json'],
},
ignorePatterns: ['dist', 'examples', '*.cjs', 'jest.*.js', 'env.d.ts'],
};
108 changes: 0 additions & 108 deletions .eslintrc.json

This file was deleted.

3 changes: 2 additions & 1 deletion .github/SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

| Version | Supported |
| ------- | ------------------ |
| <=0.0.6 | :white_check_mark: |
| ^1.0.0 | :heavy_check_mark: |
| ^0.0.6 | :x: |

## Reporting a Vulnerability

Expand Down
12 changes: 7 additions & 5 deletions .github/labeler.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
"📦 core":
- "src/**"
"📦 @untidy/thetvdb":
- "packages/api/src/**"
"📚 docs":
- "docs/**"
- "packages/web/**"
- "README.md"
- "packages/api/README.md"
"🧪 tests":
- "tests/**"
- "packages/api/tests/**"
- "mocks/**"
"⚙️ configs":
- ".prettierrc"
- "jest.config.js"
- ".eslintrc.json"
- ".eslintrc.cjs"
8 changes: 4 additions & 4 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- main

env:
PNPM_VERSION: 8.10.4
PNPM_VERSION: 8.14.1

jobs:
lint:
Expand All @@ -21,7 +21,7 @@ jobs:
version: ${{ env.PNPM_VERSION }}

- name: Setup Node
uses: actions/setup-node@v4.0.0
uses: actions/setup-node@v4.0.1
with:
node-version-file: ".nvmrc"
cache: pnpm
Expand All @@ -43,7 +43,7 @@ jobs:
version: ${{ env.PNPM_VERSION }}

- name: Setup Node
uses: actions/setup-node@v4.0.0
uses: actions/setup-node@v4.0.1
with:
node-version-file: ".nvmrc"
cache: pnpm
Expand All @@ -66,7 +66,7 @@ jobs:
version: ${{ env.PNPM_VERSION }}

- name: Setup Node
uses: actions/setup-node@v4.0.0
uses: actions/setup-node@v4.0.1
with:
node-version-file: ".nvmrc"
cache: pnpm
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- main

env:
PNPM_VERSION: 8.10.4
PNPM_VERSION: 8.14.1

jobs:
lint:
Expand All @@ -21,7 +21,7 @@ jobs:
version: ${{ env.PNPM_VERSION }}

- name: Setup Node
uses: actions/setup-node@v4.0.0
uses: actions/setup-node@v4.0.1
with:
node-version-file: ".nvmrc"
cache: pnpm
Expand All @@ -35,7 +35,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ["18.18.2", "20.9.0"]
node-version: ["18.19.0", "20.11.0"]
steps:
- name: Checkout repo
uses: actions/checkout@v4.1.1
Expand All @@ -46,7 +46,7 @@ jobs:
version: ${{ env.PNPM_VERSION }}

- name: Setup Node
uses: actions/setup-node@v4.0.0
uses: actions/setup-node@v4.0.1
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
Expand All @@ -69,7 +69,7 @@ jobs:
version: ${{ env.PNPM_VERSION }}

- name: Setup Node
uses: actions/setup-node@v4.0.0
uses: actions/setup-node@v4.0.1
with:
node-version-file: ".nvmrc"
cache: pnpm
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4.1.0
uses: actions/checkout@v4.1.1
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: javascript
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
with:
category: "/language:javascript"
9 changes: 6 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
branches:
- main

env:
PNPM_VERSION: 8.14.1

jobs:
release:
name: 🚀 Release
Expand All @@ -23,10 +26,10 @@ jobs:
- name: Setup pnpm
uses: pnpm/action-setup@v2.4.0
with:
version: 8.10.4
version: ${{ env.PNPM_VERSION }}

- name: Setup Node
uses: actions/setup-node@v4.0.0
uses: actions/setup-node@v4.0.1
with:
node-version-file: ".nvmrc"
cache: pnpm
Expand All @@ -39,7 +42,7 @@ jobs:
with:
title: "chore(release): new @untidy/thetvdb version"
commit: "chore(release): publish new version"
publish: pnpm run release
publish: pnpm run publish-packages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node-linker=hoisted
strict-peer-dependencies=false
enable-pre-post-scripts=true
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20.9.0
v20.11.0
4 changes: 3 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
"proseWrap": "preserve",
"trailingComma": "es5",
"tabWidth": 2,
"plugins": ["prettier-plugin-astro", "prettier-plugin-tailwindcss"],
"overrides": [
{ "files": "*.md", "options": { "printWidth": 100, "proseWrap": "always" } },
{ "files": "*.yaml", "options": { "singleQuote": false, "printWidth": 100, "proseWrap": "never" } }
{ "files": "*.yaml", "options": { "singleQuote": false, "printWidth": 100, "proseWrap": "never" } },
{ "files": "*.astro", "options": { "parser": "astro", "astroAllowShorthand": true } }
]
}
3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"recommendations": [
"astro-build.astro-vscode",
"unifiedjs.vscode-mdx",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"bradlc.vscode-tailwindcss",
"editorconfig.editorconfig",
"orta.vscode-jest"
]
Expand Down
14 changes: 14 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "tsx",
"type": "node",
"request": "launch",
"program": "${file}",
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/tsx",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
}
]
}
18 changes: 15 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,32 @@
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": true,
"source.organizeImports": true,
"source.addMissingImports": true
"source.addMissingImports": "always",
"source.organizeImports": "always",
"source.fixAll": "always"
},
"editor.wordWrap": "on",
"editor.guides.bracketPairs": "active",
"editor.tabSize": 2,
"npm.scriptExplorerAction": "open",
"npm.autoDetect": "on",
"npm.packageManager": "pnpm",
"files.associations": {
"*.css": "tailwindcss"
},
"typescript.tsdk": "./node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true,
"jest.autoRun": "off",
"yaml.schemas": {
"https://json.schemastore.org/github-workflow.json": "/.github/workflows/*.yml"
},
"prettier.documentSelectors": ["**/*.astro"],
"[astro]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[mdx]": {
"editor.codeActionsOnSave": {
"source.organizeImports": "never"
}
}
}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ APPENDIX: How to apply the Apache License to your work.
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2023 @falsepopsky
Copyright 2023, 2024 @falsepopsky

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
Loading

0 comments on commit 4df44c1

Please sign in to comment.