Skip to content

Commit

Permalink
chore: Set up monorepo structure using pnpm workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
junkisai committed Oct 3, 2024
1 parent 22ea3c1 commit 0e5b7b4
Show file tree
Hide file tree
Showing 64 changed files with 6,450 additions and 3 deletions.
26 changes: 26 additions & 0 deletions frontend/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js
.yarn/install-state.gz

# testing
/coverage

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env*.local

# typescript
*.tsbuildinfo
next-env.d.ts
16 changes: 16 additions & 0 deletions frontend/.syncpackrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"versionGroups": [
{
"label": "Use workspace protocol (workspace packages)",
"dependencies": [
"@apps/*",
"@packages/*"
],
"dependencyTypes": [
"prod",
"dev"
],
"pinVersion": "workspace:*"
}
]
}
21 changes: 21 additions & 0 deletions frontend/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Frontend for Liam

## Getting Started

### Install npm package

```sh
corepack enable
corepack prepare
pnpm install
```

## Development

### for service-site

```sh
pnpm service-site dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
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.
4 changes: 4 additions & 0 deletions frontend/apps/service-site/next.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { withContentlayer } from 'next-contentlayer';
/** @type {import('next').NextConfig} */
const nextConfig = { reactStrictMode: true, images: { domains: ['localhost'] } };
export default withContentlayer(nextConfig)
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "service-site",
"version": "0.1.0",
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down Expand Up @@ -28,6 +28,5 @@
"eslint": "^8",
"eslint-config-next": "14.2.13",
"typescript": "^5"
},
"packageManager": "[email protected]+sha512.0a203ffaed5a3f63242cd064c8fb5892366c103e328079318f78062f24ea8c9d50bc6a47aa3567cabefd824d170e78fa2745ed1f16b132e16436146b7688f19b"
}
}
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.
14 changes: 14 additions & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "liam-frontend",
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "pnpm -F \"service-site\" dev",
"lint:packageVersion": "syncpack list-mismatches",
"service-site": "pnpm -F \"service-site\""
},
"packageManager": "[email protected]+sha512.0a203ffaed5a3f63242cd064c8fb5892366c103e328079318f78062f24ea8c9d50bc6a47aa3567cabefd824d170e78fa2745ed1f16b132e16436146b7688f19b",
"devDependencies": {
"syncpack": "^13.0.0"
}
}
Loading

0 comments on commit 0e5b7b4

Please sign in to comment.