wikimedia-gadgets / afc-helper

A tool for reviewing Articles for Creation submissions on the English Wikipedia
https://en.wikipedia.org/wiki/Wikipedia:AFCH
GNU General Public License v3.0
37 stars 80 forks source link

[Dev] Create a way to serve the script locally #137

Closed enterprisey closed 3 years ago

enterprisey commented 3 years ago

As suggested by @NarayanBavisetti, npm start should serve the script locally (with an option to rebuild when the files change, or however it's supposed to be done) so that it can be loaded from localhost via a user's common.js page. This would be much, much easier than the current workflow, where each change must be built and uploaded to Wikipedia (described at https://en.wikipedia.org/wiki/Wikipedia:WikiProject_Articles_for_creation/Helper_script/Contributing#Uploading_the_code_to_Wikipedia).

enterprisey commented 3 years ago

npm start (using the server.js I added) sorta works, but is missing corresponding directions for the moment.

enterprisey commented 3 years ago

Ok, some not-very-good instructions have been added. I tried them and they worked on my machine, so I'm closing this.