This repository has been archived by the owner on Apr 5, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SLATOM-6 Minor improvements, and debugging help (#3)
- Loading branch information
Janos Gyerik
committed
Jul 6, 2017
1 parent
b456c62
commit 6cc4e07
Showing
4 changed files
with
88 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
Development notes | ||
================= | ||
|
||
Working on this package | ||
----------------------- | ||
|
||
### General tips | ||
|
||
- Install dependencies with `npm install` | ||
- Remove the installed package from `~/.atom/packages` if exists | ||
- Create a symlink to this Git clone in `~/.atom/packages` | ||
- Have two windows open, one for dev and one for reloading | ||
- To try the changes, reload the dev window with `window:reload` command (`control shift F5` in Linux) | ||
- See also: http://flight-manual.atom.io/hacking-atom/sections/debugging/ | ||
|
||
Hacking atom-languageclient | ||
--------------------------- | ||
|
||
Replace `node_modules/atom-languageclient` with your Git clone. | ||
|
||
To try the changes in Atom, run `npm install`, and reload the dev window. | ||
|
||
Run the tests with `npm run test`. | ||
|
||
The upstream GitHub project (to contribute changes) is at `atom/atom-languageclient`. | ||
|
||
You can enable debug logs with: | ||
|
||
atom.config.set('core.debugLSP', true) | ||
|
||
Packaging, publishing | ||
--------------------- | ||
|
||
### Build | ||
|
||
npm install | ||
|
||
### Execute tests | ||
|
||
atom --test spec | ||
|
||
### Test installation from personal repo | ||
|
||
apm install gh-user/repo | ||
|
||
### Publish | ||
|
||
Verify `package.json` content, especially version. | ||
|
||
apm publish minor | ||
|
||
See also: http://flight-manual.atom.io/hacking-atom/sections/publishing/ | ||
|
||
Misc | ||
---- | ||
|
||
### Lifecycle of a package | ||
|
||
This document explains nicely the steps performed during the startup of a package: | ||
|
||
http://flight-manual.atom.io/hacking-atom/sections/package-word-count/ | ||
|
||
### Generate clean new package | ||
|
||
It can be helpful sometimes to start clean. | ||
|
||
- Generate package using command (`control shift p`) | ||
- Creates a folder with basic files | ||
- Registers the folder in ~/.atom/packages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters