Skip to content

Commit eeb46be

Browse files
committed
Separation of Kuiper into individual databases
0 parents  commit eeb46be

25 files changed

+14808
-0
lines changed

Diff for: .aegir.js

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// https://github.com/ipfs/aegir/blob/master/md/migration-to-v31.md
2+
const esbuild = {
3+
external: ["rimraf"],
4+
};
5+
6+
/** @type {import('aegir').PartialOptions} */
7+
const options = {
8+
test: {
9+
browser: {
10+
config: {
11+
buildConfig: esbuild,
12+
},
13+
},
14+
},
15+
build: {
16+
config: esbuild,
17+
},
18+
};
19+
20+
export default options;

Diff for: .editorconfig

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
7+
[*.{js,ts,json,yml}]
8+
charset = utf-8
9+
indent_style = space
10+
indent_size = 2

Diff for: .eslintignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
lib

Diff for: .eslintrc.cjs

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es2021: true,
5+
node: true,
6+
},
7+
extends: [
8+
"eslint:recommended",
9+
"plugin:@typescript-eslint/eslint-recommended",
10+
"plugin:@typescript-eslint/recommended",
11+
"prettier",
12+
],
13+
parser: "@typescript-eslint/parser",
14+
parserOptions: {
15+
ecmaVersion: 12,
16+
sourceType: "module",
17+
},
18+
plugins: ["@typescript-eslint"],
19+
rules: {
20+
"@typescript-eslint/no-non-null-assertion": "off",
21+
},
22+
};

Diff for: .github/workflows/npm-publish-next.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: Node.js Package (next tag)
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
publish-npm:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- uses: actions/setup-node@v3
15+
with:
16+
node-version: 'lts/*'
17+
registry-url: https://registry.npmjs.org/
18+
- run: pnpm install
19+
- run: pnpm test
20+
- run: |
21+
pnpm version prerelease --no-git-tag-version \
22+
--preid=`git rev-parse --short HEAD`
23+
pnpm publish --tag next
24+
env:
25+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

Diff for: .github/workflows/npm-publish.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: Node.js Package
3+
4+
on:
5+
push:
6+
tags:
7+
- 'v*'
8+
9+
jobs:
10+
publish-npm:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions/setup-node@v2
15+
with:
16+
node-version: 'lts/*'
17+
registry-url: https://registry.npmjs.org/
18+
- run: pnpm install
19+
- run: pnpm release
20+
env:
21+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

Diff for: .github/workflows/run-test.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: orbit-db-feed tests
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
jobs:
10+
test-node:
11+
name: Node.js test
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Préparation de Node.js
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: 21
18+
19+
- name: Installer pnpm
20+
uses: pnpm/[email protected]
21+
with:
22+
version: latest
23+
24+
- name: Ouvrir la branche
25+
uses: actions/checkout@v4
26+
27+
- name: Nétoyer les dépendances d'installation
28+
run: pnpm install --lockfile=false
29+
30+
- name: Vérifier les tests
31+
run: pnpm test:node
32+
33+
- name: Envoyer couverture à Codecov
34+
uses: codecov/codecov-action@v3

Diff for: .gitignore

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
*.log
2+
.DS_Store
3+
node_modules
4+
/dist
5+
/.coverage
6+
/node_modules
7+
/.nyc_output
8+
/.vscode
9+
/_stockageTemp
10+
11+
.yarn/*
12+
!.yarn/cache
13+
!.yarn/patches
14+
!.yarn/plugins
15+
!.yarn/releases
16+
!.yarn/sdks
17+
!.yarn/versions

Diff for: .npmignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
*.log
2+
.DS_Store
3+
node_modules
4+
!dist
5+
coverage
6+
docu

0 commit comments

Comments
 (0)