Skip to content

Commit

Permalink
Merge pull request #80 from EpicsDAO/adding/doc
Browse files Browse the repository at this point in the history
moved the solv-doc to this monorepo
  • Loading branch information
KishiTheMechanic authored Feb 29, 2024
2 parents 813b50b + 17ac2f7 commit 30beb5c
Show file tree
Hide file tree
Showing 326 changed files with 18,968 additions and 692 deletions.
4 changes: 3 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.next
out
dist
build
build
.eslintrc.js
89 changes: 89 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
module.exports = {
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
],
parserOptions: {
project: './tsconfig.json',
ecmaVersion: 'latest',
sourceType: 'module',
},
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
env: {
es6: true,
},
rules: {
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-var-requires': 0,
'@typescript-eslint/no-unused-vars': 0,
'@typescript-eslint/no-empty-function': 0,
'@typescript-eslint/ban-ts-comment': [
'off',
{
'ts-ignore': 'allow-with-description',
},
],
// temprary disable
// "@typescript-eslint/no-floating-promises": "error",
// "@typescript-eslint/no-misused-promises": [
// "error",
// {
// "checksVoidReturn": false
// }
// ]
// temporary enable
'no-useless-escape': 'off',
'no-useless-catch': 'off',
'@typescript-eslint/no-namespace': 'off',
'no-empty': 'off',
'no-case-declarations': 'off',
},
overrides: [
{
files: ['./website/**/*.ts', './website/**/*.tsx'],
extends: [
'next/core-web-vitals',
'eslint:recommended',
'plugin:react-hooks/recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
],
parserOptions: {
project: './tsconfig.json',
ecmaVersion: 'latest',
sourceType: 'module',
},
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'react-hooks'],
env: {
browser: true,
es2021: true,
},
rules: {
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-var-requires': 0,
'@typescript-eslint/no-unused-vars': 0,
'@typescript-eslint/no-empty-function': 0,
'react-native/no-inline-styles': 0,
'no-constant-condition': 0,
'@typescript-eslint/no-floating-promises': 'error',
'@typescript-eslint/no-misused-promises': [
'error',
{
checksVoidReturn: false,
},
],
'@typescript-eslint/ban-ts-comment': [
'off',
{
'ts-ignore': 'allow-with-description',
},
],
},
},
],
}
43 changes: 0 additions & 43 deletions .eslintrc.json

This file was deleted.

14 changes: 14 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"projects": {
"default": "epics-dao"
},
"targets": {
"epics-dao": {
"hosting": {
"solv-doc": [
"solv-doc"
]
}
}
}
}
48 changes: 48 additions & 0 deletions .github/workflows/website-solv-doc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: solv-doc
on:
push:
branches:
- main
paths:
- 'website/solv-doc/**'
- '.github/workflows/website-solv-doc.yml'
- 'package.json'
- 'firebase.json'
- '.firebaserc'

jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [20.11.0]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v3
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- id: auth
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.SKEET_GCP_SA_KEY }}
- name: Install firebase tools
run: pnpm i -g firebase-tools
- name: GitHub repository setting
run: git config --global url."https://github.com".insteadOf ssh://[email protected]
- name: Install dependencies
run: pnpm -F solv-doc i
- name: Build App
run: pnpm -F solv-doc build
env:
NODE_OPTIONS: --max-old-space-size=8192
- name: Deploy to Firebase
run: firebase deploy --only hosting
- name: Send sitemap
run: pnpm -F solv-doc send:sitemap
env:
BING_API_KEY: ${{ secrets.BING_API_KEY }}
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ firebase-debug.log
/apps/
keyfile.json
/functions/
.firebase*
tmp
firebase.json
/sql/
dist/
361 changes: 0 additions & 361 deletions dist/index.js

This file was deleted.

18 changes: 18 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"hosting": {
"target": "solv-doc",
"public": "website/solv-doc/out",
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
"headers": [
{
"source": "/resource/**/**/install",
"headers": [
{
"key": "Content-Disposition",
"value": "attachment; filename=install"
}
]
}
]
}
}
7 changes: 0 additions & 7 deletions packages/solv/.eslintignore

This file was deleted.

25 changes: 0 additions & 25 deletions packages/solv/.eslintrc.json

This file was deleted.

6 changes: 0 additions & 6 deletions packages/solv/.prettierignore

This file was deleted.

4 changes: 0 additions & 4 deletions packages/solv/.prettierrc

This file was deleted.

Loading

0 comments on commit 30beb5c

Please sign in to comment.