FanaroEngineering / fanaro.io

Where I expose cool stuff about Go (Baduk or Weiqi), programming, productivity, psychology, philosophy, etc.
https://fanaro.io
Other
6 stars 6 forks source link

Package The Core Code of My Website #75

Closed psygo closed 3 years ago

psygo commented 3 years ago

I've never done this in TS, nor JS. Maybe this could help other people. And also add another feather to my cap.

psygo commented 3 years ago

This is very simple:

  1. npm login
  2. Add the folders you want to ignore to .npmignore, similarly to what is done with .gitignore — see this for more info.
  3. npm publish

If anything goes wrong, use npm unpublish <package-name> --force to unpublish the package — you'll have to wait 24h to republish it.

psygo commented 3 years ago

I think I should also add a comment on the main page about this packaging, and maybe even create an article about it.