Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
gaelgoth committed Mar 5, 2023
0 parents commit d2f3905
Show file tree
Hide file tree
Showing 43 changed files with 4,543 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["react", "@typescript-eslint"],
"rules": {
"react/react-in-jsx-scope": "off"
},
"globals": {
"chrome": "readonly"
},
"ignorePatterns": ["watch.js", "dist/**"]
}
17 changes: 17 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 14
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 3
# Issues with these labels will never be considered stale
exemptLabels:
- pinned
- security
# Label to use when marking an issue as stale
staleLabel: wontfix
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: true
48 changes: 48 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Build and push dist to artifact
on:
push:
branches:
- main

jobs:
build-and-push:
runs-on: ubuntu-latest

# Define the cache keys for dependencies and artifacts
env:
CACHE_NAME: cache-dependencies
steps:
- name: Checkout code
uses: actions/checkout@v3

# Restore the cached dependencies
- name: Restore dependencies cache
uses: actions/cache@v3
with:
path: |
node_modules
key: ${{ runner.os }}-${{ env.CACHE_NAME }}-${{ hashFiles('**/yarn.lock') }}
id: restore-cache

# Install dependencies and build the project
- name: Install dependencies and build project
if: steps.restore-cache.outputs.cache-hit != 'true'
run: |
yarn install
yarn build
# Push dist to artifact
- name: Push dist to artifact
uses: actions/upload-artifact@v3
with:
name: dist
path: dist

# Save the new dependencies cache
- name: Save dependencies cache
if: steps.restore-cache.outputs.cache-hit != 'true'
uses: actions/cache@v3
with:
path: |
node_modules
key: ${{ runner.os }}-${{ env.CACHE_NAME }}-${{ hashFiles('**/yarn.lock') }}
10 changes: 10 additions & 0 deletions .github/workflows/readme-toc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
on: push
name: TOC Generator
jobs:
generateTOC:
name: TOC Generator
runs-on: ubuntu-latest
steps:
- uses: technote-space/toc-generator@v4
with:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
Loading

0 comments on commit d2f3905

Please sign in to comment.