PistonDevelopers / atom-language-dyon

Dyon language support in Atom
MIT License
4 stars 1 forks source link

How to test changes and publish new version #5

Open bvssvni opened 8 years ago

bvssvni commented 8 years ago

OSX

In the Terminal window, type:

$ open ~/.atom

Copy package and reload window

Copy the content of the atom-language-dyon project folder to this folder:

./atom/packages/language-dyon

Such that you have this file hierarchy:

language-dyon
|- grammars
|- images
|- ...

Then, if you have the Atom editor opened, hit (OSX):

Shift + Cmd + P

and type:

Window: Reload

hit Enter.

The Atom window should become white for a second while it reloads the packages.

Now you should see the changes made to the package.

Commit changes and publish new version

Before you publish, you must commit the changes, using git or a Github UI.

The remote url of origin must be set to PistonDevelopers:

$ git remote show origin
* remote origin
  Fetch URL: https://github.com/PistonDevelopers/atom-language-dyon.git
  Push  URL: https://github.com/PistonDevelopers/atom-language-dyon.git
  HEAD branch: master
  Remote branch:
    master tracked
  Local branch configured for 'git pull':
    master merges with remote master
  Local ref configured for 'git push':
    master pushes to master (up to date)

If you have made a small change, use this command:

apm publish patch

If you are making a bigger change, use this command:

apm publish minor

If you are making a breaking change, such as updating the package for a new major release version of Dyon, use this command:

apm publish major

These commands will automatically increase the version number and add a tag on the PistonDevelopers repository. The Atom package register will be updated.

Update Dyon package in Atom

After publishing, you can now go to "Preferences/Packages" in Atom and find the item listing "language-dyon". Click the update button.