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

Force upgrade NPM everything #196

Merged
merged 2 commits into from
Nov 26, 2022
Merged

Force upgrade NPM everything #196

merged 2 commits into from
Nov 26, 2022

Conversation

BryanQuigley
Copy link
Collaborator

We will be able to remove many components when removing the frontend editing components, but without these changes I couldn't get webpack to build - which means properly testing it was hard.

@timwis
Copy link
Owner

timwis commented Nov 25, 2022

Happy to test this locally—just to flag, though, that #203 is close enough that I'll be able to remove the built-in admin/editing UI soon, which will remove like 90% of the JavaScript. Not that there are many dependencies, to be fair.

I'm at a wedding at the moment, so it might be a few days before I can review—from the looks of it, it's just the build tools, so I'd say if it builds successfully for you, feel free to merge so you're not blocked.

We will be able to remove many components when removing the frontend
editing components, but without these changes I couldn't get webpack
to build - which means properly testing it was hard.
@BryanQuigley
Copy link
Collaborator Author

It can wait - I had to do this to look at removing any parts of the old UI editing bits. But your mileage might be better.

Enjoy the weeding!

package.json Outdated
@@ -7,7 +7,7 @@
"test": "echo \"Error: no test specified\" && exit 1",
"start": "webpack-dev-server --progress --colors",
"watch": "NODE_ENV=development webpack -d -w",
Copy link
Owner

Choose a reason for hiding this comment

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

I get an error when I run this line, about the devtool syntax being invalid. Looks like that's because -d no longer stands for development in webpack 5, but instead stands for devtool. The way I got it to work was to change this line to:

webpack --mode=development --watch

Note that setting it to development mode also sets NODE_ENV to development (source).

Gosh, once we remove the bulk of the JS, let's consider moving to one of the simpler alternatives to webpack!

Also remove unused start script
@timwis timwis merged commit 54b94e1 into timwis:gh-pages Nov 26, 2022
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.

None yet

2 participants