Skip to content
Open
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
6 changes: 6 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dist
node_modules
package.json
package-lock.json
tsconfig.json
./olympus/**
19 changes: 19 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module.exports = {
overrides: [
{
files: ['**/*.ts', '**/*.tsx'],
parserOptions: {
ecmaVersion: 2020,
project: ['./tsconfig.json'],
tsconfigRootDir: __dirname,
sourceType: 'module',
},
},
],
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-misused-promises': 'off',
'@typescript-eslint/no-floating-promises': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
},
}
52 changes: 52 additions & 0 deletions .github/workflows/main-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Merge and Publish
on:
push:
branches: [main]
jobs:
quality-check:
name: Node Quality Check
runs-on: ubuntu-latest
env:
PORT: 8000
strategy:
matrix:
node-version: [20.x, 19.x, 18.x]
steps:
- uses: actions/checkout@v4
- name: Enable Corepack
run: corepack enable
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "yarn"
- name: Install packages
run: yarn install
- name: Run build command
run: yarn build
- name: Run test suite
run: yarn test run
- name: Run coverage check
run: yarn coverage
publish:
name: Publish package to npm 🚀
runs-on: ubuntu-latest
needs: quality-check
steps:
- uses: actions/checkout@v4
- name: Enable Corepack
run: corepack enable
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "yarn"
- name: Install packages
run: yarn install
- name: Run build command
run: yarn build
- id: publish
name: Publish to npm 🚀
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
22 changes: 22 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

node_modules
.pnp
.pnp.*
coverage
dist/
.DS_Store
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*
.env*
.idea
.vscode
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
/.env
Loading