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

migrate to turborepo #25

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
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
3 changes: 0 additions & 3 deletions .editorconfig

This file was deleted.

32 changes: 0 additions & 32 deletions .eslintrc.js

This file was deleted.

5 changes: 0 additions & 5 deletions .firebaserc

This file was deleted.

34 changes: 0 additions & 34 deletions .gcloudignore

This file was deleted.

49 changes: 49 additions & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Deploy

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v2
with:
node-version: 14.x
cache: "yarn"
- run: yarn install --frozen-lockfile
- run: yarn lint

test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 14.x
cache: "yarn"
- run: yarn install --frozen-lockfile
- run: yarn test

build:
runs-on: ubuntu-latest

needs: [lint, test]

steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 14.x
cache: "yarn"
- run: yarn install --frozen-lockfile
- run: yarn build
36 changes: 0 additions & 36 deletions .github/workflows/firestore.yml

This file was deleted.

65 changes: 0 additions & 65 deletions .github/workflows/node.js.yml

This file was deleted.

27 changes: 10 additions & 17 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
node_modules
.pnp
.pnp.js

# testing
/coverage
coverage

# next.js
/.next/
/out/

# production
/build
.next/
out/
build
dist/

# misc
.DS_Store
Expand All @@ -23,19 +22,13 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local

# vercel
.vercel

# logs
*.log

# cypress
cypress/videos/**/*.mp4
cypress/screenshots/**/*.png
# turbo
.turbo
24 changes: 0 additions & 24 deletions Dockerfile

This file was deleted.

20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
# @streamdevs/platform
# 🧽 @streamdevs/platform [![Deploy](https://github.com/streamdevs/platform/actions/workflows/cicd.yml/badge.svg)](https://github.com/streamdevs/platform/actions/workflows/cicd.yml)

This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
This project is a monorepo managed with [turborepo](https://turborepo.org/).

## Getting Started
## Project structure

First, run the development server:
- 📂 `.github/workflows` contains the configuration to lint, test and build the repo on each merge with the main branch using GitHub Actions.
- 📂 `apps`
- 💾 [`apps/platform`](./apps/app/README.md) contains a NEXT.js project with the main app.
- 📂 `packages`
- 💾 [`packages/tsconfig`](./packages/tsconfig/README.md) contains the common tsconfig files.
- 💾 [`packages/ui`](./packages/ui/README.md) contains the ui library with [storybook](https://storybook.js.org/).

```bash
yarn dev
```
## License

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
This project is under the [CC-BY 4.0](https://github.com/streamdevs/platform/blob/main/license.md) license
clear
5 changes: 5 additions & 0 deletions apps/platform/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
TWITCH_CLIENT_ID=""
TWITCH_CLIENT_SECRET=""

NEXTAUTH_SECRET="p4g/t5nAOspYi96TFu0vEOOM5eItxjQsyUIYiIxu9k8="
NEXTAUTH_URL="http://localhost:3000/"
6 changes: 6 additions & 0 deletions apps/platform/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": ["@santima10/eslint-config/nextjs"],
"env": {
"node": true
}
}
28 changes: 28 additions & 0 deletions apps/platform/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# 🚀 `platform`

This is a [NEXT.js](https://nextjs.org/) project bootstrapped with [create-next-app](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).

## Getting Started

### Configuration

#### 🔑 Auth

In order to use the social providers you need to add a client secret and client id in the .env The recommendation is to copy that file to a .env.local file to prevent you to push your credentials to the repo.

The structure for the env vars is always the same: [PROVIDER]_CLIENT_ID and [PROVIDER]_CLIENT_SECRET, simply substitute [PROVIDER] with the name of the provider all in capital letters.

- [Twitch Auth](https://next-auth.js.org/providers/twitch)

### 🧑‍💻 Development

First, run the development server:

```
yarn install

yarn dev
```

Open http://localhost:3000 with your browser to see the result.

5 changes: 5 additions & 0 deletions apps/platform/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
6 changes: 6 additions & 0 deletions apps/platform/next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/* eslint-disable @typescript-eslint/no-var-requires */
const withTM = require('next-transpile-modules')(['ui']);

module.exports = withTM({
reactStrictMode: true,
});
Loading