Skip to content

Commit

Permalink
chore: 프로젝트 초기 환경성정
Browse files Browse the repository at this point in the history
  • Loading branch information
ddanmuji committed Oct 23, 2023
1 parent e399dca commit d25e84c
Show file tree
Hide file tree
Showing 14 changed files with 1,343 additions and 83 deletions.
6 changes: 6 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
root = true

[*]
charset = utf-8
indent_size = 2
indent_style = tab
44 changes: 44 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Ignore build files and node_modules
**/build/**
**/dist/**
**/coverage/**
**/node_modules/**

# Ignore files and directories generated by popular bundlers
**/*.min.js
**/*.min.css
**/__tests__/
**/__mocks__/
**/__snapshots__/
**/tests/
**/test-helpers/
**/storybook-static/

# Ignore configuration files
**/.babelrc
**/.eslintrc
**/.stylelintrc

# Ignore logs, build artifacts and other user-generated files
**/*.log
**/*.log.*
**/yarn.lock
**/*.lock
**/*.gz
**/coverage/
**/lib-cov/
**/npm-debug.log*
**/.idea/
**/.vscode/
**/.cache/
**/.DS_Store
**/.history
**/public/
**/dist/
**/build/
**/coverage/
**/storybook-static/
**/tmp/
**/.next/
**/out/
**/cache/
26 changes: 26 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"root": true,
"env": {
"node": true,
"jest": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint/eslint-plugin"
],
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"ignorePatterns": [".eslintrc"],
"rules": {
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off"
}
}
25 changes: 0 additions & 25 deletions .eslintrc.js

This file was deleted.

13 changes: 13 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Deploy to cloudtype

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
44 changes: 13 additions & 31 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,35 +1,17 @@
# compiled output
/dist
/node_modules
# Ignore node_modules directory
**/node_modules

# Logs
logs
*.log
npm-debug.log*
pnpm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
# Ignore build directories
**/build
**/dist

# OS
.DS_Store
# Ignore editor files and directories
**/.vscode/
**/.idea/
**/*.log

# Tests
/coverage
/.nyc_output
# Ignore package-lock.json files
**/package-lock.json

# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
# Ignore .DS_Store files
**/.DS_Store
6 changes: 6 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh

. "$(dirname -- "$0")/_/husky.sh"

echo "\033[32m" 커밋메세지 유효성 검사 진행 중 입니다! "\033[m"
pnpm commitlint --edit $1
6 changes: 6 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh

. "$(dirname "$0")/_/husky.sh"

echo "\033[32m" 커밋을 시작합니다! "\033[m"
pnpm lint-staged
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18.12.1
18 changes: 18 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
**/node_modules
**/coverage
**/build
**/dist

**/.eslintrc
**/.eslintignore
**/.prettierignore

*.log
*.lock
*.swp
*.DS_Store

.husky/*
scripts/*

.nvmrc
11 changes: 9 additions & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
{
"arrowParens": "avoid",
"bracketSpacing": true,
"endOfLine": "auto",
"semi": true,
"singleQuote": true,
"trailingComma": "all"
}
"tabWidth": 2,
"trailingComma": "none",
"printWidth": 120,
"useTabs": true
}
3 changes: 3 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
};
67 changes: 45 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,41 @@
{
"name": "coplore_icons-api",
"version": "0.0.1",
"description": "",
"author": "",
"private": true,
"license": "UNLICENSED",
"version": "0.0.1",
"description": "coplore icons api server repository",
"author": "chan9yu <[email protected]>",
"repository": {
"type": "git",
"url": "https://github.com/coplore/coplore_icons-api/"
},
"lint-staged": {
"**/*.{ts,tsx}": [
"eslint --fix",
"prettier --write"
]
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"jest": {
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": "src",
"testRegex": ".*\\.spec\\.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"collectCoverageFrom": [
"**/*.(t|j)s"
],
"coverageDirectory": "../coverage",
"testEnvironment": "node"
},
"scripts": {
"build": "nest build",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
Expand All @@ -17,16 +48,22 @@
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "jest --config ./test/jest-e2e.json"
"test:e2e": "jest --config ./test/jest-e2e.json",
"commit": "pnpm git-cz",
"prepare": "husky install",
"husky:permission": "chmod +x .husky/*"
},
"dependencies": {
"@nestjs/common": "^9.0.0",
"@nestjs/core": "^9.0.0",
"@nestjs/platform-express": "^9.0.0",
"cors": "^2.8.5",
"reflect-metadata": "^0.1.13",
"rxjs": "^7.2.0"
},
"devDependencies": {
"@commitlint/cli": "^18.0.0",
"@commitlint/config-conventional": "^18.0.0",
"@nestjs/cli": "^9.0.0",
"@nestjs/schematics": "^9.0.0",
"@nestjs/testing": "^9.0.0",
Expand All @@ -36,10 +73,13 @@
"@types/supertest": "^2.0.11",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"commitizen": "^4.3.0",
"eslint": "^8.0.1",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"husky": "^8.0.3",
"jest": "29.5.0",
"lint-staged": "^15.0.2",
"prettier": "^2.3.2",
"source-map-support": "^0.5.20",
"supertest": "^6.1.3",
Expand All @@ -48,22 +88,5 @@
"ts-node": "^10.0.0",
"tsconfig-paths": "4.2.0",
"typescript": "^4.7.4"
},
"jest": {
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": "src",
"testRegex": ".*\\.spec\\.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"collectCoverageFrom": [
"**/*.(t|j)s"
],
"coverageDirectory": "../coverage",
"testEnvironment": "node"
}
}
Loading

0 comments on commit d25e84c

Please sign in to comment.