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

Move to a monorepo #155

Merged
merged 26 commits into from
Jan 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
90e2f6f
feat(create-turbo): apply pnpm-eslint transform
turbobot-temp Jan 4, 2024
32893d9
feat(create-turbo): install dependencies
turbobot-temp Jan 4, 2024
772d37e
chore: Basic Turborepo shell
FleetAdmiralJakob Jan 4, 2024
1468667
chore: Removed some packages. Added our UI. Added some other files
FleetAdmiralJakob Jan 4, 2024
de2bd14
chore: Added the main website from Weather.io
FleetAdmiralJakob Jan 4, 2024
ff06dcd
deps: Added some missing dependencies
FleetAdmiralJakob Jan 4, 2024
377e9fc
chore: Made some pages eslint compliant
FleetAdmiralJakob Jan 4, 2024
77402e7
fix: Fixed a bug for the moon phase
FleetAdmiralJakob Jan 4, 2024
3c15e2c
style: format code with Prettier and StandardJS
deepsource-autofix[bot] Jan 4, 2024
2123572
chore: Removed the funding part
FleetAdmiralJakob Jan 4, 2024
deb69c5
chore: Optimized types
FleetAdmiralJakob Jan 4, 2024
12b46d9
chore: Updated ESLint file and made some pages ESLint compliant
FleetAdmiralJakob Jan 5, 2024
9a24ea0
style: format code with Prettier and StandardJS
deepsource-autofix[bot] Jan 5, 2024
595f60e
chore: Added some E2E tests
FleetAdmiralJakob Jan 5, 2024
2550f12
chore: Moved playwright to the root package.json
FleetAdmiralJakob Jan 5, 2024
beef90d
deps: Added dayjs
FleetAdmiralJakob Jan 5, 2024
cd5118f
deps: Updated ESLint
FleetAdmiralJakob Jan 5, 2024
935894b
style: format code with Prettier and StandardJS
deepsource-autofix[bot] Jan 5, 2024
2a2218a
chore: Added the dependency of the web app to the e2e web test
FleetAdmiralJakob Jan 5, 2024
fb39f70
Merge remote-tracking branch 'origin/move-to-turborepo' into move-to-…
FleetAdmiralJakob Jan 5, 2024
067a461
chore: Added react to the ui package
FleetAdmiralJakob Jan 5, 2024
5842c4c
chore: Fixed link and typecheck errors
FleetAdmiralJakob Jan 5, 2024
7576e5a
style: format code with Prettier and StandardJS
deepsource-autofix[bot] Jan 5, 2024
e73cc81
deps: Added the type definition for react in the ui package
FleetAdmiralJakob Jan 5, 2024
1b961e7
Merge remote-tracking branch 'origin/move-to-turborepo' into move-to-…
FleetAdmiralJakob Jan 5, 2024
5e19300
deps: Moved the type definition for react in the ui package into the …
FleetAdmiralJakob Jan 5, 2024
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
25 changes: 0 additions & 25 deletions .eslintrc.cjs

This file was deleted.

4 changes: 0 additions & 4 deletions .fleet/run.json

This file was deleted.

37 changes: 37 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: 🐞 Bug Report
description: Create a bug report to help us improve
title: "bug: "
labels: ["🐞❔ unconfirmed bug"]
body:
- type: textarea
attributes:
label: Provide environment information
description: |
Run this command in your project root and paste the results in a code block:
```bash
npx envinfo --system --binaries
```
validations:
required: true
- type: textarea
attributes:
label: Describe the bug
description: A clear and concise description of the bug, as well as what you expected to happen when encountering it.
validations:
required: true
- type: input
attributes:
label: Link to reproduction
description: Please provide a link to a reproduction of the bug. Issues without a reproduction repo may be ignored.
validations:
required: true
- type: textarea
attributes:
label: To reproduce
description: Describe how to reproduce your bug. Steps, code snippets, reproduction repos etc.
validations:
required: true
- type: textarea
attributes:
label: Additional information
description: Add any other information related to the bug here, screenshots if applicable.
28 changes: 28 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This template is heavily inspired by the Next.js's template:
# See here: https://github.com/vercel/next.js/tree/canary/.github/ISSUE_TEMPLATE

name: 🛠 Feature Request
description: Create a feature request for the core packages
title: "feat: "
labels: ["✨ enhancement"]
body:
- type: markdown
attributes:
value: |
Thank you for taking the time to file a feature request. Please fill out this form as completely as possible.
- type: textarea
attributes:
label: Describe the feature you'd like to request
description: Please describe the feature as clear and concise as possible. Remember to add context as to why you believe this feature is needed.
validations:
required: true
- type: textarea
attributes:
label: Describe the solution you'd like to see
description: Please describe the solution you would like to see. Adding example usage is a good way to provide context.
validations:
required: true
- type: textarea
attributes:
label: Additional information
description: Add any other information related to the feature here. If your feature request is related to any issues or discussions, link them here.
11 changes: 0 additions & 11 deletions .github/dependabot.yml

This file was deleted.

13 changes: 13 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:base"],
"packageRules": [
{
"matchPackagePatterns": ["^@weatherio/"],
"enabled": false
}
],
"updateInternalDeps": true,
"rangeStrategy": "bump",
"automerge": true
}
57 changes: 57 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: CI

on:
pull_request:
branches: ["*"]
push:
branches: ["main"]
merge_group:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}

# You can leverage Vercel Remote Caching with Turbo to speed up your builds
# @link https://turborepo.org/docs/core-concepts/remote-caching#remote-caching-on-vercel-builds
env:
FORCE_COLOR: 3
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup
uses: ./tooling/github/setup

- name: Copy env
shell: bash
run: cp .env.example .env

- name: Lint
run: pnpm lint && pnpm lint:ws

format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup
uses: ./tooling/github/setup

- name: Format
run: pnpm format

typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup
uses: ./tooling/github/setup

- name: Typecheck
run: pnpm typecheck
4 changes: 3 additions & 1 deletion .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
- name: Install dependencies
run: npm install -g pnpm && pnpm install
- name: Install Playwright Browsers
Expand All @@ -27,6 +27,7 @@ jobs:
UPSTASH_RATELIMITER_TIME_INTERVAL: ${{ secrets.UPSTASH_RATELIMITER_TIME_INTERVAL }},
RESEND_API_KEY: ${{ secrets.RESEND_API_KEY }},
QWEATHER_API_KEY: ${{ secrets.QWEATHER_API_KEY }},
API_NINJA_API_KEY: ${{ secrets.API_NINJA_API_KEY }},
- name: Test
run: pnpm e2e:test
env:
Expand All @@ -37,6 +38,7 @@ jobs:
UPSTASH_RATELIMITER_TIME_INTERVAL: ${{ secrets.UPSTASH_RATELIMITER_TIME_INTERVAL }},
RESEND_API_KEY: ${{ secrets.RESEND_API_KEY }},
QWEATHER_API_KEY: ${{ secrets.QWEATHER_API_KEY }},
API_NINJA_API_KEY: ${{ secrets.API_NINJA_API_KEY }},
- uses: actions/upload-artifact@v4
if: always()
with:
Expand Down
38 changes: 18 additions & 20 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,24 +1,20 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

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

# testing
/coverage

# database
/prisma/db.sqlite
/prisma/db.sqlite-journal
coverage

# next.js
/.next/
/out/
.next/
out/
next-env.d.ts

# production
/build
build

# misc
.DS_Store
Expand All @@ -31,7 +27,6 @@ yarn-error.log*
.pnpm-debug.log*

# local env files
# do not commit any .env files to git, except for the .env.example file. https://create.t3.gg/en/usage/env-variables#using-environment-variables
.env
.env*.local

Expand All @@ -56,15 +51,18 @@ yarn-error.log*
/../../Weather-App\.idea/codestream.xml
/.fleet

# turbo
.turbo

# PWA files
/public/sw.js
/public/sw.js.map
/public/workbox-*.js
/public/workbox-*.js.map
/public/fallback-*.js
/apps/web/public/sw.js
/apps/web/public/sw.js.map
/apps/web/public/workbox-*.js
/apps/web/public/workbox-*.js.map
/apps/web/public/fallback-*.js

# Playwright
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
test-results
playwright-report
blob-report
playwright/.cache
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/Weather-App.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/jsLibraryMappings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/prettier.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<img src="public/og-image.png" min-width="200px" max-width="250px" width="400px" align="right" alt="Computer">
<img src="/apps/web/public/og-image.png" min-width="200px" max-width="250px" width="400px" align="right" alt="Computer">

# Weather.io

Expand Down
Loading
Loading