Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CHORE] moved installation and cicd to bun #6

Merged
merged 2 commits into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,10 @@ jobs:
restore-keys: |
${{ runner.os }}-turbo-

- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- uses: oven-sh/setup-bun@v1

- name: Install dependencies
run: yarn
run: bun install

- name: Verify code quality
run: yarn verify
run: bun run verify
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ An application to help find missing people and animals. Serving as a central ban
# Installation

- Clone this repository
- Run `yarn` on the root repository
- Run `bun install` on the root repository
- Create `.env` file from `.env.example`
- Run `yarn dev --scope=app`
- Run `bun --bun run dev --scope=app`
2 changes: 1 addition & 1 deletion apps/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"format": "biome format --error-on-warnings ./src",
"verify": "biome check --error-on-warnings ./src",
"type-check": "tsc --noEmit",
"postinstall": "cd ../../ && yarn postinstall"
"postinstall": "cd ../../ && bun run postinstall"
},
"dependencies": {
"@clerk/localizations": "^2.4.5",
Expand Down
Binary file added bun.lockb
Binary file not shown.
79 changes: 42 additions & 37 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,44 @@
{
"name": "sharedway",
"private": true,
"scripts": {
"i": "yarn --frozen-lockfile --ignore-optional",
"build": "dotenv -- turbo build",
"dev": "dotenv -- turbo dev",
"lint": "turbo lint --",
"verify": "turbo verify --",
"format": "turbo format --",
"type-check": "turbo type-check",
"sync": "syncpack fix-mismatches --indent \"\t\"",
"clean": "turbo clean",
"component": "cd packages/ds && npx shadcn-ui@latest add",
"db": "cd packages/services && dotenv -e ../../.env -- yarn ",
"storybook": "cd packages/ds && yarn storybook",
"symlink": "symlink-dir ./public ./apps/app/public",
"postinstall": "yarn symlink && yarn db generate"
},
"prisma": {
"schema": "packages/database/prisma/schema.prisma",
"seed": "tsx packages/database/src/seed.ts"
},
"devDependencies": {
"@biomejs/biome": "1.8.2",
"@repo/config": "0.0.0",
"turbo": "2.0.4"
},
"engines": {
"node": ">=18"
},
"packageManager": "[email protected]",
"workspaces": ["apps/*", "packages/*"],
"dependencies": {
"dotenv-cli": "^7.4.1",
"symlink-dir": "^6.0.0",
"syncpack": "^12.3.2"
}
"name": "sharedway",
"private": true,
"scripts": {
"build": "dotenv -- turbo build",
"dev": "dotenv -- turbo dev",
"lint": "turbo lint --",
"verify": "turbo verify --",
"format": "turbo format --",
"type-check": "turbo type-check",
"sync": "syncpack fix-mismatches --indent \"\t\"",
"clean": "turbo clean",
"component": "cd packages/ds && npx shadcn-ui@latest add",
"db": "cd packages/services && dotenv -e ../../.env -- bun run ",
"storybook": "cd packages/ds && bun run storybook",
"symlink": "symlink-dir ./public ./apps/app/public",
"postinstall": "bun run symlink && bun run db generate"
},
"prisma": {
"schema": "packages/database/prisma/schema.prisma",
"seed": "tsx packages/database/src/seed.ts"
},
"devDependencies": {
"@biomejs/biome": "1.8.2",
"@repo/config": "0.0.0",
"turbo": "2.0.4"
},
"engines": {
"bun": ">=1.1.0"
},
"packageManager": "[email protected]",
"workspaces": ["apps/*", "packages/*"],
"dependencies": {
"dotenv-cli": "^7.4.1",
"symlink-dir": "^6.0.0",
"syncpack": "^12.3.2"
},
"trustedDependencies": [
"@biomejs/biome",
"@clerk/shared",
"@vercel/speed-insights",
"core-js-pure"
]
}
Loading