Skip to content

Commit 330aec4

Browse files
committed
New Quant Updates
0 parents  commit 330aec4

File tree

138 files changed

+28871
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+28871
-0
lines changed

.eslintrc.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
module.exports = {
2+
parser: '@typescript-eslint/parser',
3+
extends: [
4+
'eslint:recommended',
5+
'@typescript-eslint/recommended',
6+
],
7+
plugins: ['@typescript-eslint'],
8+
parserOptions: {
9+
ecmaVersion: 2020,
10+
sourceType: 'module',
11+
project: './tsconfig.json',
12+
},
13+
rules: {
14+
'@typescript-eslint/no-unused-vars': 'error',
15+
'@typescript-eslint/no-explicit-any': 'warn',
16+
'@typescript-eslint/explicit-function-return-type': 'off',
17+
'@typescript-eslint/explicit-module-boundary-types': 'off',
18+
'@typescript-eslint/no-non-null-assertion': 'warn',
19+
'prefer-const': 'error',
20+
'no-var': 'error',
21+
'no-console': 'warn',
22+
},
23+
env: {
24+
node: true,
25+
es6: true,
26+
jest: true,
27+
},
28+
};

.github/workflows/ci.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main, develop]
6+
pull_request:
7+
branches: [main, develop]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [18.x, 20.x]
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
20+
- name: Setup pnpm
21+
uses: pnpm/action-setup@v2
22+
with:
23+
version: 8
24+
25+
- name: Use Node.js ${{ matrix.node-version }}
26+
uses: actions/setup-node@v3
27+
with:
28+
node-version: ${{ matrix.node-version }}
29+
cache: 'pnpm'
30+
31+
- name: Install dependencies
32+
run: pnpm install
33+
34+
- name: Lint
35+
run: pnpm lint
36+
37+
- name: Build
38+
run: pnpm build
39+
40+
- name: Test
41+
run: pnpm test
42+
43+
publish:
44+
needs: build
45+
runs-on: ubuntu-latest
46+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
47+
48+
steps:
49+
- uses: actions/checkout@v3
50+
51+
- name: Setup pnpm
52+
uses: pnpm/action-setup@v2
53+
with:
54+
version: 8
55+
56+
- name: Use Node.js
57+
uses: actions/setup-node@v3
58+
with:
59+
node-version: '20.x'
60+
cache: 'pnpm'
61+
registry-url: 'https://registry.npmjs.org'
62+
63+
- name: Install dependencies
64+
run: pnpm install
65+
66+
- name: Build
67+
run: pnpm build
68+
69+
- name: Publish to npm
70+
run: pnpm publish:all
71+
env:
72+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/release.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: Setup pnpm
16+
uses: pnpm/action-setup@v2
17+
with:
18+
version: 8
19+
20+
- name: Use Node.js
21+
uses: actions/setup-node@v3
22+
with:
23+
node-version: '20.x'
24+
cache: 'pnpm'
25+
26+
- name: Install dependencies
27+
run: pnpm install
28+
29+
- name: Build
30+
run: pnpm build
31+
32+
- name: Create Release
33+
uses: actions/create-release@v1
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
with:
37+
tag_name: ${{ github.ref }}
38+
release_name: Release ${{ github.ref }}
39+
body: |
40+
See [CHANGELOG.md](CHANGELOG.md) for details.
41+
draft: false
42+
prerelease: false

.gitignore

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Dependencies
2+
node_modules/
3+
.pnp
4+
.pnp.js
5+
6+
# Build outputs
7+
dist/
8+
build/
9+
*.tsbuildinfo
10+
11+
# Testing
12+
coverage/
13+
.nyc_output/
14+
15+
# Environment variables
16+
.env
17+
.env.local
18+
.env.development.local
19+
.env.test.local
20+
.env.production.local
21+
22+
# Logs
23+
logs/
24+
*.log
25+
npm-debug.log*
26+
yarn-debug.log*
27+
yarn-error.log*
28+
pnpm-debug.log*
29+
lerna-debug.log*
30+
31+
# Editor directories and files
32+
.vscode/*
33+
!.vscode/extensions.json
34+
.idea/
35+
.DS_Store
36+
*.suo
37+
*.ntvs*
38+
*.njsproj
39+
*.sln
40+
*.sw?
41+
42+
# OS files
43+
Thumbs.db
44+
.DS_Store
45+
46+
# Temporary files
47+
*.tmp
48+
*.temp
49+
.cache/
50+
51+
# Package manager
52+
.yarn/
53+
.pnpm-store/
54+
55+
# Turbo
56+
.turbo/

0 commit comments

Comments
 (0)