Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to test changes and publish new version #5

Open
bvssvni opened this issue Jun 24, 2016 · 0 comments
Open

How to test changes and publish new version #5

bvssvni opened this issue Jun 24, 2016 · 0 comments

Comments

@bvssvni
Copy link
Member

bvssvni commented Jun 24, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant