Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Simplify final project setup #194

Draft
wants to merge 3 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
5 changes: 0 additions & 5 deletions .eslintignore

This file was deleted.

28 changes: 0 additions & 28 deletions .eslintrc

This file was deleted.

16 changes: 9 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,19 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Use Node.js 17.3.x
uses: actions/setup-node@v1
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 17.3.x
node-version: 18
- run: yarn
env:
CI: true
- run: |
cp ./packages/server/.env.example ./packages/server/.env
cp ./packages/client/.env.example ./packages/client/.env
- name: Build client
run: yarn workspace client build
- name: Run client tests
run: echo Skipping client tests for now
- run: |
cp ./packages/server/.env.example ./packages/server/.env
- name: Build server
run: yarn workspace server build
37 changes: 4 additions & 33 deletions .github/workflows/migrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,46 +9,17 @@ on:
jobs:
build:
runs-on: ubuntu-latest
services:
mysql:
image: mysql:8
env:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: test
ports:
- 33306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3

steps:
- uses: actions/checkout@v2
- name: Verify DB connection
env:
PORT: 33306
run: |
while ! mysqladmin ping -h"127.0.0.1" -P"$PORT" --silent; do
sleep 1
done
- name: Use Node.js 17.3.x
uses: actions/setup-node@v1
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 17.3.x
node-version: 18
- run: yarn
env:
CI: true
- name: Run DB Migrations
run: yarn workspace server db:setup
env:
MYSQL_HOST: '127.0.0.1'
MYSQL_PORT: 33306
MYSQL_USER: 'root'
MYSQL_PASSWORD: 'password'
MYSQL_DATABASE: 'test'
- name: Run DB Migrations Rollback
run: yarn workspace server db:clean
env:
MYSQL_HOST: '127.0.0.1'
MYSQL_PORT: 33306
MYSQL_USER: 'root'
MYSQL_PASSWORD: 'password'
MYSQL_DATABASE: 'test'

14 changes: 7 additions & 7 deletions .github/workflows/static-code-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 17.3.x
uses: actions/setup-node@v1
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 17.3.x
node-version: 18
- run: yarn
- run: yarn run prettier:check
env:
CI: true
- run: yarn run lint
env:
CI: true
# - run: yarn run lint
# env:
# CI: true
- run: yarn run stylelint:check
env:
CI: true
10 changes: 5 additions & 5 deletions .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Use Node.js 17.3.x
uses: actions/setup-node@v1
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 17.3.x
node-version: 18
- run: yarn install
env:
CI: true
- name: Run Storybook
run: yarn workspace client run storybook -- --ci --smoke-test --quiet
run: yarn workspace client run storybook --ci --smoke-test --quiet
86 changes: 6 additions & 80 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,59 +16,19 @@ pids
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

Expand All @@ -79,46 +39,6 @@ web_modules/
.env.production.local
.env.local

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# vuepress v2.x temp and cache directory
.temp
.cache

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

Expand All @@ -134,3 +54,9 @@ dist

# IDE files
.idea

# SQLite Storage
*.db3

# Builds
dist
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

5 changes: 0 additions & 5 deletions .huskyrc

This file was deleted.

1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v17.3.0
v18
5 changes: 2 additions & 3 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Ignore artifacts:
/build
/coverage
/storybook-static
dist
storybook-static
1 change: 0 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"printWidth": 80,
"singleQuote": true,
"arrowParens": "always",
"trailingComma": "all",
Expand Down
3 changes: 3 additions & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Ignore artifacts:
dist
storybook-static
1 change: 0 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"recommendations": [
"ban.spellright",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"ms-vsliveshare.vsliveshare"
Expand Down
873 changes: 873 additions & 0 deletions .yarn/releases/yarn-3.4.1.cjs

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-3.4.1.cjs

supportedArchitectures:
os:
- arm64
- x64
1 change: 0 additions & 1 deletion Procfile

This file was deleted.

Loading