JPM is ready for beta testers!
If you don’t already know
jpm is a new NodeJS based command line tool to replace the older python based
cfx tool. It also uses
npm for third party modules instead of our legacy ways to use 3rd party modules.
To get started, do the following:
npm install jpm
jpm initto create a new add-on
- Add npm dependencies, and run
npm installto install them
- Create a cool add-on!
- Run the add-on with this command
jpm run -b /path/to/Nightly.app
- Write tests
- Run tests with this command
jpm test -b /path/to/Nightly.app
At the moment you’ll have to use the
-b flag and point to your installation of Firefox Nightly.
You can find more information on JPM here.
I’ve made a simple example add-on at erikvold/markdown-viewer which is using an npm module for the markdown rendering.
The project is on github at mozilla/jpm and at least for now we are managing issues on github as well at https://github.com/mozilla/jpm/issues so if you have any questions or notice issues please report them here.