Skip to content

Commit 43c822e

Browse files
committed
Original implementation
0 parents  commit 43c822e

23 files changed

+18394
-0
lines changed

.aegir.js

Lines changed: 20 additions & 0 deletions
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;

.editorconfig

Lines changed: 10 additions & 0 deletions
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
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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@v4
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: 'lts/*'
17+
registry-url: https://registry.npmjs.org/
18+
- name: Install pnpm
19+
uses: pnpm/action-setup@v3
20+
with:
21+
version: latest
22+
- run: pnpm install
23+
- run: pnpm test
24+
- run: git config --global user.email "[email protected]"
25+
- run: git config --global user.name "Github Action"
26+
- run: |
27+
pnpm version prerelease --no-git-tag-version \
28+
--preid=`git rev-parse --short HEAD`
29+
git commit package.json -m "next tag"
30+
pnpm publish --tag next
31+
env:
32+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

.github/workflows/npm-publish.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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@v4
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: 'lts/*'
17+
registry-url: https://registry.npmjs.org/
18+
- name: Install pnpm
19+
uses: pnpm/action-setup@v3
20+
with:
21+
version: latest
22+
- run: pnpm install
23+
- run: pnpm release
24+
env:
25+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

.github/workflows/run-test.yml

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

.gitignore

Lines changed: 17 additions & 0 deletions
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

.npmignore

Lines changed: 6 additions & 0 deletions
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)