2015-09-21 05:19:00 +08:00
|
|
|
# N1 Example Packages
|
|
|
|
|
|
|
|
Here you will find well-annotated samples to showcase how to build
|
|
|
|
packages in N1.
|
|
|
|
|
|
|
|
## Getting Started
|
|
|
|
|
2015-09-22 02:13:24 +08:00
|
|
|
1. Each package is in its own folder. To try out a package, copy the folder
|
|
|
|
into `$HOME/.nylas/packages`, run `apm install`, and restart N1.
|
|
|
|
2. The entry point of each package is the `activate` method of
|
2015-09-21 05:19:00 +08:00
|
|
|
`lib/main.cjsx`. Most packages do nothing but register themselves with
|
|
|
|
the `ComponentRegistry`
|
2015-09-22 02:13:24 +08:00
|
|
|
3. Read the annotated source code of the package files.
|