This guide will give you all the necessary information you need to become a successful code contributor!
-
Install all the dependencies
$ npm install
-
Build the project
$ npm run build
This command will produce a zip file that can be load in Chrome: dist/asciidoctor-browser-extension.zip
-
Run tests
$ npm run test
Important
|
The tests suite is run against an Headless instance of Chromium. When you installed the development dependencies, Puppeteer had automatically installed Chromium for your platform. So you shouldn’t need to manually install Chromium or Chrome in order to run the tests suite. It’s not recommended, but if your are running the tests suite as
To workaround this issue you can run the following command instead: $ npm run test:nosandbox It will launch a Chromium instance with the |
This project is using a code linter to enforce code consistency. To make sure that the code you have contributed, follow the code rules, execute the following command:
$ npm run lint:code
Mozilla provides a Node.js package to validate an add-on.
You can run the linter with npm
:
$ npm run lint:firefox
Note
|
The linter will inspect the archive produced by npm run build , so make sure the file dist/asciidoctor-browser-extension.zip is present before running this command.
|
-
Build and run the tests
-
Make sure that everything is working fine by loading the extension as an "unpack extension"
-
Edit the
changelog.adoc
file -
Update the version in
app/manifest.json
-
Commit the changes
-
Tag the version
-
Connect to the Chrome Web Store developper dashboard
-
Update the package
-
Publish the new version
-
-
Connect to the Firefox Add-ons developper dashboard
-
Update the package
-
Publish the new version
-
-
Connect to the Opera Add-ons developper dashboard
-
Update the package
-
Publish the new version
-