Skip to content

Commit

Permalink
feat: Initialize repository
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Sep 1, 2023
0 parents commit e259180
Show file tree
Hide file tree
Showing 12 changed files with 1,414 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.d.ts
prisma.generated/
42 changes: 42 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI

on:
push:
branches: ["main"]
pull_request:
types: [opened, synchronize]

jobs:
build:
name: Build and Test
timeout-minutes: 15
runs-on: ubuntu-latest
# To use Remote Caching, uncomment the next lines and follow the steps below.
# env:
# TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
# TURBO_TEAM: ${{ vars.TURBO_TEAM }}

steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 2

- uses: pnpm/action-setup@v2.0.1
with:
version: 6.32.2

- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 18
cache: "pnpm"

- name: Install dependencies
run: pnpm install

# - name: Build
# run: pnpm build

- name: Test
run: pnpm test:ci
23 changes: 23 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.next
.yarn/
node_modules
.DS_Store
.env
# custom binaries
.bin
# Turbo
.turbo

# Docker data
/.docker-data/*
!/.docker-data/.gitkeep

# We use custom path for prisma
prisma.generated/

# Prevent CLI tools from adding these files automatically
package-lock.json
yarn/lock


*.tsbuildinfo
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.d.ts
pnpm-lock.yaml
3 changes: 3 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
plugins: ["prettier-plugin-tailwindcss"],
};
15 changes: 15 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"editor.formatOnSave": true,
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/Thumbs.db": true,
"**/.next": true,
"**/.turbo": true,
"**/.vercel": true,
"**/.swc": true
}
}
13 changes: 13 additions & 0 deletions cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"words": [
"Dudy",
"dudykr",
"nextauth",
"nextjs",
"Nextra",
"tailwindcss",
"topo",
"upsert",
"webp"
]
}
36 changes: 36 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"name": "@dudykr/oss-services",
"packageManager": "pnpm@8.6.3",
"private": true,
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"prepare": "husky install",
"dev": "turbo run dev",
"build": "turbo run build",
"start": "turbo run start",
"lint": "turbo run lint",
"test": "turbo run test",
"test:ci": "turbo run test:ci"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"eslint": "8.23.0",
"eslint-plugin-simple-import-sort": "^9.0.0",
"husky": "^8.0.1",
"lint-staged": "^13.0.3",
"prettier": "^2.7.1",
"prettier-plugin-tailwindcss": "^0.1.13",
"turbo": "^1.10.12"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"eslint --fix",
"prettier --write"
],
"**/*": "prettier --write --ignore-unknown"
}
}
Loading

0 comments on commit e259180

Please sign in to comment.