Skip to content

Commit

Permalink
refactor: Change monorepo to monolithic
Browse files Browse the repository at this point in the history
- Add type module
- Change yarn to pnpm
  • Loading branch information
1ilsang committed Jan 13, 2024
1 parent 9eb1cf4 commit 93e9c3b
Show file tree
Hide file tree
Showing 153 changed files with 4,506 additions and 4,613 deletions.
File renamed without changes.
11 changes: 7 additions & 4 deletions .github/workflows/pr-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,17 @@ jobs:

strategy:
matrix:
node-version: [18.x]
node-version: [20.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "yarn"
- run: yarn --frozen-lockfile
- run: yarn lint
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: true
- run: pnpm lint
11 changes: 0 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,7 @@ dist
out
.next/

.turbo
.DS_Store

# TypeScript cache
*.tsbuildinfo

# For zero-install
# https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
.yarn/*
!.yarn/cache
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn lint
pnpm lint
3 changes: 2 additions & 1 deletion packages/scripts/mdlint/base.js → .markdownlint.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
module.exports = {
default: true,
MD001: false,
MD002: false,
Expand All @@ -15,3 +15,4 @@ module.exports = {
'no-hard-tabs': false,
whitespace: false,
};

File renamed without changes.
13 changes: 13 additions & 0 deletions .stylelintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module.exports = {
extends: 'stylelint-config-standard-scss',
rules: {
'at-rule-no-unknown': null,
'color-function-notation': null,
'scss/at-rule-no-unknown': [
true,
{
ignoreAtRules: ['tailwind'],
},
],
},
};
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion apps/blog/.eslintrc.js

This file was deleted.

1 change: 0 additions & 1 deletion apps/blog/.markdownlint.js

This file was deleted.

13 changes: 0 additions & 13 deletions apps/blog/.stylelintrc.json

This file was deleted.

51 changes: 0 additions & 51 deletions apps/blog/package.json

This file was deleted.

12 changes: 0 additions & 12 deletions apps/blog/tsconfig.json

This file was deleted.

File renamed without changes.
File renamed without changes.
63 changes: 50 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,64 @@
{
"name": "1ilsang.dev",
"packageManager": "[email protected]",
"packageManager": "[email protected]",
"private": true,
"version": "0.0.0",
"author": "1ilsang <[email protected]>",
"description": "https://1ilsang.dev",
"license": "MIT",
"workspaces": [
"apps/*",
"packages/**/*"
],
"type": "module",
"scripts": {
"blog": "yarn workspace blog",
"clean": "turbo run clean && rm -rf node_modules",
"lint": "turbo run lint",
"dev": "turbo run dev",
"deploy-blog": "turbo run deploy --filter=blog",
"prepare": "husky install"
"dev": "next dev",
"build": "next build",
"start": "next start",
"export": "next export",
"deploy-blog": "next build && next export",
"lint:stylelint": "stylelint --config './.stylelintrc.cjs' './src/**/*.scss'",
"lint:prettier": "prettier --list-different './{src,_data}/**/*.{json,html,yml,tsx,ts,js,jsx,scss}'",
"lint:eslint": "eslint --ext .ts,.tsx,.js,.jsx './src/**/*.{js,jsx,ts,tsx}'",
"lint:markdown": "markdownlint --config './.markdownlint.cjs' './_posts/*.{md,mdx}'",
"lint:typeCheck": "tsc --pretty",
"lint": "FORCE_COLOR=1 npm-run-all -p --print-label 'lint:**'",
"clean": "rm -rf .next out node_modules",
"prepare": "husky install",
"preinstall": "npx only-allow pnpm"
},
"dependencies": {
"classnames": "^2.3.2",
"gray-matter": "4.0.3",
"next": "13.4.19",
"react": "18.2.0",
"react-dom": "18.2.0",
"rehype-autolink-headings": "^6.1.1",
"rehype-highlight": "^6.0.0",
"rehype-slug": "^5.1.0",
"rehype-stringify": "^9.0.3",
"remark-html": "15.0.2",
"remark-parse": "^10.0.1",
"remark-rehype": "^10.1.0",
"sass": "1.66.1",
"unified": "^10.1.2"
},
"devDependencies": {
"@types/node": "18.17.13",
"@types/react": "18.2.21",
"@types/react-dom": "18.2.7",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"autoprefixer": "10.4.15",
"eslint": "^8.15.0",
"eslint-config-next": "^13.0.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-react": "^7.29.4",
"husky": "8.0.3",
"markdownlint": "0.30.0",
"markdownlint-cli": "0.35.0",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.33",
"prettier": "^3.0.0",
"typescript": "5.2.2",
"turbo": "^1.10.13"
"stylelint": "^16.1.0",
"stylelint-config-standard-scss": "^13.0.0",
"tailwindcss": "3.3.3",
"typescript": "5.2.2"
}
}
Empty file removed packages/logger/.gitkeep
Empty file.
20 changes: 0 additions & 20 deletions packages/scripts/eslint/package.json

This file was deleted.

19 changes: 0 additions & 19 deletions packages/scripts/mdlint/package.json

This file was deleted.

10 changes: 0 additions & 10 deletions packages/scripts/tsconfig/package.json

This file was deleted.

23 changes: 0 additions & 23 deletions packages/scripts/tsconfig/preact.json

This file was deleted.

5 changes: 0 additions & 5 deletions packages/ui/tsconfig.json

This file was deleted.

Loading

0 comments on commit 93e9c3b

Please sign in to comment.