Skip to content

Commit

Permalink
Merge pull request #6 from websitesieutoc/change-to-use-yarn
Browse files Browse the repository at this point in the history
Change to use yarn
  • Loading branch information
sangdth authored Aug 24, 2023
2 parents 5195301 + 0c0492f commit f3ec6a8
Show file tree
Hide file tree
Showing 10 changed files with 11,911 additions and 13,197 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/code-checking.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,16 @@ jobs:
with:
fetch-depth: 2

- name: Setup pnpm
uses: pnpm/action-setup@v2

- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 18
cache: "pnpm"

- name: Install dependencies
run: pnpm i --frozen-lockfile
run: yarn install --immutable

- name: Linting
run: pnpm run lint
run: yarn lint

- name: Checking TypeScript
run: pnpm run typecheck
run: yarn typecheck
48 changes: 13 additions & 35 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
# Turborepo starter
# Website Sieutoc Template

This is an official starter Turborepo.
This is an official template from Website Sieutoc.


## Using this template

### One click installation on Railway

[![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/template/sHpSCp?referralCode=pwTZMY)

## Using this example
### Self hosted installation


## Development

Run the following command:

Expand Down Expand Up @@ -40,7 +48,7 @@ To build all apps and packages, run the following command:

```
cd my-turborepo
pnpm build
npm run build
```

### Develop
Expand All @@ -49,35 +57,5 @@ To develop all apps and packages, run the following command:

```
cd my-turborepo
pnpm dev
```

### Remote Caching

Turborepo can use a technique known as [Remote Caching](https://turbo.build/repo/docs/core-concepts/remote-caching) to share cache artifacts across machines, enabling you to share build caches with your team and CI/CD pipelines.

By default, Turborepo will cache locally. To enable Remote Caching you will need an account with Vercel. If you don't have an account you can [create one](https://vercel.com/signup), then enter the following commands:

```
cd my-turborepo
npx turbo login
```

This will authenticate the Turborepo CLI with your [Vercel account](https://vercel.com/docs/concepts/personal-accounts/overview).

Next, you can link your Turborepo to your Remote Cache by running the following command from the root of your Turborepo:

```
npx turbo link
npm run dev
```

## Useful Links

Learn more about the power of Turborepo:

- [Tasks](https://turbo.build/repo/docs/core-concepts/monorepos/running-tasks)
- [Caching](https://turbo.build/repo/docs/core-concepts/caching)
- [Remote Caching](https://turbo.build/repo/docs/core-concepts/remote-caching)
- [Filtering](https://turbo.build/repo/docs/core-concepts/monorepos/filtering)
- [Configuration Options](https://turbo.build/repo/docs/reference/configuration)
- [CLI Usage](https://turbo.build/repo/docs/reference/command-line-reference)
2 changes: 1 addition & 1 deletion apps/backend/nixpacks.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[phases.build]
cmds = ['pnpm --filter backend run build']
cmds = ['yarn workspace backend build']
2 changes: 1 addition & 1 deletion apps/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"devDependencies": {
"@strapi/typescript-utils": "4.12.5",
"eslint": "8.47.0",
"eslint-config-custom": "workspace:*",
"eslint-config-custom": "*",
"typescript": "5.1.6"
},
"strapi": {
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend/nixpacks.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[phases.build]
cmds = ['pnpm --filter frontend run build']
cmds = ['yarn workspace frontend build']
4 changes: 2 additions & 2 deletions apps/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
"@types/react": "18.2.20",
"@types/react-dom": "18.2.7",
"eslint": "8.47.0",
"eslint-config-custom": "workspace:*",
"eslint-config-custom": "*",
"eslint-config-next": "13.4.19",
"tsconfig": "workspace:*",
"tsconfig": "*",
"typescript": "5.1.6"
}
}
12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "sieutoc-template",
"version": "0.0.0",
"license": "MIT",
"private": true,
"description": "A default template for Website Sieu Toc",
"homepage": "https://websitesieutoc.com/",
"author": {
Expand All @@ -20,13 +21,16 @@
"@turbo/gen": "1.10.12",
"dotenv-cli": "7.3.0",
"eslint": "7.32.0",
"eslint-config-custom": "workspace:*",
"eslint-config-custom": "*",
"prettier": "2.5.1",
"turbo": "1.10.12"
},
"engines": {
"node": ">=18",
"pnpm": ">=8"
"node": "18"
},
"packageManager": "[email protected]"
"packageManager": "[email protected]",
"workspaces": [
"packages/*",
"apps/*"
]
}
Loading

0 comments on commit f3ec6a8

Please sign in to comment.