Skip to content

Commit f7f28f0

Browse files
committed
feat!: extract dns discovery and enr from core
1 parent 2e5cb3c commit f7f28f0

34 files changed

+652
-0
lines changed

package-lock.json

+132
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/dns-discovery/package.json

+177
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,177 @@
1+
{
2+
"name": "@waku/dns-discovery",
3+
"version": "0.0.1",
4+
"description": "DNS Peer Discovery (EIP-1459)",
5+
"types": "./dist/index.d.ts",
6+
"module": "./dist/index.js",
7+
"exports": {
8+
".": {
9+
"types": "./dist/index.d.ts",
10+
"import": "./dist/index.js"
11+
}
12+
},
13+
"type": "module",
14+
"author": "Waku Team",
15+
"homepage": "https://github.com/waku-org/js-waku/tree/master/packages/dns-discovery#readme",
16+
"repository": {
17+
"type": "git",
18+
"url": "https://github.com/waku-org/js-waku.git"
19+
},
20+
"bugs": {
21+
"url": "https://github.com/waku-org/js-waku/issues"
22+
},
23+
"license": "MIT OR Apache-2.0",
24+
"keywords": [
25+
"waku",
26+
"decentralized",
27+
"secure",
28+
"communication",
29+
"web3",
30+
"ethereum",
31+
"dapps",
32+
"privacy"
33+
],
34+
"scripts": {
35+
"build": "run-s build:**",
36+
"build:esm": "tsc",
37+
"build:bundle": "rollup --config rollup.config.js",
38+
"fix": "run-s fix:*",
39+
"fix:prettier": "prettier . --write",
40+
"fix:lint": "eslint src --ext .ts --ext .cjs --fix",
41+
"check": "run-s check:*",
42+
"check:lint": "eslint src --ext .ts",
43+
"check:prettier": "prettier . --list-different",
44+
"check:spelling": "cspell \"{README.md,src/**/*.ts}\"",
45+
"check:tsc": "tsc -p tsconfig.dev.json",
46+
"prepublish": "npm run build",
47+
"reset-hard": "git clean -dfx -e .idea && git reset --hard && npm i && npm run build",
48+
"release": "semantic-release"
49+
},
50+
"engines": {
51+
"node": ">=16"
52+
},
53+
"dependencies": {},
54+
"devDependencies": {
55+
"@rollup/plugin-commonjs": "^22.0.0",
56+
"@rollup/plugin-json": "^4.1.0",
57+
"@rollup/plugin-node-resolve": "^13.3.0",
58+
"@semantic-release/changelog": "^6.0.1",
59+
"@semantic-release/commit-analyzer": "^9.0.2",
60+
"@semantic-release/git": "^10.0.1",
61+
"@semantic-release/github": "^8.0.6",
62+
"@semantic-release/npm": "^9.0.1",
63+
"@semantic-release/release-notes-generator": "^10.0.3",
64+
"@typescript-eslint/eslint-plugin": "^5.8.1",
65+
"@typescript-eslint/parser": "^5.8.1",
66+
"cspell": "^5.14.0",
67+
"eslint": "^8.6.0",
68+
"eslint-config-prettier": "^8.3.0",
69+
"eslint-plugin-eslint-comments": "^3.2.0",
70+
"eslint-plugin-functional": "^4.0.2",
71+
"eslint-plugin-import": "^2.25.3",
72+
"eslint-plugin-prettier": "^4.0.0",
73+
"npm-run-all": "^4.1.5",
74+
"prettier": "^2.1.1",
75+
"rollup": "^2.75.0",
76+
"semantic-release": "^19.0.5",
77+
"semantic-release-monorepo": "^7.0.5",
78+
"typescript": "^4.6.3"
79+
},
80+
"release": {
81+
"branches": [
82+
"master"
83+
],
84+
"extends": "semantic-release-monorepo",
85+
"plugins": [
86+
[
87+
"@semantic-release/commit-analyzer",
88+
{
89+
"preset": "conventionalcommits",
90+
"releaseRules": [
91+
{
92+
"breaking": true,
93+
"release": "patch"
94+
},
95+
{
96+
"revert": true,
97+
"release": "patch"
98+
},
99+
{
100+
"type": "feat",
101+
"release": "patch"
102+
},
103+
{
104+
"type": "fix",
105+
"release": "patch"
106+
},
107+
{
108+
"type": "doc",
109+
"release": "patch"
110+
},
111+
{
112+
"type": "test",
113+
"release": "patch"
114+
},
115+
{
116+
"scope": "deps",
117+
"release": "patch"
118+
},
119+
{
120+
"scope": "no-release",
121+
"release": false
122+
}
123+
]
124+
}
125+
],
126+
[
127+
"@semantic-release/release-notes-generator",
128+
{
129+
"preset": "conventionalcommits",
130+
"presetConfig": {
131+
"types": [
132+
{
133+
"type": "feat",
134+
"section": "Features"
135+
},
136+
{
137+
"type": "fix",
138+
"section": "Bug Fixes"
139+
},
140+
{
141+
"type": "chore",
142+
"section": "Trivial Changes"
143+
},
144+
{
145+
"type": "doc",
146+
"section": "Documentation"
147+
},
148+
{
149+
"type": "test",
150+
"section": "Tests"
151+
}
152+
]
153+
}
154+
}
155+
],
156+
"@semantic-release/changelog",
157+
"@semantic-release/npm",
158+
"@semantic-release/github",
159+
"@semantic-release/git"
160+
]
161+
},
162+
"typedoc": {
163+
"entryPoint": "./src/index.ts"
164+
},
165+
"files": [
166+
"dist",
167+
"bundle",
168+
"src/*.ts",
169+
"src/lib/**/*.ts",
170+
"src/proto/**/*.ts",
171+
"!**/*.spec.*",
172+
"!**/*.json",
173+
"CHANGELOG.md",
174+
"LICENSE",
175+
"README.md"
176+
]
177+
}
+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import commonjs from "@rollup/plugin-commonjs";
2+
import json from "@rollup/plugin-json";
3+
import { nodeResolve } from "@rollup/plugin-node-resolve";
4+
5+
export default {
6+
input: {
7+
index: "dist/index.js",
8+
},
9+
output: {
10+
dir: "bundle",
11+
format: "esm",
12+
},
13+
plugins: [
14+
commonjs(),
15+
json(),
16+
nodeResolve({
17+
browser: true,
18+
preferBuiltins: false,
19+
}),
20+
],
21+
};
+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extends": "./tsconfig",
3+
"compilerOptions": {
4+
"module": "esnext",
5+
"noEmit": true
6+
},
7+
"exclude": []
8+
}

0 commit comments

Comments
 (0)