Skip to content

Commit

Permalink
refactor: monorepo alloy (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
KaviiSuri authored Oct 8, 2024
1 parent 588f5ac commit a3f49fc
Show file tree
Hide file tree
Showing 93 changed files with 10,813 additions and 11,096 deletions.
65 changes: 3 additions & 62 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,62 +1,3 @@
# Ignore IDE and editor config files
.idea/
.vscode/
.env


# Node dependencies - avoid copying node_modules (should be installed within the container)
node_modules/
.pnp
.pnp.js
.yarn/install-state.gz


# Test coverage reports
coverage/


# Next.js build outputs (we usually build inside Docker container)
.next/
out/


# Production build artifacts (we usually build inside Docker container)
build/


# Miscellaneous files
.DS_Store
*.pem


# Debug logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*


# Local environment files
.env*.local


# Vercel settings
.vercel/


# TypeScript build info files
*.tsbuildinfo
next-env.d.ts


# Additional common files and directories to exclude from Docker builds
logs/
*.log
.cache/
dist/
tmp/


# Dockerignore for Docker
.dockerignore
Dockerfile
Dockerfile.dev
node_modules
.vscode
.turbo
1 change: 0 additions & 1 deletion .env.example

This file was deleted.

6 changes: 0 additions & 6 deletions .eslintrc.json

This file was deleted.

64 changes: 64 additions & 0 deletions .github/workflows/lint-build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Lint, Build and Test

on:
push:
branches: ["main"]
pull_request:
types: [opened, synchronize]

jobs:
build:
name: Build and Test
timeout-minutes: 15
runs-on: ubuntu-latest
# To use Remote Caching, uncomment the next lines and follow the steps below.
# env:
# TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
# TURBO_TEAM: ${{ vars.TURBO_TEAM }}

steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Cache turbo build setup
uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- uses: pnpm/action-setup@v3
with:
version: 8

- name: Cache pnpm store
uses: actions/cache@v4
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Lint
run: pnpm lint

- name: Check Formatting
run: pnpm check:format

- name: Build
run: pnpm build

- name: Test
run: pnpm test
38 changes: 0 additions & 38 deletions .github/workflows/nextjs-lint-build.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/prettier-formatting-check.yml

This file was deleted.

53 changes: 25 additions & 28 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,41 +1,38 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# IDEs and editors
.idea/
.vscode/
# Dependencies
node_modules
.pnp
.pnp.js

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

# dependencies
/node_modules
/.pnp
.pnp.js
.yarn/install-state.gz
# Testing
coverage

# testing
/coverage
# Turbo
.turbo

# next.js
/.next/
/out/
# Vercel
.vercel

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

# misc
.DS_Store
*.pem

# debug
# Debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
# Misc
.DS_Store
*.pem
File renamed without changes.
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"eslint.workingDirectories": [
{
"mode": "auto"
}
]
}
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ To maintain the project's quality and consistency, please follow these guideline
## Create a branch for your change

```text
$ cd playground-web
$ cd alloy
#
# ensure you are starting from the latest code base
# the following steps, ensure your fork's (origin's) master is up-to-date
Expand Down
23 changes: 0 additions & 23 deletions Dockerfile

This file was deleted.

20 changes: 0 additions & 20 deletions Dockerfile.dev

This file was deleted.

Loading

0 comments on commit a3f49fc

Please sign in to comment.