Skip to content

Commit

Permalink
wip: add project structure
Browse files Browse the repository at this point in the history
  • Loading branch information
yvesfracari committed Sep 19, 2024
0 parents commit 8198e5c
Show file tree
Hide file tree
Showing 46 changed files with 14,554 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
**/node_modules/**
**/.next/**
**/__generated__/**
**/.vercel/**

**/lib/**
!.lintstagedrc.js
!.eslintrc.js
node_modules/
lib/
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/* eslint-env node */

module.exports = require("@bleu/eslint-config");
81 changes: 81 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# This is a comment.

# Each line is a file pattern followed by one or more owners.

# These owners will be the default owners for everything in

# the repo. Unless a later match takes precedence,

# @global-owner1 and @global-owner2 will be requested for

# review when someone opens a pull request.

- @ribeirojose @yvesfracari @mendesfabio @JeanNeiverth

# Order is important; the last matching pattern takes the most

# precedence. When someone opens a pull request that only

# modifies JS files, only @js-owner and not the global

# owner(s) will be requested for a review.

# \*.js @js-owner

# You can also use email addresses if you prefer. They'll be

# used to look up users just like we do for commit author

# emails.

# \*.go [email protected]

# Teams can be specified as code owners as well. Teams should

# be identified in the format @org/team-name. Teams must have

# explicit write access to the repository. In this example,

# the octocats team in the octo-org organization owns all .txt files.

# \*.txt @octo-org/octocats

# In this example, @doctocat owns any files in the build/logs

# directory at the root of the repository and any of its

# subdirectories.

# /build/logs/ @doctocat

# The `docs/*` pattern will match files like

# `docs/getting-started.md` but not further nested files like

# `docs/build-app/troubleshooting.md`.

# docs/\* [email protected]

# In this example, @octocat owns any file in an apps directory

# anywhere in your repository.

# apps/ @octocat

# In this example, @doctocat owns any file in the `/docs`

# directory in the root of your repository and any of its

# subdirectories.

# /docs/ @doctocat

# In this example, @octocat owns any file in the `/apps`

# directory in the root of your repository except for the `/apps/github`

# subdirectory, as its owners are left empty.

# /apps/ @octocat

# /apps/github
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
44 changes: 44 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: ci

on:
push:
branches:
- main
pull_request:

jobs:
run-linters:
name: Run linters
runs-on: ubuntu-latest
strategy:
fail-fast: true
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-lint
cancel-in-progress: true
steps:
- uses: actions/checkout@v3

- uses: ./.github/workflows/setup-pnpm
with:
npm_token: ${{ secrets.NPM_TOKEN }}

- name: Check formatting and linting
run: pnpm run ci

run-tests:
name: Run tests
runs-on: ubuntu-latest
strategy:
fail-fast: true
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-test
cancel-in-progress: true
steps:
- uses: actions/checkout@v3

- uses: ./.github/workflows/setup-pnpm
with:
npm_token: ${{ secrets.NPM_TOKEN }}

- name: Run tests
run: pnpm test:jest
18 changes: 18 additions & 0 deletions .github/workflows/setup-pnpm/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: setup JS dependencies
inputs:
npm_token:
description: "NPM token for authentication"
required: true
runs:
using: composite
steps:
- uses: pnpm/action-setup@v3
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version-file: ".tool-versions"
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
shell: bash
19 changes: 19 additions & 0 deletions .github/workflows/vercel-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Vercel Preview Deployment
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
on:
push:
branches-ignore:
- main
jobs:
Deploy-Preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Vercel CLI
run: npm install --global vercel@canary
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --token=${{ secrets.VERCEL_TOKEN }}
19 changes: 19 additions & 0 deletions .github/workflows/vercel-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Vercel Production Deployment
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
on:
push:
branches:
- main
jobs:
Deploy-Production:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Vercel CLI
run: npm install --global vercel@canary
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prod --token=${{ secrets.VERCEL_TOKEN }}
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
node_modules

.DS_Store

**.env*
!**.env.template

**.tsbuildinfo

.vscode
# Local Netlify folder
.netlify
.vercel
15 changes: 15 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
**/node_modules**

pnpm-lock.yaml

**/.next/**
**/.vercel/**
**/.vscode/**
**/.cache/**

**/__generated__/**
generated**

**/out/**

manifest.template.yaml
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodejs 20.9.0
Loading

0 comments on commit 8198e5c

Please sign in to comment.