Skip to content
This repository was archived by the owner on Nov 23, 2022. It is now read-only.

Commit bedd869

Browse files
authored
feat(lib, ipfs, transport, relay, explorer): namespacing (#70)
* feat(transport, relay, explorer): add namespacing, fork transport, update explorer * feat(ipfs, transport, relay): namespacing proof-of-concept * feat(lib, relay): add namespacing support close #65
1 parent 07bdb7a commit bedd869

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+2550
-2685
lines changed

.vscode/settings.json

+3
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,8 @@
2929
},
3030
"[javascript]": {
3131
"editor.defaultFormatter": "vscode.typescript-language-features"
32+
},
33+
"[typescriptreact]": {
34+
"editor.defaultFormatter": "vscode.typescript-language-features"
3235
}
3336
}

babel.config.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"babelrcRoots": ["*"]
2+
"babelrcRoots": ["*"],
3+
"plugins": ["@babel/plugin-transform-typescript"]
34
}

package.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"tslib": "2.3.1"
1818
},
1919
"devDependencies": {
20+
"@babel/plugin-transform-typescript": "^7.16.8",
2021
"@commitlint/cli": "16.2.3",
2122
"@commitlint/config-conventional": "16.2.1",
2223
"@emotion/babel-plugin": "11.7.2",
@@ -56,13 +57,16 @@
5657
"jest": "27.5.1",
5758
"lerna": "4.0.0",
5859
"lint-staged": "12.3.7",
60+
"node-polyfill-webpack-plugin": "^1.1.4",
5961
"npm-run-all": "4.1.5",
6062
"patch-package": "6.4.7",
6163
"prettier": "2.6.0",
64+
"process": "^0.11.10",
6265
"react-test-renderer": "17.0.2",
6366
"standard-version": "9.3.2",
6467
"ts-jest": "27.1.3",
65-
"typescript": "4.6.2",
68+
"typescript": "^4.6.2",
69+
"util": "^0.12.4",
6670
"yaml-crypt": "0.7.6",
6771
"zx": "6.0.6"
6872
},

packages/explorer/project.json

+36-42
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,67 @@
11
{
2+
"projectType": "application",
23
"root": "packages/explorer",
34
"sourceRoot": "packages/explorer/src",
4-
"projectType": "application",
5+
"tags": [],
56
"targets": {
67
"build": {
7-
"executor": "@nrwl/web:webpack",
8-
"outputs": ["{options.outputPath}"],
8+
"configurations": {
9+
"production": {
10+
"extractLicenses": true,
11+
"namedChunks": false,
12+
"optimization": true,
13+
"outputHashing": "all",
14+
"sourceMap": false,
15+
"vendorChunk": false
16+
}
17+
},
918
"defaultConfiguration": "production",
19+
"executor": "@nrwl/web:webpack",
1020
"options": {
11-
"compiler": "babel",
12-
"outputPath": "dist/packages/explorer",
13-
"index": "packages/explorer/src/index.html",
14-
"baseHref": "/",
15-
"main": "packages/explorer/src/main.tsx",
16-
"polyfills": "packages/explorer/src/polyfills.ts",
17-
"tsConfig": "packages/explorer/tsconfig.app.json",
1821
"assets": [
1922
"packages/explorer/src/favicon.ico",
2023
"packages/explorer/src/assets"
2124
],
22-
"styles": [],
25+
"baseHref": "/",
26+
"compiler": "babel",
27+
"index": "packages/explorer/src/index.html",
28+
"main": "packages/explorer/src/main.tsx",
29+
"outputPath": "dist/packages/explorer",
30+
"polyfills": "packages/explorer/src/polyfills.ts",
2331
"scripts": [],
24-
"webpackConfig": "@nrwl/react/plugins/webpack"
32+
"styles": [],
33+
"tsConfig": "packages/explorer/tsconfig.app.json",
34+
"webpackConfig": "webpack.config.js"
2535
},
26-
"configurations": {
27-
"production": {
28-
"fileReplacements": [
29-
{
30-
"replace": "packages/explorer/src/environments/environment.ts",
31-
"with": "packages/explorer/src/environments/environment.prod.ts"
32-
}
33-
],
34-
"optimization": true,
35-
"outputHashing": "all",
36-
"sourceMap": false,
37-
"namedChunks": false,
38-
"extractLicenses": true,
39-
"vendorChunk": false
40-
}
41-
}
36+
"outputs": ["{options.outputPath}"]
4237
},
43-
"serve": {
44-
"executor": "@nrwl/web:dev-server",
38+
"lint": {
39+
"executor": "@nrwl/linter:eslint",
4540
"options": {
46-
"buildTarget": "explorer:build",
47-
"hmr": true
41+
"lintFilePatterns": ["packages/explorer/**/*.{ts,tsx,js,jsx}"]
4842
},
43+
"outputs": ["{options.outputFile}"]
44+
},
45+
"serve": {
4946
"configurations": {
5047
"production": {
5148
"buildTarget": "explorer:build:production",
5249
"hmr": false
5350
}
54-
}
55-
},
56-
"lint": {
57-
"executor": "@nrwl/linter:eslint",
58-
"outputs": ["{options.outputFile}"],
51+
},
52+
"executor": "@nrwl/web:dev-server",
5953
"options": {
60-
"lintFilePatterns": ["packages/explorer/**/*.{ts,tsx,js,jsx}"]
54+
"buildTarget": "explorer:build",
55+
"hmr": true
6156
}
6257
},
6358
"test": {
6459
"executor": "@nrwl/jest:jest",
65-
"outputs": ["coverage/packages/explorer"],
6660
"options": {
6761
"jestConfig": "packages/explorer/jest.config.js",
6862
"passWithNoTests": true
69-
}
63+
},
64+
"outputs": ["coverage/packages/explorer"]
7065
}
71-
},
72-
"tags": []
66+
}
7367
}

packages/explorer/src/app/app.spec.tsx

-27
This file was deleted.

packages/explorer/src/app/app.tsx

-55
This file was deleted.

0 commit comments

Comments
 (0)