Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mrc-6180 Add vite and other updates #23

Merged
merged 10 commits into from
Feb 19, 2025
Merged
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
51 changes: 26 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
# This workflow is based on the npm template: https://github.com/actions/starter-workflows/blob/main/ci/node.js.yml
name: build-and-test
on:
push:
branches:
- main
- master
- gha
pull_request:
branches:
- main
- master
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 15.x
- run: npm install
- run: npm run-script build
- run: npm install codecov -g
- run: npm run-script test
- run: npm run-script lint
- run: npm run-script docs
- uses: codecov/codecov-action@v1
with:
files: coverage/*.json
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22.x
- run: npm ci
- run: npm run build
- run: npm run coverage
- run: npm run lint
- run: npm run format-check
- run: npm run docs
- uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
files: ./coverage/coverage-final.json
token: ${{ secrets.CODECOV_TOKEN }}
34 changes: 17 additions & 17 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
name: docs

on:
push:
branches: [main, master]
push:
branches: [main, master]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16.x
- run: npm install
- run: npm run-script docs
- name: Publish
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
force_orphan: true
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22.x
- run: npm ci
- run: npm run docs
- name: Publish
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
force_orphan: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea
node_modules
lib
.nyc_output
Expand Down
42 changes: 42 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";

/** @type {import("eslint").Linter.Config[]} */
export default [
pluginJs.configs.recommended,
...tseslint.configs.recommended,
{
files: ["**/*.{js,mjs,cjs,ts}"]
},
{
ignores: ["dist/*", "vite.config.js"]
},
{
rules: {
quotes: ["error", "double", { avoidEscape: true }],
"max-len": [2, 120, 4],
"arrow-body-style": "off",
"import/prefer-default-export": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"no-plusplus": "off",
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error"],
"no-underscore-dangle": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error"],
"no-await-in-loop": "off",
"no-useless-concat": "off"
}
},
{
files: ["**/*.test.ts"],
rules: {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-empty-function": "off",
"max-classes-per-file": "off",
"no-useless-constructor": "off"
}
}
];
24 changes: 0 additions & 24 deletions jest.config.js

This file was deleted.

Loading