Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update frontend build system to shed old dependencies, and address fallout from that #521

Merged
merged 15 commits into from
Jan 27, 2023

Conversation

jsdw
Copy link
Collaborator

@jsdw jsdw commented Jan 26, 2023

This is mainly a pass just to bring things uptodate and try to be fairly standard in the libraries we use etc.

  • move to Jest for testing
  • new custom (but simple) Webpack 5 builds
  • 2023 copyright headers
  • remove various bits that don't appear to have been used for a while
  • NPM instead of yarn

I've tested this locally and all seems to work. One thing that would be good to check is that the docker builds still work OK. I think they should be fine but want to be sure that you can still pass in the SUBSTRATE_TELEMETRY_URL properly for instance.

@jsdw jsdw requested a review from a team as a code owner January 26, 2023 14:53
@jsdw jsdw requested a review from a team as a code owner January 26, 2023 14:54
@jsdw jsdw changed the title Update build system to shed old dependencies, and address fallout from that Update frontend build system to shed old dependencies, and address fallout from that Jan 26, 2023
@jsdw
Copy link
Collaborator Author

jsdw commented Jan 26, 2023

Ok, so I built the docker image locally (with podman instaed of docker; nice that this worked seamlessly) and it seems to work ok now and the SUBSTRATE_TELEMETRY_URL env var is respected.

@jsdw jsdw mentioned this pull request Jan 26, 2023
Copy link
Contributor

@lexnv lexnv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM based on my limited ts knowledge

Copy link

@marshacb marshacb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@jsdw jsdw merged commit 779c569 into master Jan 27, 2023
@jsdw jsdw deleted the jsdw-new-webpack branch January 27, 2023 14:13
Rose2161 pushed a commit to Cryptob3auty/mtsubstrate-telemen that referenced this pull request Apr 15, 2024
…llout from that (paritytech#521)

* get tests working and update copyright headers

* lint fix

* eslint ts update

* update CI to use NPM

* fix CI

* prettier

* npm, not yarn for docker

* remove unused package

* bump dockerfile to latest node LTS and no need for cache clean

* make frontend Dockerfile work and remove unused SUBSTRATE_TELEMETRY_SAMPLE

* remove final yarn references

* add another comment

* remove unused import

* remove more unused deps

* comment typo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants