Skip to content

Latest commit

 

History

History
45 lines (26 loc) · 1.16 KB

CONTRIBUTING.md

File metadata and controls

45 lines (26 loc) · 1.16 KB

Contributing Code

Setup

To build highlightjs-apex, you'll need the latest long term support (LTS) release of Node and npm. We recommend nvm to manage multiple active Node versions.

Start by cloning the source from GitHub:

$ git clone https://github.com/highlightjs/highlightjs-apex.git

Next, install the dependencies using npm:

$ npm i

Test

To execute the tests, open a terminal and type:

$ npm t

Build the distribution

To generate the dist file, we need to clone the highlight.js main repository:

$ git clone https://github.com/highlightjs/highlight.js
$ cd highlight.js

Then, install the dependencies:

$ npm i

Create an extra directory and clone the highlightjs-apex repository in it:

$ mkdir extra
$ cd extra
$ git clone https://github.com/highlightjs/highlightjs-apex
$ cd ..

Now we are ready to generate the dist file. Open a terminal and type:

$ node  --stack-size=65500  ./tools/build.js -t cdn

The generated file will be available in both build/languages/apex.min.js and extra/apex/dist/apex.min.js.