Jump to content

User:Novem Linguae/Essays/Deployment notes

From Wikipedia, the free encyclopedia

To deploy a gadget means to run a script that takes its code from GitHub and writes it to the corresponding MediaWiki:Gadget- pages on enwiki.

AFCH

[edit]

Twinkle

[edit]

XFDcloser

[edit]
  • sync your forked github to main github using github's web interface
  • git checkout master
  • git pull
  • bump version number
    • node bin/version --bump --patch - bug fixes
    • node bin/version --bump --minor - features
    • node bin/version --bump --major - UI rewrite, shifting coding paradigms
  • create PR, squash and merge
  • sync your forked github to main github using github's web interface
  • npm run build - takes 1 minute. minifies, runs tests, etc.
  • First time:
    • Special:BotPasswords
    • create credentials.json with { "username": "", "password": "" }
  • node bin/deploy.js (this is to deploy the beta version. a bunch of people use the beta version so don't skip this step)
    • Wikipedia subdomain: en
    • Beta deployment: y
    • Edit summary message:  
    • Press enter to start deploying
  • node bin/deploy.js (now do it again. this is to deploy the regular version)
    • Wikipedia subdomain: en
    • Beta deployment: n
    • Edit summary message:  
    • Press enter to start deploying