Skip to content

Commit

Permalink
feat: upgrade nx next, explorer, sia central libs
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfreska committed Sep 12, 2023
1 parent 54fa1b2 commit 03515e0
Show file tree
Hide file tree
Showing 358 changed files with 14,525 additions and 10,511 deletions.
5 changes: 5 additions & 0 deletions .changeset/funny-moose-obey.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'explorer': minor
---

All explorer pages now show details in their open graph preview images.
5 changes: 5 additions & 0 deletions .changeset/hot-chicken-wave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'explorer': minor
---

Contracts now show a visual timeline and status.
5 changes: 5 additions & 0 deletions .changeset/thick-dingos-marry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'explorer': minor
---

The explorer no longer depends on Navigator.
5 changes: 5 additions & 0 deletions .changeset/witty-eggs-fail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'explorer': minor
---

The explorer has been revamped and not supports searching for and viewing hosts.
8 changes: 4 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"root": true,
"ignorePatterns": ["**/*"],
"plugins": ["@nrwl/nx"],
"plugins": ["@nx"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"@nrwl/nx/enforce-module-boundaries": [
"@nx/enforce-module-boundaries": [
"error",
{
"enforceBuildableLibDependency": true,
Expand All @@ -23,12 +23,12 @@
},
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nrwl/nx/typescript"],
"extends": ["plugin:@nx/typescript"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nrwl/nx/javascript"],
"extends": ["plugin:@nx/javascript"],
"rules": {}
}
]
Expand Down
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@ User interfaces for the Sia software. The latest Sia software takes a modular ap

The [`renterd`](https://github.com/siafoundation/renterd) user interface, focused on renting functionality.

### [explorer-v1](apps/explorer-v1)

![stability-mature](https://img.shields.io/badge/stability-mature-008000.svg)

The `explorer-v1` user interface, a Sia blockchain explorer interface based on [Navigator](https://github.com/hakkane84/navigator-sia). Powers [explore.sia.tech](https://explore.sia.tech) and [zen.sia.tech](https://zen.sia.tech).

### [hostd](apps/hostd)

![stability-beta](https://img.shields.io/badge/stability-beta-yellow.svg)
Expand All @@ -32,6 +26,12 @@ The [`hostd`](https://github.com/siafoundation/hostd) user interface, focused on

The [`walletd`](https://github.com/siafoundation/walletd) user interface, includes a wallet with support for hot, cold, and hardware wallets.

### [explorer](apps/explorer)

![stability-mature](https://img.shields.io/badge/stability-mature-008000.svg)

The `explorer` user interface, a Sia blockchain explorer interface that powers [explore.sia.tech](https://explore.sia.tech) and [zen.sia.tech](https://zen.sia.tech).

## Libraries

![stability-wip](https://img.shields.io/badge/stability-work_in_progress-orange.svg)
Expand All @@ -45,6 +45,7 @@ The Sia web libraries provide developers with convenient TypeScript SDKs for usi
- [@siafoundation/react-hostd](libs/react-hostd) - React hooks for interacting with `hostd`.
- [@siafoundation/react-walletd](libs/react-walletd) - React hooks for interacting with `walletd`.
- [@siafoundation/react-sia-central](libs/react-sia-central) - React hooks for interacting with the Sia Central API.
- [@siafoundation/sia-central](libs/sia-central) - Methods and types for interacting with the Sia Central API.
- [@siafoundation/sia-js](libs/sia-js) - Core Sia types and library methods for v1 `siad`.
- [@siafoundation/sia-nodejs](libs/sia-nodejs) - Sia NodeJS client for controlling a v1 `siad`.
- [@siafoundation/design-system](libs/design-system) - React-based design system used across Sia apps and websites.
Expand Down
13 changes: 7 additions & 6 deletions apps/assets/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
export default {
displayName: 'assets',

globals: {
'ts-jest': {
tsconfig: '<rootDir>/tsconfig.spec.json',
},
},
globals: {},
testEnvironment: 'node',
transform: {
'^.+\\.[tj]s$': 'ts-jest',
'^.+\\.[tj]s$': [
'ts-jest',
{
tsconfig: '<rootDir>/tsconfig.spec.json',
},
],
},
moduleFileExtensions: ['ts', 'js', 'html'],
coverageDirectory: '../../coverage/apps/assets',
Expand Down
8 changes: 4 additions & 4 deletions apps/assets/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"projectType": "application",
"targets": {
"build": {
"executor": "@nrwl/webpack:webpack",
"executor": "@nx/webpack:webpack",
"outputs": ["{options.outputPath}"],
"options": {
"target": "node",
Expand Down Expand Up @@ -34,7 +34,7 @@
}
},
"serve": {
"executor": "@nrwl/js:node",
"executor": "@nx/js:node",
"options": {
"inspect": "inspect",
"buildTarget": "assets:build"
Expand All @@ -47,14 +47,14 @@
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"executor": "@nx/linter:eslint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["apps/assets/**/*.ts"]
}
},
"test": {
"executor": "@nrwl/jest:jest",
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/apps/assets"],
"options": {
"jestConfig": "apps/assets/jest.config.ts",
Expand Down
7 changes: 6 additions & 1 deletion apps/assets/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
"compilerOptions": {
"module": "commonjs",
"outDir": "../../dist/out-tsc",
"types": ["node", "express"],
"types": [
"node",
"express",
"@nx/react/typings/cssmodule.d.ts",
"@nx/react/typings/image.d.ts"
],
"esModuleInterop": true
},
"exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"],
Expand Down
7 changes: 6 additions & 1 deletion apps/assets/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"module": "commonjs",
"types": ["jest", "node"]
"types": [
"jest",
"node",
"@nx/react/typings/cssmodule.d.ts",
"@nx/react/typings/image.d.ts"
]
},
"include": [
"jest.config.ts",
Expand Down
2 changes: 1 addition & 1 deletion apps/assets/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { composePlugins, withNx } = require('@nrwl/webpack')
const { composePlugins, withNx } = require('@nx/webpack')

// Nx plugins for webpack.
module.exports = composePlugins(withNx(), (config) => {
Expand Down
13 changes: 7 additions & 6 deletions apps/crons/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
export default {
displayName: 'crons',

globals: {
'ts-jest': {
tsconfig: '<rootDir>/tsconfig.spec.json',
},
},
globals: {},
testEnvironment: 'node',
transform: {
'^.+\\.[tj]s$': 'ts-jest',
'^.+\\.[tj]s$': [
'ts-jest',
{
tsconfig: '<rootDir>/tsconfig.spec.json',
},
],
},
moduleFileExtensions: ['ts', 'js', 'html'],
coverageDirectory: '../../coverage/apps/crons',
Expand Down
8 changes: 4 additions & 4 deletions apps/crons/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"projectType": "application",
"targets": {
"build": {
"executor": "@nrwl/webpack:webpack",
"executor": "@nx/webpack:webpack",
"outputs": ["{options.outputPath}"],
"options": {
"target": "node",
Expand Down Expand Up @@ -34,7 +34,7 @@
}
},
"serve": {
"executor": "@nrwl/js:node",
"executor": "@nx/js:node",
"options": {
"inspect": "inspect",
"buildTarget": "crons:build"
Expand All @@ -47,14 +47,14 @@
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"executor": "@nx/linter:eslint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["apps/crons/**/*.ts"]
}
},
"test": {
"executor": "@nrwl/jest:jest",
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/apps/crons"],
"options": {
"jestConfig": "apps/crons/jest.config.ts",
Expand Down
7 changes: 6 additions & 1 deletion apps/crons/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
"compilerOptions": {
"module": "commonjs",
"outDir": "../../dist/out-tsc",
"types": ["node", "express"],
"types": [
"node",
"express",
"@nx/react/typings/cssmodule.d.ts",
"@nx/react/typings/image.d.ts"
],
"esModuleInterop": true
},
"exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"],
Expand Down
7 changes: 6 additions & 1 deletion apps/crons/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"module": "commonjs",
"types": ["jest", "node"]
"types": [
"jest",
"node",
"@nx/react/typings/cssmodule.d.ts",
"@nx/react/typings/image.d.ts"
]
},
"include": [
"jest.config.ts",
Expand Down
2 changes: 1 addition & 1 deletion apps/crons/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { composePlugins, withNx } = require('@nrwl/webpack')
const { composePlugins, withNx } = require('@nx/webpack')

// Nx plugins for webpack.
module.exports = composePlugins(withNx(), (config) => {
Expand Down
Loading

0 comments on commit 03515e0

Please sign in to comment.