From cf79f0387694fb7ceb42ff0104584dbb405add5d Mon Sep 17 00:00:00 2001 From: Dexter Date: Tue, 15 Feb 2022 09:29:40 +0000 Subject: [PATCH] npm nx-cra --- apps/{block-explorer => vega-explorer}/.env | 0 .../.gitignore | 0 .../README.md | 0 .../apollo.config.js | 0 apps/vega-explorer/craco.config.js | 40 ++++++++++++++++++ .../netlify.toml | 0 .../package.json | 12 +++--- apps/vega-explorer/project.json | 6 +++ .../public/favicon.ico | Bin .../public/index.html | 0 .../public/logo192.png | Bin .../public/logo512.png | Bin .../public/manifest.json | 0 .../public/robots.txt | 0 .../src/App.scss | 0 .../src/App.test.tsx | 0 .../src/App.tsx | 0 .../src/__generated__/globalTypes.ts | 0 .../src/components/footer/index.tsx | 0 .../src/components/header/index.tsx | 0 .../src/components/main/index.tsx | 0 .../src/components/nav/index.tsx | 0 .../router-error-boundary/index.tsx | 0 .../src/components/search/index.tsx | 0 .../src/components/splash-loader/index.ts | 0 .../splash-loader/splash-loader.scss | 0 .../splash-loader/splash-loader.tsx | 0 .../src/components/splash-screen/index.ts | 0 .../splash-screen/splash-screen.scss | 0 .../splash-screen/splash-screen.tsx | 0 .../src/config/index.tsx | 0 .../websocket/tendermint-websocket-context.ts | 0 .../tendermint-websocket-provider.tsx | 0 .../src/hooks/use-fetch.tsx | 0 .../src/hooks/use-tendermint-websocket.tsx | 0 .../src/index.tsx | 0 .../src/lib/apollo-client.tsx | 0 .../src/react-app-env.d.ts | 0 .../src/reportWebVitals.ts | 0 .../assets/__generated__/AssetsQuery.ts | 0 .../src/routes/assets/index.tsx | 0 .../src/routes/blocks/home/index.tsx | 0 .../src/routes/blocks/id/index.tsx | 0 .../src/routes/blocks/index.tsx | 0 .../tendermint-blockchain-response.d.ts | 0 .../blocks/tendermint-blocks-response.d.ts | 0 .../routes/blocks/tendermint-new-block.d.ts | 0 .../src/routes/genesis/index.tsx | 0 .../genesis/tendermint-genesis-response.d.ts | 0 .../__generated__/ProposalsQuery.ts | 0 .../src/routes/governance/index.tsx | 0 .../src/routes/home/index.tsx | 0 .../src/routes/index.tsx | 0 .../markets/__generated__/MarketsQuery.ts | 0 .../src/routes/markets/index.tsx | 0 .../__generated__/NetworkParametersQuery.ts | 0 .../src/routes/network-parameters/index.tsx | 0 .../src/routes/parties/home/index.tsx | 0 .../id/__generated__/PartyAssetsQuery.ts | 0 .../src/routes/parties/id/index.tsx | 0 .../src/routes/parties/index.tsx | 0 .../tendermint-transaction-response.d.ts | 0 .../src/routes/router-config.ts | 0 .../src/routes/txs/home/index.tsx | 0 .../src/routes/txs/id/index.tsx | 0 .../src/routes/txs/index.tsx | 0 .../txs/tendermint-transaction-response.d.tsx | 0 ...nt-unconfirmed-transactions-response.d.tsx | 0 .../routes/types/chain-explorer-response.d.ts | 0 .../types/tenderming-error-response.d.ts | 0 .../validators/__generated__/NodesQuery.ts | 0 .../src/routes/validators/index.tsx | 0 .../tendermint-validator-response.tsx | 0 .../src/setupTests.ts | 0 .../src/styles/AlphaLyrae-Medium.woff | Bin .../src/styles/_colors.scss | 0 .../src/styles/_fonts.scss | 0 .../src/styles/_reset.scss | 0 apps/vega-explorer/tsconfig.app.json | 23 ++++++++++ .../tsconfig.json | 7 +-- apps/vega-explorer/tsconfig.spec.json | 22 ++++++++++ .../yarn.lock | 0 82 files changed, 101 insertions(+), 9 deletions(-) rename apps/{block-explorer => vega-explorer}/.env (100%) rename apps/{block-explorer => vega-explorer}/.gitignore (100%) rename apps/{block-explorer => vega-explorer}/README.md (100%) rename apps/{block-explorer => vega-explorer}/apollo.config.js (100%) create mode 100644 apps/vega-explorer/craco.config.js rename apps/{block-explorer => vega-explorer}/netlify.toml (100%) rename apps/{block-explorer => vega-explorer}/package.json (85%) create mode 100644 apps/vega-explorer/project.json rename apps/{block-explorer => vega-explorer}/public/favicon.ico (100%) rename apps/{block-explorer => vega-explorer}/public/index.html (100%) rename apps/{block-explorer => vega-explorer}/public/logo192.png (100%) rename apps/{block-explorer => vega-explorer}/public/logo512.png (100%) rename apps/{block-explorer => vega-explorer}/public/manifest.json (100%) rename apps/{block-explorer => vega-explorer}/public/robots.txt (100%) rename apps/{block-explorer => vega-explorer}/src/App.scss (100%) rename apps/{block-explorer => vega-explorer}/src/App.test.tsx (100%) rename apps/{block-explorer => vega-explorer}/src/App.tsx (100%) rename apps/{block-explorer => vega-explorer}/src/__generated__/globalTypes.ts (100%) rename apps/{block-explorer => vega-explorer}/src/components/footer/index.tsx (100%) rename apps/{block-explorer => vega-explorer}/src/components/header/index.tsx (100%) rename apps/{block-explorer => vega-explorer}/src/components/main/index.tsx (100%) rename apps/{block-explorer => vega-explorer}/src/components/nav/index.tsx (100%) rename apps/{block-explorer => vega-explorer}/src/components/router-error-boundary/index.tsx (100%) rename apps/{block-explorer => vega-explorer}/src/components/search/index.tsx (100%) rename apps/{block-explorer => vega-explorer}/src/components/splash-loader/index.ts (100%) rename apps/{block-explorer => vega-explorer}/src/components/splash-loader/splash-loader.scss (100%) rename apps/{block-explorer => vega-explorer}/src/components/splash-loader/splash-loader.tsx (100%) rename apps/{block-explorer => vega-explorer}/src/components/splash-screen/index.ts (100%) rename apps/{block-explorer => vega-explorer}/src/components/splash-screen/splash-screen.scss (100%) rename apps/{block-explorer => vega-explorer}/src/components/splash-screen/splash-screen.tsx (100%) rename apps/{block-explorer => vega-explorer}/src/config/index.tsx (100%) rename apps/{block-explorer => vega-explorer}/src/contexts/websocket/tendermint-websocket-context.ts (100%) rename apps/{block-explorer => vega-explorer}/src/contexts/websocket/tendermint-websocket-provider.tsx (100%) rename apps/{block-explorer => vega-explorer}/src/hooks/use-fetch.tsx (100%) rename apps/{block-explorer => vega-explorer}/src/hooks/use-tendermint-websocket.tsx (100%) rename apps/{block-explorer => vega-explorer}/src/index.tsx (100%) rename apps/{block-explorer => vega-explorer}/src/lib/apollo-client.tsx (100%) rename apps/{block-explorer => vega-explorer}/src/react-app-env.d.ts (100%) rename apps/{block-explorer => vega-explorer}/src/reportWebVitals.ts (100%) rename apps/{block-explorer => vega-explorer}/src/routes/assets/__generated__/AssetsQuery.ts (100%) rename apps/{block-explorer => vega-explorer}/src/routes/assets/index.tsx (100%) rename apps/{block-explorer => vega-explorer}/src/routes/blocks/home/index.tsx (100%) rename apps/{block-explorer => vega-explorer}/src/routes/blocks/id/index.tsx (100%) rename apps/{block-explorer => vega-explorer}/src/routes/blocks/index.tsx (100%) rename apps/{block-explorer => vega-explorer}/src/routes/blocks/tendermint-blockchain-response.d.ts (100%) rename apps/{block-explorer => vega-explorer}/src/routes/blocks/tendermint-blocks-response.d.ts (100%) rename apps/{block-explorer => vega-explorer}/src/routes/blocks/tendermint-new-block.d.ts (100%) rename apps/{block-explorer => vega-explorer}/src/routes/genesis/index.tsx (100%) rename apps/{block-explorer => vega-explorer}/src/routes/genesis/tendermint-genesis-response.d.ts (100%) rename apps/{block-explorer => vega-explorer}/src/routes/governance/__generated__/ProposalsQuery.ts (100%) rename apps/{block-explorer => vega-explorer}/src/routes/governance/index.tsx (100%) rename apps/{block-explorer => vega-explorer}/src/routes/home/index.tsx (100%) rename apps/{block-explorer => vega-explorer}/src/routes/index.tsx (100%) rename apps/{block-explorer => vega-explorer}/src/routes/markets/__generated__/MarketsQuery.ts (100%) rename apps/{block-explorer => vega-explorer}/src/routes/markets/index.tsx (100%) rename apps/{block-explorer => vega-explorer}/src/routes/network-parameters/__generated__/NetworkParametersQuery.ts (100%) rename apps/{block-explorer => vega-explorer}/src/routes/network-parameters/index.tsx (100%) rename apps/{block-explorer => vega-explorer}/src/routes/parties/home/index.tsx (100%) rename apps/{block-explorer => vega-explorer}/src/routes/parties/id/__generated__/PartyAssetsQuery.ts (100%) rename apps/{block-explorer => vega-explorer}/src/routes/parties/id/index.tsx (100%) rename apps/{block-explorer => vega-explorer}/src/routes/parties/index.tsx (100%) rename apps/{block-explorer => vega-explorer}/src/routes/parties/tendermint-transaction-response.d.ts (100%) rename apps/{block-explorer => vega-explorer}/src/routes/router-config.ts (100%) rename apps/{block-explorer => vega-explorer}/src/routes/txs/home/index.tsx (100%) rename apps/{block-explorer => vega-explorer}/src/routes/txs/id/index.tsx (100%) rename apps/{block-explorer => vega-explorer}/src/routes/txs/index.tsx (100%) rename apps/{block-explorer => vega-explorer}/src/routes/txs/tendermint-transaction-response.d.tsx (100%) rename apps/{block-explorer => vega-explorer}/src/routes/txs/tendermint-unconfirmed-transactions-response.d.tsx (100%) rename apps/{block-explorer => vega-explorer}/src/routes/types/chain-explorer-response.d.ts (100%) rename apps/{block-explorer => vega-explorer}/src/routes/types/tenderming-error-response.d.ts (100%) rename apps/{block-explorer => vega-explorer}/src/routes/validators/__generated__/NodesQuery.ts (100%) rename apps/{block-explorer => vega-explorer}/src/routes/validators/index.tsx (100%) rename apps/{block-explorer => vega-explorer}/src/routes/validators/tendermint-validator-response.tsx (100%) rename apps/{block-explorer => vega-explorer}/src/setupTests.ts (100%) rename apps/{block-explorer => vega-explorer}/src/styles/AlphaLyrae-Medium.woff (100%) rename apps/{block-explorer => vega-explorer}/src/styles/_colors.scss (100%) rename apps/{block-explorer => vega-explorer}/src/styles/_fonts.scss (100%) rename apps/{block-explorer => vega-explorer}/src/styles/_reset.scss (100%) create mode 100644 apps/vega-explorer/tsconfig.app.json rename apps/{block-explorer => vega-explorer}/tsconfig.json (88%) create mode 100644 apps/vega-explorer/tsconfig.spec.json rename apps/{block-explorer => vega-explorer}/yarn.lock (100%) diff --git a/apps/block-explorer/.env b/apps/vega-explorer/.env similarity index 100% rename from apps/block-explorer/.env rename to apps/vega-explorer/.env diff --git a/apps/block-explorer/.gitignore b/apps/vega-explorer/.gitignore similarity index 100% rename from apps/block-explorer/.gitignore rename to apps/vega-explorer/.gitignore diff --git a/apps/block-explorer/README.md b/apps/vega-explorer/README.md similarity index 100% rename from apps/block-explorer/README.md rename to apps/vega-explorer/README.md diff --git a/apps/block-explorer/apollo.config.js b/apps/vega-explorer/apollo.config.js similarity index 100% rename from apps/block-explorer/apollo.config.js rename to apps/vega-explorer/apollo.config.js diff --git a/apps/vega-explorer/craco.config.js b/apps/vega-explorer/craco.config.js new file mode 100644 index 000000000..997d4e659 --- /dev/null +++ b/apps/vega-explorer/craco.config.js @@ -0,0 +1,40 @@ + + const path = require('path'); + const TsConfigPathsPlugin = require('tsconfig-paths-webpack-plugin'); + const ModuleScopePlugin = require('react-dev-utils/ModuleScopePlugin'); + module.exports = { + webpack: { + configure: (config) => { + // Remove guard against importing modules outside of `src`. + // Needed for workspace projects. + config.resolve.plugins = config.resolve.plugins.filter( + (plugin) => !(plugin instanceof ModuleScopePlugin) + ); + // Add support for importing workspace projects. + config.resolve.plugins.push( + new TsConfigPathsPlugin({ + configFile: path.resolve(__dirname, 'tsconfig.json'), + extensions: ['.ts', '.tsx', '.js', '.jsx'], + mainFields: ['module', 'main'], + }) + ); + + // Replace include option for babel loader with exclude + // so babel will handle workspace projects as well. + config.module.rules[1].oneOf.forEach((r) => { + if (r.loader && r.loader.indexOf('babel') !== -1) { + r.exclude = /node_modules/; + delete r.include; + } + }); + return config; + }, + }, + jest: { + configure: (config) => { + config.resolver = '@nrwl/jest/plugins/resolver'; + return config; + }, + }, + }; + \ No newline at end of file diff --git a/apps/block-explorer/netlify.toml b/apps/vega-explorer/netlify.toml similarity index 100% rename from apps/block-explorer/netlify.toml rename to apps/vega-explorer/netlify.toml diff --git a/apps/block-explorer/package.json b/apps/vega-explorer/package.json similarity index 85% rename from apps/block-explorer/package.json rename to apps/vega-explorer/package.json index 6464adaeb..fd08bcd10 100644 --- a/apps/block-explorer/package.json +++ b/apps/vega-explorer/package.json @@ -1,7 +1,6 @@ { "name": "vega-explorer", "version": "0.1.0", - "private": true, "dependencies": { "@apollo/client": "^3.5.8", "@testing-library/jest-dom": "^5.16.2", @@ -22,11 +21,12 @@ "web-vitals": "^2.1.4" }, "scripts": { - "start": "react-scripts start", - "build": "react-scripts build", - "test": "react-scripts test", + "start": "craco start", + "build": "BUILD_PATH=../../dist/apps/vega-explorer craco build", + "test": "craco test", "eject": "react-scripts eject", - "generate": "env-cmd yarn apollo codegen:generate --target=typescript --globalTypesFile=src/__generated__/globalTypes.ts" + "generate": "env-cmd yarn apollo codegen:generate --target=typescript --globalTypesFile=src/__generated__/globalTypes.ts", + "serve": "npm start" }, "eslintConfig": { "extends": [ @@ -54,4 +54,4 @@ "resolutions": { "graphql": "15.8.0" } -} \ No newline at end of file +} diff --git a/apps/vega-explorer/project.json b/apps/vega-explorer/project.json new file mode 100644 index 000000000..ff271380b --- /dev/null +++ b/apps/vega-explorer/project.json @@ -0,0 +1,6 @@ +{ + "root": "apps/vega-explorer", + "sourceRoot": "apps/vega-explorer/src", + "projectType": "application", + "tags": [] +} \ No newline at end of file diff --git a/apps/block-explorer/public/favicon.ico b/apps/vega-explorer/public/favicon.ico similarity index 100% rename from apps/block-explorer/public/favicon.ico rename to apps/vega-explorer/public/favicon.ico diff --git a/apps/block-explorer/public/index.html b/apps/vega-explorer/public/index.html similarity index 100% rename from apps/block-explorer/public/index.html rename to apps/vega-explorer/public/index.html diff --git a/apps/block-explorer/public/logo192.png b/apps/vega-explorer/public/logo192.png similarity index 100% rename from apps/block-explorer/public/logo192.png rename to apps/vega-explorer/public/logo192.png diff --git a/apps/block-explorer/public/logo512.png b/apps/vega-explorer/public/logo512.png similarity index 100% rename from apps/block-explorer/public/logo512.png rename to apps/vega-explorer/public/logo512.png diff --git a/apps/block-explorer/public/manifest.json b/apps/vega-explorer/public/manifest.json similarity index 100% rename from apps/block-explorer/public/manifest.json rename to apps/vega-explorer/public/manifest.json diff --git a/apps/block-explorer/public/robots.txt b/apps/vega-explorer/public/robots.txt similarity index 100% rename from apps/block-explorer/public/robots.txt rename to apps/vega-explorer/public/robots.txt diff --git a/apps/block-explorer/src/App.scss b/apps/vega-explorer/src/App.scss similarity index 100% rename from apps/block-explorer/src/App.scss rename to apps/vega-explorer/src/App.scss diff --git a/apps/block-explorer/src/App.test.tsx b/apps/vega-explorer/src/App.test.tsx similarity index 100% rename from apps/block-explorer/src/App.test.tsx rename to apps/vega-explorer/src/App.test.tsx diff --git a/apps/block-explorer/src/App.tsx b/apps/vega-explorer/src/App.tsx similarity index 100% rename from apps/block-explorer/src/App.tsx rename to apps/vega-explorer/src/App.tsx diff --git a/apps/block-explorer/src/__generated__/globalTypes.ts b/apps/vega-explorer/src/__generated__/globalTypes.ts similarity index 100% rename from apps/block-explorer/src/__generated__/globalTypes.ts rename to apps/vega-explorer/src/__generated__/globalTypes.ts diff --git a/apps/block-explorer/src/components/footer/index.tsx b/apps/vega-explorer/src/components/footer/index.tsx similarity index 100% rename from apps/block-explorer/src/components/footer/index.tsx rename to apps/vega-explorer/src/components/footer/index.tsx diff --git a/apps/block-explorer/src/components/header/index.tsx b/apps/vega-explorer/src/components/header/index.tsx similarity index 100% rename from apps/block-explorer/src/components/header/index.tsx rename to apps/vega-explorer/src/components/header/index.tsx diff --git a/apps/block-explorer/src/components/main/index.tsx b/apps/vega-explorer/src/components/main/index.tsx similarity index 100% rename from apps/block-explorer/src/components/main/index.tsx rename to apps/vega-explorer/src/components/main/index.tsx diff --git a/apps/block-explorer/src/components/nav/index.tsx b/apps/vega-explorer/src/components/nav/index.tsx similarity index 100% rename from apps/block-explorer/src/components/nav/index.tsx rename to apps/vega-explorer/src/components/nav/index.tsx diff --git a/apps/block-explorer/src/components/router-error-boundary/index.tsx b/apps/vega-explorer/src/components/router-error-boundary/index.tsx similarity index 100% rename from apps/block-explorer/src/components/router-error-boundary/index.tsx rename to apps/vega-explorer/src/components/router-error-boundary/index.tsx diff --git a/apps/block-explorer/src/components/search/index.tsx b/apps/vega-explorer/src/components/search/index.tsx similarity index 100% rename from apps/block-explorer/src/components/search/index.tsx rename to apps/vega-explorer/src/components/search/index.tsx diff --git a/apps/block-explorer/src/components/splash-loader/index.ts b/apps/vega-explorer/src/components/splash-loader/index.ts similarity index 100% rename from apps/block-explorer/src/components/splash-loader/index.ts rename to apps/vega-explorer/src/components/splash-loader/index.ts diff --git a/apps/block-explorer/src/components/splash-loader/splash-loader.scss b/apps/vega-explorer/src/components/splash-loader/splash-loader.scss similarity index 100% rename from apps/block-explorer/src/components/splash-loader/splash-loader.scss rename to apps/vega-explorer/src/components/splash-loader/splash-loader.scss diff --git a/apps/block-explorer/src/components/splash-loader/splash-loader.tsx b/apps/vega-explorer/src/components/splash-loader/splash-loader.tsx similarity index 100% rename from apps/block-explorer/src/components/splash-loader/splash-loader.tsx rename to apps/vega-explorer/src/components/splash-loader/splash-loader.tsx diff --git a/apps/block-explorer/src/components/splash-screen/index.ts b/apps/vega-explorer/src/components/splash-screen/index.ts similarity index 100% rename from apps/block-explorer/src/components/splash-screen/index.ts rename to apps/vega-explorer/src/components/splash-screen/index.ts diff --git a/apps/block-explorer/src/components/splash-screen/splash-screen.scss b/apps/vega-explorer/src/components/splash-screen/splash-screen.scss similarity index 100% rename from apps/block-explorer/src/components/splash-screen/splash-screen.scss rename to apps/vega-explorer/src/components/splash-screen/splash-screen.scss diff --git a/apps/block-explorer/src/components/splash-screen/splash-screen.tsx b/apps/vega-explorer/src/components/splash-screen/splash-screen.tsx similarity index 100% rename from apps/block-explorer/src/components/splash-screen/splash-screen.tsx rename to apps/vega-explorer/src/components/splash-screen/splash-screen.tsx diff --git a/apps/block-explorer/src/config/index.tsx b/apps/vega-explorer/src/config/index.tsx similarity index 100% rename from apps/block-explorer/src/config/index.tsx rename to apps/vega-explorer/src/config/index.tsx diff --git a/apps/block-explorer/src/contexts/websocket/tendermint-websocket-context.ts b/apps/vega-explorer/src/contexts/websocket/tendermint-websocket-context.ts similarity index 100% rename from apps/block-explorer/src/contexts/websocket/tendermint-websocket-context.ts rename to apps/vega-explorer/src/contexts/websocket/tendermint-websocket-context.ts diff --git a/apps/block-explorer/src/contexts/websocket/tendermint-websocket-provider.tsx b/apps/vega-explorer/src/contexts/websocket/tendermint-websocket-provider.tsx similarity index 100% rename from apps/block-explorer/src/contexts/websocket/tendermint-websocket-provider.tsx rename to apps/vega-explorer/src/contexts/websocket/tendermint-websocket-provider.tsx diff --git a/apps/block-explorer/src/hooks/use-fetch.tsx b/apps/vega-explorer/src/hooks/use-fetch.tsx similarity index 100% rename from apps/block-explorer/src/hooks/use-fetch.tsx rename to apps/vega-explorer/src/hooks/use-fetch.tsx diff --git a/apps/block-explorer/src/hooks/use-tendermint-websocket.tsx b/apps/vega-explorer/src/hooks/use-tendermint-websocket.tsx similarity index 100% rename from apps/block-explorer/src/hooks/use-tendermint-websocket.tsx rename to apps/vega-explorer/src/hooks/use-tendermint-websocket.tsx diff --git a/apps/block-explorer/src/index.tsx b/apps/vega-explorer/src/index.tsx similarity index 100% rename from apps/block-explorer/src/index.tsx rename to apps/vega-explorer/src/index.tsx diff --git a/apps/block-explorer/src/lib/apollo-client.tsx b/apps/vega-explorer/src/lib/apollo-client.tsx similarity index 100% rename from apps/block-explorer/src/lib/apollo-client.tsx rename to apps/vega-explorer/src/lib/apollo-client.tsx diff --git a/apps/block-explorer/src/react-app-env.d.ts b/apps/vega-explorer/src/react-app-env.d.ts similarity index 100% rename from apps/block-explorer/src/react-app-env.d.ts rename to apps/vega-explorer/src/react-app-env.d.ts diff --git a/apps/block-explorer/src/reportWebVitals.ts b/apps/vega-explorer/src/reportWebVitals.ts similarity index 100% rename from apps/block-explorer/src/reportWebVitals.ts rename to apps/vega-explorer/src/reportWebVitals.ts diff --git a/apps/block-explorer/src/routes/assets/__generated__/AssetsQuery.ts b/apps/vega-explorer/src/routes/assets/__generated__/AssetsQuery.ts similarity index 100% rename from apps/block-explorer/src/routes/assets/__generated__/AssetsQuery.ts rename to apps/vega-explorer/src/routes/assets/__generated__/AssetsQuery.ts diff --git a/apps/block-explorer/src/routes/assets/index.tsx b/apps/vega-explorer/src/routes/assets/index.tsx similarity index 100% rename from apps/block-explorer/src/routes/assets/index.tsx rename to apps/vega-explorer/src/routes/assets/index.tsx diff --git a/apps/block-explorer/src/routes/blocks/home/index.tsx b/apps/vega-explorer/src/routes/blocks/home/index.tsx similarity index 100% rename from apps/block-explorer/src/routes/blocks/home/index.tsx rename to apps/vega-explorer/src/routes/blocks/home/index.tsx diff --git a/apps/block-explorer/src/routes/blocks/id/index.tsx b/apps/vega-explorer/src/routes/blocks/id/index.tsx similarity index 100% rename from apps/block-explorer/src/routes/blocks/id/index.tsx rename to apps/vega-explorer/src/routes/blocks/id/index.tsx diff --git a/apps/block-explorer/src/routes/blocks/index.tsx b/apps/vega-explorer/src/routes/blocks/index.tsx similarity index 100% rename from apps/block-explorer/src/routes/blocks/index.tsx rename to apps/vega-explorer/src/routes/blocks/index.tsx diff --git a/apps/block-explorer/src/routes/blocks/tendermint-blockchain-response.d.ts b/apps/vega-explorer/src/routes/blocks/tendermint-blockchain-response.d.ts similarity index 100% rename from apps/block-explorer/src/routes/blocks/tendermint-blockchain-response.d.ts rename to apps/vega-explorer/src/routes/blocks/tendermint-blockchain-response.d.ts diff --git a/apps/block-explorer/src/routes/blocks/tendermint-blocks-response.d.ts b/apps/vega-explorer/src/routes/blocks/tendermint-blocks-response.d.ts similarity index 100% rename from apps/block-explorer/src/routes/blocks/tendermint-blocks-response.d.ts rename to apps/vega-explorer/src/routes/blocks/tendermint-blocks-response.d.ts diff --git a/apps/block-explorer/src/routes/blocks/tendermint-new-block.d.ts b/apps/vega-explorer/src/routes/blocks/tendermint-new-block.d.ts similarity index 100% rename from apps/block-explorer/src/routes/blocks/tendermint-new-block.d.ts rename to apps/vega-explorer/src/routes/blocks/tendermint-new-block.d.ts diff --git a/apps/block-explorer/src/routes/genesis/index.tsx b/apps/vega-explorer/src/routes/genesis/index.tsx similarity index 100% rename from apps/block-explorer/src/routes/genesis/index.tsx rename to apps/vega-explorer/src/routes/genesis/index.tsx diff --git a/apps/block-explorer/src/routes/genesis/tendermint-genesis-response.d.ts b/apps/vega-explorer/src/routes/genesis/tendermint-genesis-response.d.ts similarity index 100% rename from apps/block-explorer/src/routes/genesis/tendermint-genesis-response.d.ts rename to apps/vega-explorer/src/routes/genesis/tendermint-genesis-response.d.ts diff --git a/apps/block-explorer/src/routes/governance/__generated__/ProposalsQuery.ts b/apps/vega-explorer/src/routes/governance/__generated__/ProposalsQuery.ts similarity index 100% rename from apps/block-explorer/src/routes/governance/__generated__/ProposalsQuery.ts rename to apps/vega-explorer/src/routes/governance/__generated__/ProposalsQuery.ts diff --git a/apps/block-explorer/src/routes/governance/index.tsx b/apps/vega-explorer/src/routes/governance/index.tsx similarity index 100% rename from apps/block-explorer/src/routes/governance/index.tsx rename to apps/vega-explorer/src/routes/governance/index.tsx diff --git a/apps/block-explorer/src/routes/home/index.tsx b/apps/vega-explorer/src/routes/home/index.tsx similarity index 100% rename from apps/block-explorer/src/routes/home/index.tsx rename to apps/vega-explorer/src/routes/home/index.tsx diff --git a/apps/block-explorer/src/routes/index.tsx b/apps/vega-explorer/src/routes/index.tsx similarity index 100% rename from apps/block-explorer/src/routes/index.tsx rename to apps/vega-explorer/src/routes/index.tsx diff --git a/apps/block-explorer/src/routes/markets/__generated__/MarketsQuery.ts b/apps/vega-explorer/src/routes/markets/__generated__/MarketsQuery.ts similarity index 100% rename from apps/block-explorer/src/routes/markets/__generated__/MarketsQuery.ts rename to apps/vega-explorer/src/routes/markets/__generated__/MarketsQuery.ts diff --git a/apps/block-explorer/src/routes/markets/index.tsx b/apps/vega-explorer/src/routes/markets/index.tsx similarity index 100% rename from apps/block-explorer/src/routes/markets/index.tsx rename to apps/vega-explorer/src/routes/markets/index.tsx diff --git a/apps/block-explorer/src/routes/network-parameters/__generated__/NetworkParametersQuery.ts b/apps/vega-explorer/src/routes/network-parameters/__generated__/NetworkParametersQuery.ts similarity index 100% rename from apps/block-explorer/src/routes/network-parameters/__generated__/NetworkParametersQuery.ts rename to apps/vega-explorer/src/routes/network-parameters/__generated__/NetworkParametersQuery.ts diff --git a/apps/block-explorer/src/routes/network-parameters/index.tsx b/apps/vega-explorer/src/routes/network-parameters/index.tsx similarity index 100% rename from apps/block-explorer/src/routes/network-parameters/index.tsx rename to apps/vega-explorer/src/routes/network-parameters/index.tsx diff --git a/apps/block-explorer/src/routes/parties/home/index.tsx b/apps/vega-explorer/src/routes/parties/home/index.tsx similarity index 100% rename from apps/block-explorer/src/routes/parties/home/index.tsx rename to apps/vega-explorer/src/routes/parties/home/index.tsx diff --git a/apps/block-explorer/src/routes/parties/id/__generated__/PartyAssetsQuery.ts b/apps/vega-explorer/src/routes/parties/id/__generated__/PartyAssetsQuery.ts similarity index 100% rename from apps/block-explorer/src/routes/parties/id/__generated__/PartyAssetsQuery.ts rename to apps/vega-explorer/src/routes/parties/id/__generated__/PartyAssetsQuery.ts diff --git a/apps/block-explorer/src/routes/parties/id/index.tsx b/apps/vega-explorer/src/routes/parties/id/index.tsx similarity index 100% rename from apps/block-explorer/src/routes/parties/id/index.tsx rename to apps/vega-explorer/src/routes/parties/id/index.tsx diff --git a/apps/block-explorer/src/routes/parties/index.tsx b/apps/vega-explorer/src/routes/parties/index.tsx similarity index 100% rename from apps/block-explorer/src/routes/parties/index.tsx rename to apps/vega-explorer/src/routes/parties/index.tsx diff --git a/apps/block-explorer/src/routes/parties/tendermint-transaction-response.d.ts b/apps/vega-explorer/src/routes/parties/tendermint-transaction-response.d.ts similarity index 100% rename from apps/block-explorer/src/routes/parties/tendermint-transaction-response.d.ts rename to apps/vega-explorer/src/routes/parties/tendermint-transaction-response.d.ts diff --git a/apps/block-explorer/src/routes/router-config.ts b/apps/vega-explorer/src/routes/router-config.ts similarity index 100% rename from apps/block-explorer/src/routes/router-config.ts rename to apps/vega-explorer/src/routes/router-config.ts diff --git a/apps/block-explorer/src/routes/txs/home/index.tsx b/apps/vega-explorer/src/routes/txs/home/index.tsx similarity index 100% rename from apps/block-explorer/src/routes/txs/home/index.tsx rename to apps/vega-explorer/src/routes/txs/home/index.tsx diff --git a/apps/block-explorer/src/routes/txs/id/index.tsx b/apps/vega-explorer/src/routes/txs/id/index.tsx similarity index 100% rename from apps/block-explorer/src/routes/txs/id/index.tsx rename to apps/vega-explorer/src/routes/txs/id/index.tsx diff --git a/apps/block-explorer/src/routes/txs/index.tsx b/apps/vega-explorer/src/routes/txs/index.tsx similarity index 100% rename from apps/block-explorer/src/routes/txs/index.tsx rename to apps/vega-explorer/src/routes/txs/index.tsx diff --git a/apps/block-explorer/src/routes/txs/tendermint-transaction-response.d.tsx b/apps/vega-explorer/src/routes/txs/tendermint-transaction-response.d.tsx similarity index 100% rename from apps/block-explorer/src/routes/txs/tendermint-transaction-response.d.tsx rename to apps/vega-explorer/src/routes/txs/tendermint-transaction-response.d.tsx diff --git a/apps/block-explorer/src/routes/txs/tendermint-unconfirmed-transactions-response.d.tsx b/apps/vega-explorer/src/routes/txs/tendermint-unconfirmed-transactions-response.d.tsx similarity index 100% rename from apps/block-explorer/src/routes/txs/tendermint-unconfirmed-transactions-response.d.tsx rename to apps/vega-explorer/src/routes/txs/tendermint-unconfirmed-transactions-response.d.tsx diff --git a/apps/block-explorer/src/routes/types/chain-explorer-response.d.ts b/apps/vega-explorer/src/routes/types/chain-explorer-response.d.ts similarity index 100% rename from apps/block-explorer/src/routes/types/chain-explorer-response.d.ts rename to apps/vega-explorer/src/routes/types/chain-explorer-response.d.ts diff --git a/apps/block-explorer/src/routes/types/tenderming-error-response.d.ts b/apps/vega-explorer/src/routes/types/tenderming-error-response.d.ts similarity index 100% rename from apps/block-explorer/src/routes/types/tenderming-error-response.d.ts rename to apps/vega-explorer/src/routes/types/tenderming-error-response.d.ts diff --git a/apps/block-explorer/src/routes/validators/__generated__/NodesQuery.ts b/apps/vega-explorer/src/routes/validators/__generated__/NodesQuery.ts similarity index 100% rename from apps/block-explorer/src/routes/validators/__generated__/NodesQuery.ts rename to apps/vega-explorer/src/routes/validators/__generated__/NodesQuery.ts diff --git a/apps/block-explorer/src/routes/validators/index.tsx b/apps/vega-explorer/src/routes/validators/index.tsx similarity index 100% rename from apps/block-explorer/src/routes/validators/index.tsx rename to apps/vega-explorer/src/routes/validators/index.tsx diff --git a/apps/block-explorer/src/routes/validators/tendermint-validator-response.tsx b/apps/vega-explorer/src/routes/validators/tendermint-validator-response.tsx similarity index 100% rename from apps/block-explorer/src/routes/validators/tendermint-validator-response.tsx rename to apps/vega-explorer/src/routes/validators/tendermint-validator-response.tsx diff --git a/apps/block-explorer/src/setupTests.ts b/apps/vega-explorer/src/setupTests.ts similarity index 100% rename from apps/block-explorer/src/setupTests.ts rename to apps/vega-explorer/src/setupTests.ts diff --git a/apps/block-explorer/src/styles/AlphaLyrae-Medium.woff b/apps/vega-explorer/src/styles/AlphaLyrae-Medium.woff similarity index 100% rename from apps/block-explorer/src/styles/AlphaLyrae-Medium.woff rename to apps/vega-explorer/src/styles/AlphaLyrae-Medium.woff diff --git a/apps/block-explorer/src/styles/_colors.scss b/apps/vega-explorer/src/styles/_colors.scss similarity index 100% rename from apps/block-explorer/src/styles/_colors.scss rename to apps/vega-explorer/src/styles/_colors.scss diff --git a/apps/block-explorer/src/styles/_fonts.scss b/apps/vega-explorer/src/styles/_fonts.scss similarity index 100% rename from apps/block-explorer/src/styles/_fonts.scss rename to apps/vega-explorer/src/styles/_fonts.scss diff --git a/apps/block-explorer/src/styles/_reset.scss b/apps/vega-explorer/src/styles/_reset.scss similarity index 100% rename from apps/block-explorer/src/styles/_reset.scss rename to apps/vega-explorer/src/styles/_reset.scss diff --git a/apps/vega-explorer/tsconfig.app.json b/apps/vega-explorer/tsconfig.app.json new file mode 100644 index 000000000..b8ec985ee --- /dev/null +++ b/apps/vega-explorer/tsconfig.app.json @@ -0,0 +1,23 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "../../dist/out-tsc", + "types": [ + "node" + ] + }, + "files": [ + "../../node_modules/@nrwl/react/typings/cssmodule.d.ts", + "../../node_modules/@nrwl/react/typings/image.d.ts" + ], + "exclude": [ + "**/*.spec.ts", + "**/*.spec.tsx" + ], + "include": [ + "**/*.js", + "**/*.jsx", + "**/*.ts", + "**/*.tsx" + ] +} \ No newline at end of file diff --git a/apps/block-explorer/tsconfig.json b/apps/vega-explorer/tsconfig.json similarity index 88% rename from apps/block-explorer/tsconfig.json rename to apps/vega-explorer/tsconfig.json index a273b0cfc..0eeb27614 100644 --- a/apps/block-explorer/tsconfig.json +++ b/apps/vega-explorer/tsconfig.json @@ -18,9 +18,10 @@ "resolveJsonModule": true, "isolatedModules": true, "noEmit": true, - "jsx": "react-jsx" + "jsx": "react" }, "include": [ "src" - ] -} + ], + "extends": "../../tsconfig.base.json" +} \ No newline at end of file diff --git a/apps/vega-explorer/tsconfig.spec.json b/apps/vega-explorer/tsconfig.spec.json new file mode 100644 index 000000000..dd32e3b01 --- /dev/null +++ b/apps/vega-explorer/tsconfig.spec.json @@ -0,0 +1,22 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "../../dist/out-tsc", + "module": "commonjs", + "types": [ + "jest", + "node" + ] + }, + "include": [ + "**/*.spec.ts", + "**/*.spec.tsx", + "**/*.spec.js", + "**/*.spec.jsx", + "**/*.d.ts" + ], + "files": [ + "../../node_modules/@nrwl/react/typings/cssmodule.d.ts", + "../../node_modules/@nrwl/react/typings/image.d.ts" + ] +} \ No newline at end of file diff --git a/apps/block-explorer/yarn.lock b/apps/vega-explorer/yarn.lock similarity index 100% rename from apps/block-explorer/yarn.lock rename to apps/vega-explorer/yarn.lock