Skip to content

Commit

Permalink
Switch to monorepo
Browse files Browse the repository at this point in the history
- Add pnpm-workspace.yaml
- Move current project items into packages/simple/
- Install turborepo
  • Loading branch information
kitsuyui committed Jan 20, 2024
1 parent 5c7ac38 commit 414ae29
Show file tree
Hide file tree
Showing 22 changed files with 1,899 additions and 81 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
${{ runner.os }}-nextjs-
- name: Install dependencies
run: pnpm install
run: pnpm install -r

- name: Check all
run: pnpm lint
Expand Down
10 changes: 6 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# Generated by gitignore.in
# Edit .gitignore.in instead of this file
# Run `gitignore.in` to build .gitignore
# #!/usr/bin/env bash
# # `gibo list' and `gi list'
# -----------------------------------------------------------------------------
# gibo dump Linux
### Generated by gibo (https://github.com/simonwhitaker/gibo)
Expand Down Expand Up @@ -260,6 +258,10 @@ next-env.d.ts

# End of https://www.toptal.com/developers/gitignore/api/nextjs
# -----------------------------------------------------------------------------
cypress/videos/
**/cypress/videos/
# -----------------------------------------------------------------------------
cypress/screenshots/
**/cypress/screenshots/
# -----------------------------------------------------------------------------
.turbo
# -----------------------------------------------------------------------------
**/typedocs/
Expand Down
11 changes: 4 additions & 7 deletions .gitignore.in
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
#!/usr/bin/env bash
set -euo pipefail
cd "${0%/*}" && exec > .gitignore
gi() { curl -L -s https://www.gitignore.io/api/"$*"; }
# `gibo list' and `gi list'
gibo dump Linux
gibo dump Windows
gibo dump macOS
gibo dump Node
gi nextjs
echo 'cypress/videos/'
echo 'cypress/screenshots/'
echo '**/cypress/videos/'
echo '**/cypress/screenshots/'
echo '.turbo'
echo '**/typedocs/'
8 changes: 7 additions & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@
}
},
"files": {
"ignore": ["node_modules/**", ".next/**", "build/**", "pnpm-lock.yaml"]
"ignore": [
"**/node_modules/**",
"**/typedocs/**",
"**/.next/**",
"**/build/**",
"**/pnpm-lock.yaml"
]
}
}
25 changes: 7 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,18 @@
{
"name": "playground",
"version": "0.1.0",
"private": true,
"version": "0.1.0",
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"test": "cypress run",
"dev": "turbo dev",
"build": "turbo build",
"start": "turbo start",
"test": "turbo test",
"lint": "biome check .",
"format": "biome check --apply ."
},
"dependencies": {
"autoprefixer": "10.4.17",
"next": "14.1.0",
"postcss": "8.4.33",
"react": "18.2.0",
"react-dom": "18.2.0"
},
"devDependencies": {
"@types/node": "20.11.5",
"@types/react": "18.2.48",
"@types/react-dom": "18.2.18",
"@biomejs/biome": "^1.5.2",
"cypress": "^13.6.3",
"typedoc": "^0.25.7",
"typescript": "5.3.3"
"turbo": "^1.11.3"
}
}
}
File renamed without changes.
File renamed without changes.
6 changes: 1 addition & 5 deletions next.config.js → packages/simple/next.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
appDir: true,
},
}
const nextConfig = {}

module.exports = nextConfig
26 changes: 26 additions & 0 deletions packages/simple/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "simple",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"test": "cypress run"
},
"dependencies": {
"autoprefixer": "10.4.17",
"next": "14.1.0",
"postcss": "8.4.33",
"react": "18.2.0",
"react-dom": "18.2.0"
},
"devDependencies": {
"@types/node": "20.11.5",
"@types/react": "18.2.48",
"@types/react-dom": "18.2.18",
"@biomejs/biome": "^1.5.2",
"typedoc": "^0.25.7",
"typescript": "5.3.3"
}
}
Loading

0 comments on commit 414ae29

Please sign in to comment.