To use apm command, follow this to add apm to your PATH: https://stackoverflow.com/questions/38138900/complete-guide-for-installing-apm-on-windows/41353271
Install package:
- Via website: https://atom.io/packages/barebone-atom-package
- Via Atom: File > Settings > Install > Search "barebone-atom-package" > Install
- Via apm command: apm install barebone-atom-package
Edit and run instruction:
- It's recommended to uninstall this package first before making any edit.
- Go to
C:\Users\<username>\.atom\packages
and clone this repository - Reload Atom and try to use package:
Ctrl+Shift+I
to open devtool >Ctrl+Shift+P
> Type and runbarebone:Owo
> seeOwo
in the devtool console - Make some edits
- Reload Atom by open "Command Palette" (Ctrl+Shift+P) > Window Reload
- See result
Push to Github and update package, in command line, type following:
- git fetch
- git status
- git add .
- git commit -m "update something"
- git push
- (optional) git tag
- update package in atom site: apm publish major/minor/patch
Publish your package to atom site:
- Make sure you have requirements for publishing a package (package.json and git tag): https://flight-manual.atom.io/hacking-atom/sections/publishing/
- Open command line, go to your package folder
- You may need to connect with your atom account via apm command
- Change git local user (remove --global tag): https://stackoverflow.com/questions/22844806/how-to-change-my-git-username-in-terminal
- Type: git tag
- Type "apm publish major/minor/patch" (see more at https://flight-manual.atom.io/hacking-atom/sections/publishing/)
- Congrats!
Uninstall package:
- Via Atom: File > Settings > Packages > Search "barebone-atom-package" > Uninstall
- Via apm command: apm uninstall barebone-atom-package