refactor: move to new sdks and build system

This commit is contained in:
Derrick Hammer 2023-07-17 10:41:00 -04:00
parent 2c2fe874be
commit bb6bf3128e
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
6 changed files with 21 additions and 1728 deletions

1655
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -4,67 +4,30 @@
"description": "Lume Web is your decentralized gateway into the web3 internet, the web owned and controlled by its users", "description": "Lume Web is your decentralized gateway into the web3 internet, the web owned and controlled by its users",
"main": "index.js", "main": "index.js",
"type": "module", "type": "module",
"readme": "ERROR: No README data found!",
"_id": "@lumeweb/extension@0.3.0",
"scripts": { "scripts": {
"deps": "npm install libskynet@latest", "prepare": "presetter bootstrap",
"prettier": "prettier --write .", "build": "run build",
"eslint": "eslint src --fix", "semantic-release": "semantic-release"
"lint": "npm run deps && npm run prettier && npm run eslint",
"compile": "node build.js",
"build": "rimraf node_modules/@lumeweb/kernel-dns-client/node_modules node_modules/@lumeweb/kernel-dht-client/node_modules node_modules/@lumeweb/kernel-ipfs-client/node_modules && npm run compile && cpy \"assets/*\" dist"
}, },
"author": "David Vorick",
"license": "MIT",
"devDependencies": { "devDependencies": {
"@helia/unixfs": "^1.2.1", "@lumeweb/presetter-kernel-module-preset": "^0.1.0-develop.43",
"@rollup/plugin-node-resolve": "^13.3.0", "@sveltejs/vite-plugin-svelte": "^2.4.2",
"@types/ejs": "^3.1.2", "autoprefixer": "^10.4.14",
"@types/read": "^0.0.29", "sass": "^1.63.6",
"@types/webextension-polyfill": "^0.9.2", "tailwindcss": "^3.3.3"
"@typescript-eslint/eslint-plugin": "^5.57.1",
"browserify-fs": "^1.0.0",
"cpy-cli": "^4.2.0",
"esbuild": "^0.14.54",
"eslint": "^8.38.0",
"events": "^3.3.0",
"path-browserify": "^1.0.1",
"prettier": "^2.8.7",
"process": "^0.11.10",
"rimraf": "^3.0.2",
"rollup": "^2.79.1",
"stream": "^0.0.2",
"typescript": "^4.9.5",
"util": "^0.12.5",
"webextension-polyfill": "^0.9.0"
}, },
"dependencies": { "dependencies": {
"@lumeweb/kernel-dns-client": "git+https://git.lumeweb.com/LumeWeb/kernel-dns-client.git", "@helia/unixfs": "^1.4.0",
"@lumeweb/kernel-ipfs-client": "git+https://git.lumeweb.com/LumeWeb/kernel-ipfs-client.git", "@lumeweb/kernel-ipfs-client": "^0.0.2-develop.1",
"@lumeweb/kernel-peer-discovery-client": "git+https://git.lumeweb.com/LumeWeb/kernel-peer-discovery-client.git", "@lumeweb/libkernel": "^0.1.0-develop.16",
"@lumeweb/kernel-swarm-client": "git+https://git.lumeweb.com/LumeWeb/kernel-swarm-client.git", "@lumeweb/libresolver": "^0.1.0-develop.1",
"@lumeweb/libresolver": "git+https://git.lumeweb.com/LumeWeb/libresolver.git", "@lumeweb/libweb": "^0.2.0-develop.22",
"@lumeweb/tld-enum": "git+https://git.lumeweb.com/LumeWeb/list-of-top-level-domains.git", "@lumeweb/tld-enum": "^0.1.0-develop.1",
"@lumeweb/webextension-polyfill": "git+https://git.lumeweb.com/LumeWeb/webextension-polyfill.git", "@scure/bip39": "^1.2.1",
"@peculiar/webcrypto": "^1.4.3", "file-type": "^18.5.0",
"@siaweb/libweb": "git+https://git.lumeweb.com/LumeWeb/libsiaweb.git", "is-ipfs": "^8.0.1",
"buffer": "^6.0.3",
"file-type": "^18.2.1",
"is-ipfs": "^6.0.2",
"libkernel": "github:LumeWeb/libextension",
"libskynet": "^0.0.62",
"multiformats": "^11.0.2",
"node-cache": "^5.1.2",
"p-defer": "^4.0.0" "p-defer": "^4.0.0"
},
"browser": {
"crypto": "crypto-browserify",
"fs": "browserify-fs",
"libkmodule": false,
"path": "path-browserify",
"node:buffer": "buffer"
},
"pnpm": {
"overrides": {
"libkernel": "github:LumeWeb/libextension"
}
} }
} }

View File

@ -1,2 +0,0 @@
export const process = require("process");
export const Buffer = require("buffer").Buffer;

View File

@ -2,7 +2,7 @@ import tldEnum from "@lumeweb/tld-enum";
import WebEngine from "../webEngine.js"; import WebEngine from "../webEngine.js";
import InternalProvider from "../contentProviders/internalProvider.js"; import InternalProvider from "../contentProviders/internalProvider.js";
import ServerProvider from "../contentProviders/serverProvider.js"; import ServerProvider from "../contentProviders/serverProvider.js";
import { init, kernelLoaded } from "libkernel"; import { init } from "@lumeweb/libkernel/kernel";
import IpfsProvider from "../contentProviders/ipfsProvider.js"; import IpfsProvider from "../contentProviders/ipfsProvider.js";
import { import {
addQuery, addQuery,

View File

@ -1,4 +1,4 @@
import type { DataFn, KernelAuthStatus } from "libskynet"; import type { DataFn, KernelAuthStatus } from "@lumeweb/libweb";
import defer, { DeferredPromise } from "p-defer"; import defer, { DeferredPromise } from "p-defer";
export let queriesNonce = 1; export let queriesNonce = 1;

View File

@ -1,13 +0,0 @@
{
"compilerOptions": {
"module": "esnext",
"target": "esnext",
"declaration": true,
"moduleResolution": "node",
"outDir": "./build",
"strict": true,
"allowSyntheticDefaultImports": true
},
"include": ["src"],
"exclude": ["node_modules", "**/__tests__/*"]
}