-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
7,424 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: CI | ||
on: | ||
- push | ||
- pull_request | ||
jobs: | ||
quality-checks: | ||
name: Quality Checks | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
- uses: pnpm/action-setup@v4 | ||
name: Install pnpm | ||
with: | ||
run_install: false | ||
version: 9 | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
ref: new-structure | ||
repository: fireproof-storage/fireproof | ||
path: ./fireproof | ||
- name: build-fireproof-package | ||
working-directory: ./fireproof | ||
run: | | ||
pnpm install | ||
pnpm run build | ||
- uses: actions/checkout@v4 | ||
with: | ||
path: ./connector | ||
|
||
- name: install | ||
working-directory: ./connector | ||
run: pnpm install | ||
|
||
- name: format-check | ||
working-directory: ./connector | ||
run: pnpm run format --check | ||
- name: lint | ||
working-directory: ./connector | ||
run: pnpm run lint | ||
- name: build | ||
working-directory: ./connector | ||
run: pnpm run build | ||
# - name: smoke | ||
# working-directory: ./connector | ||
# run: pnpm run smoke | ||
# - name: test | ||
# working-directory: ./connector | ||
# run: pnpm run test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Files | ||
.vscode | ||
.DS_Store | ||
.eslintcache | ||
pail.car | ||
|
||
# Directories | ||
.nyc_output | ||
build | ||
coverage | ||
dist | ||
node_modules | ||
out | ||
logs | ||
|
||
# Artifacts | ||
*.log | ||
*.tgz | ||
*.zip | ||
|
||
smoke/package.json | ||
smoke/pnpm-lock.yaml | ||
smoke/react/package.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import eslint from "@eslint/js"; | ||
import tseslint from "typescript-eslint"; | ||
|
||
export default tseslint.config( | ||
eslint.configs.recommended, | ||
// ...tseslint.configs.recommended, | ||
...tseslint.configs.strict, | ||
...tseslint.configs.stylistic, | ||
{ | ||
ignores: [ | ||
"babel.config.cjs", | ||
"jest.config.js", | ||
"**/dist/", | ||
"**/pubdir/", | ||
"**/node_modules/", | ||
"**/scripts/", | ||
"**/examples/", | ||
"smoke/react/", | ||
], | ||
}, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
{ | ||
"name": "@fireproof/connector", | ||
"version": "1.0.0", | ||
"private": true, | ||
"description": "Live database connector for the web", | ||
"type": "module", | ||
"scripts": { | ||
"prebuild": "rm -rf dist", | ||
"build": "pnpm run '/build:/' && pnpm run '/pub:/'", | ||
"build:tsc": "tsc", | ||
"xbuild:tsup": "tsup", | ||
"xpub:fireproof-core": "cp -pr ./.gitignore ./README.md ./LICENSE.md dist/fireproof-core/; cp package-fireproof-core.json dist/fireproof-core/package.json", | ||
"xpub:use-fireproof": "cp -pr ./.gitignore ./README.md ./LICENSE.md dist/use-fireproof/; cp package-use-fireproof.json dist/use-fireproof/package.json", | ||
"presmoke": "pnpm run build", | ||
"xsmoke": "pnpm run '/smoke:/'", | ||
"presmoke:node": "cd dist/fireproof-core ; pnpm pack", | ||
"smoke:node": "sh smoke/it.sh", | ||
"presmoke:browser": "cd dist/use-fireproof ; pnpm pack", | ||
"smoke:browser": "sh smoke/react/it.sh", | ||
"clean": "rm -rf node_modules dist", | ||
"test": "pnpm run '/^test:/'", | ||
"xtest:file": "FP_STORAGE_URL=./dist/fp-dir vitest --run", | ||
"xtest:sqlite": "FP_STORAGE_URL=sqlite://dist/fp-dir vitest --run", | ||
"xtest:indexdb": "vitest --config vitest.browser.config.ts --run", | ||
"format": "prettier .", | ||
"lint": "eslint" | ||
}, | ||
"keywords": [ | ||
"database", | ||
"JSON", | ||
"immutable", | ||
"IPLD", | ||
"CID", | ||
"UCAN" | ||
], | ||
"contributors": [ | ||
"J Chris Anderson", | ||
"Alan Shaw", | ||
"Travis Vachon", | ||
"Mikeal Rogers", | ||
"Meno Abels" | ||
], | ||
"license": "Apache-2.0 OR MIT", | ||
"devDependencies": { | ||
"@eslint/js": "^9.6.0", | ||
"@types/eslint__js": "^8.42.3", | ||
"@types/node": "^20.14.6", | ||
"@typescript-eslint/typescript-estree": "^7.15.0", | ||
"esbuild": "^0.23.0", | ||
"esbuild-plugin-resolve": "^2.0.0", | ||
"eslint": "^9.6.0", | ||
"prettier": "^3.3.2", | ||
"tsup": "^8.1.0", | ||
"tsx": "^4.15.6", | ||
"typescript": "^5.5.2", | ||
"typescript-eslint": "^7.13.1", | ||
"vite": "^5.3.1", | ||
"vite-tsconfig-paths": "^4.3.2", | ||
"vitest": "^1.6.0" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/fireproof-storage/connector.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/fireproof-storage/connector/issues" | ||
}, | ||
"homepage": "https://github.com/fireproof-storage/connector#readme", | ||
"dependencies": { | ||
"@fireproof/core": "file:../fireproof/dist/fireproof-core/fireproof-core-0.18.0.tgz", | ||
"@netlify/blobs": "^7.4.0", | ||
"@ucanto/interface": "^10.0.1", | ||
"@web3-storage/clock": "^0.4.1", | ||
"@web3-storage/pail": "^0.6.0", | ||
"@web3-storage/w3up-client": "^15.0.0", | ||
"cross-fetch": "^4.0.0", | ||
"js-base64": "^3.7.7", | ||
"multiformats": "^13.1.3", | ||
"partykit": "^0.0.107", | ||
"partysocket": "^1.0.1" | ||
}, | ||
"xdependencies": { | ||
"@adviser/cement": "^0.1.18", | ||
"@ipld/car": "^5.3.1", | ||
"@ipld/dag-cbor": "^9.2.0", | ||
"@ipld/dag-json": "^10.2.1", | ||
"@ipld/unixfs": "^3.0.0", | ||
"@netlify/blobs": "^7.3.0", | ||
"@ucanto/interface": "^10.0.1", | ||
"@web3-storage/clock": "^0.4.1", | ||
"@web3-storage/pail": "^0.6.0", | ||
"better-sqlite3": "^11.0.0", | ||
"charwise": "^3.0.1", | ||
"cross-fetch": "^4.0.0", | ||
"idb": "^8.0.0", | ||
"ipfs-unixfs-exporter": "^13.5.0", | ||
"js-base64": "^3.7.7", | ||
"multiformats": "^13.1.1", | ||
"p-limit": "^5.0.0", | ||
"partykit": "^0.0.107", | ||
"partysocket": "^1.0.1", | ||
"prolly-trees": "^1.0.4", | ||
"randombytes": "^2.1.0", | ||
"react": "^18.3.1", | ||
"std-env": "^3.7.0", | ||
"uuidv7": "^1.0.0" | ||
} | ||
} |
Oops, something went wrong.