Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
semyenov committed Nov 14, 2023
0 parents commit 4c25c77
Show file tree
Hide file tree
Showing 30 changed files with 8,239 additions and 0 deletions.
75 changes: 75 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"service": "devcontainer",
"dockerComposeFile": "docker-compose.yml",
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
"customizations": {
"vscode": {
"extensions": [
"Cardinal90.multi-cursor-case-preserve",
"Codeium.codeium",
"Davidsekar.redis-xplorer",
"IBM.output-colorizer",
"MatthewNespor.vscode-color-identifiers-mode",
"Med-H.color-me",
"Nuxt.mdc",
"Tyriar.sort-lines",
"VisualStudioExptTeam.vscodeintellicode",
"Yseop.vscode-yseopml",
"aaron-bond.better-comments",
"alefragnani.bookmarks",
"aliariff.auto-add-brackets",
"antfu.auto-npx",
"antfu.file-nesting",
"antfu.goto-alias",
"antfu.iconify",
"antfu.vite",
"antfu.where-am-i",
"arcanis.vscode-zipfs",
"bibhasdn.unique-lines",
"bierner.markdown-yaml-preamble",
"bmalehorn.print-it",
"bradlc.vscode-tailwindcss",
"christian-kohler.npm-intellisense",
"christian-kohler.path-intellisense",
"cpylua.language-postcss",
"dbaeumer.vscode-eslint",
"eamodio.gitlens",
"editorconfig.editorconfig",
"esbenp.prettier-vscode",
"formulahendry.auto-rename-tag",
"foxundermoon.shell-format",
"helixquar.randomeverything",
"heybourn.headwind",
"howardzuo.vscode-npm-dependency",
"idered.npm",
"kisstkondoros.vscode-codemetrics",
"lacroixdavid1.vscode-format-context-menu",
"lokalise.i18n-ally",
"maciejdems.add-to-gitignore",
"mflo999.lintel",
"mhutchie.git-graph",
"micnil.vscode-checkpoints",
"mikestead.dotenv",
"mkxml.vscode-filesize",
"ms-vscode.vscode-js-profile-flame",
"oderwat.indent-rainbow",
"phind.phind",
"piotrpalarz.vscode-gitignore-generator",
"quicktype.quicktype",
"solomonkinard.git-search",
"stackbreak.comment-divider",
"stivo.tailwind-fold",
"stylelint.vscode-stylelint",
"tombonnike.vscode-status-bar-format-toggle",
"usernamehw.errorlens",
"vivaxy.vscode-conventional-commits",
"vue.volar",
"wejectchan.vue3-snippets-for-vscode",
"wmaurer.change-case",
"yatki.vscode-surround",
"yoavbls.pretty-ts-errors",
"zardoy.ts-essential-plugins"
]
}
}
}
27 changes: 27 additions & 0 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
version: '3.8'

services:
devcontainer:
image: gitea.local/sozdev/devcontainer-ts
restart: unless-stopped
command: tail -f /dev/null
environment:
- NODE_ENV=development
- NITRO_PORT=3000
ports:
- 3000:3000
volumes:
- ../..:/workspaces:cached

redis:
image: redis:latest
restart: unless-stopped
environment:
- ALLOW_EMPTY_PASSWORD=yes
ports:
- 6379:6379
volumes:
- redis-data:/data

volumes:
redis-data:
26 changes: 26 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true

# 4 space indentation
[*.py]
indent_style = space
indent_size = 4

# Tab indentation (no size specified)
[Makefile]
indent_style = tab

# Matches the exact files either package.json or .travis.yml
[*.{json,yml,yaml}]
indent_style = space
indent_size = 2
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
dist
node_modules

.yarn
51 changes: 51 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: CI

on:
push:
branches:
- master

pull_request:
branches:
- master

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: latest
cache: yarn

- name: Enable corepack
run: corepack enable

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Lint
run: yarn lint

typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: latest
cache: yarn

- name: Enable corepack
run: corepack enable

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Typecheck
run: yarn typecheck
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Publish Package

on:
push:
tags:
- v*
jobs:
publish:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: latest
cache: yarn

- name: Enable corepack
run: corepack enable

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Build
run: yarn build

- name: Apply version
run: yarn version apply

- name: Publish package
run: yarn npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
28 changes: 28 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Nuxt
.nuxt
.nitro
.cache
.output
.config
.env

# Node
node_modules
dist
core

# Yarn
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

# VIM
**/*~

# Other
.scraper-*
*.log*
9 changes: 9 additions & 0 deletions .prettierrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# .prettierrc or .prettierrc.yaml
trailingComma: all
singleQuote: true
semi: false
tabWidth: 2
printWidth: 80
useTabs: false
spaceInParens: true
bracketSpacing: true
66 changes: 66 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"recommendations": [
"aaron-bond.better-comments",
"alefragnani.bookmarks",
"aliariff.auto-add-brackets",
"antfu.auto-npx",
"antfu.file-nesting",
"antfu.goto-alias",
"antfu.iconify",
"antfu.vite",
"antfu.where-am-i",
"arcanis.vscode-zipfs",
"bibhasdn.unique-lines",
"bierner.markdown-yaml-preamble",
"bmalehorn.print-it",
"bradlc.vscode-tailwindcss",
"Cardinal90.multi-cursor-case-preserve",
"christian-kohler.npm-intellisense",
"christian-kohler.path-intellisense",
"Codeium.codeium",
"cpylua.language-postcss",
"dbaeumer.vscode-eslint",
"eamodio.gitlens",
"editorconfig.editorconfig",
"esbenp.prettier-vscode",
"formulahendry.auto-rename-tag",
"foxundermoon.shell-format",
"helixquar.randomeverything",
"heybourn.headwind",
"howardzuo.vscode-npm-dependency",
"IBM.output-colorizer",
"kisstkondoros.vscode-codemetrics",
"lacroixdavid1.vscode-format-context-menu",
"lokalise.i18n-ally",
"maciejdems.add-to-gitignore",
"MatthewNespor.vscode-color-identifiers-mode",
"Med-H.color-me",
"mflo999.lintel",
"mhutchie.git-graph",
"micnil.vscode-checkpoints",
"mikestead.dotenv",
"mkxml.vscode-filesize",
"ms-vscode.vscode-js-profile-flame",
"Nuxt.mdc",
"oderwat.indent-rainbow",
"phind.phind",
"piotrpalarz.vscode-gitignore-generator",
"quicktype.quicktype",
"solomonkinard.git-search",
"stackbreak.comment-divider",
"stivo.tailwind-fold",
"stylelint.vscode-stylelint",
"tombonnike.vscode-status-bar-format-toggle",
"Tyriar.sort-lines",
"usernamehw.errorlens",
"VisualStudioExptTeam.vscodeintellicode",
"vivaxy.vscode-conventional-commits",
"vue.volar",
"wejectchan.vue3-snippets-for-vscode",
"wmaurer.change-case",
"yatki.vscode-surround",
"yoavbls.pretty-ts-errors",
"Yseop.vscode-yseopml",
"zardoy.ts-essential-plugins"
]
}
Loading

0 comments on commit 4c25c77

Please sign in to comment.