Skip to content
This repository was archived by the owner on Apr 14, 2026. It is now read-only.

Commit 2c86ba3

Browse files
authored
Merge pull request #1 from Verax-Attestation-Registry/chore/add-ci-pipeline
chore: Add a CI pipeline
2 parents e94d432 + 1d476fb commit 2c86ba3

14 files changed

Lines changed: 2362 additions & 4091 deletions

.eslintrc.cjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@ module.exports = {
1414
react: {
1515
version: 'detect',
1616
},
17+
'import/resolver': {
18+
node: {
19+
extensions: ['.js', '.jsx', '.ts', '.tsx'],
20+
paths: ['src'],
21+
alias: {
22+
'@': './node_modules',
23+
},
24+
},
25+
},
1726
},
1827
ignorePatterns: ['dist', '.eslintrc.cjs'],
1928
parser: '@typescript-eslint/parser',

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @alainncls @satyajeetkolhapure @orbmis @arthur-remy

.github/workflows/build-lint.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build & Lint
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build-lint:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Check out the repo
17+
uses: actions/checkout@v4
18+
19+
- name: Install Node.js
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: 18
23+
cache: npm
24+
25+
- name: Install dependencies
26+
run: npm ci
27+
28+
- name: Build
29+
run: npm run build
30+
31+
- name: Lint
32+
run: npm run lint:check
33+
34+
- name: Add build summary
35+
run: |
36+
echo "## Tutorial build & lint result" >> $GITHUB_STEP_SUMMARY
37+
echo "✅ Passed" >> $GITHUB_STEP_SUMMARY

README.md

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,20 @@
1-
# React + TypeScript + Vite
1+
# Verax Attestation Registry - Tutorial
22

3-
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
3+
[![Netlify Status](https://api.netlify.com/api/v1/badges/4ffcae17-34f3-41bf-8c1d-534dc70a4730/deploy-status)](https://app.netlify.com/sites/verax-tutorial/deploys)
44

5-
Currently, two official plugins are available:
5+
A tutorial for building with the Verax SDK.
6+
Available at [tutorial.examples.ver.ax](https://tutorial.examples.ver.ax).
67

7-
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8-
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
8+
## Getting Started
99

10-
## Expanding the ESLint configuration
10+
### Install dependencies
1111

12-
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
12+
```bash
13+
npm i
14+
```
1315

14-
- Configure the top-level `parserOptions` property like this:
16+
### Launch in development mode
1517

16-
```js
17-
export default {
18-
// other rules...
19-
parserOptions: {
20-
ecmaVersion: 'latest',
21-
sourceType: 'module',
22-
project: ['./tsconfig.json', './tsconfig.node.json'],
23-
tsconfigRootDir: __dirname,
24-
},
25-
};
18+
```bash
19+
npm run dev
2620
```
27-
28-
- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
29-
- Optionally add `plugin:@typescript-eslint/stylistic-type-checked`
30-
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list

0 commit comments

Comments
 (0)