mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
docs: added repo build guidelines in README.md (#909)
Helps developer start discovering the repo for coding.
This commit is contained in:
parent
16cac70aee
commit
4a887331c9
13
README.md
13
README.md
|
@ -446,6 +446,19 @@ var showdown = require('showdown'),
|
|||
converter = new showdown.Converter({ extensions: ['myExtension'] });
|
||||
```
|
||||
|
||||
## Building
|
||||
|
||||
Building your clone of the repository is easy.
|
||||
> Prerequesites: [Node.js](https://nodejs.org/) v12, [npm](https://www.npmjs.com/package/npm) and [npx](https://www.npmjs.com/package/npx) must be installed.
|
||||
|
||||
1. run `npm install`.
|
||||
2. run `npx grunt build` (see [`Gruntfile.js`](/Gruntfile.js)). This command:
|
||||
|
||||
1. Cleans the repo.
|
||||
2. Checks code quality ([JSHint](https://jshint.com/) and [ESLint](https://eslint.org/)).
|
||||
3. Runs tests.
|
||||
4. Creates the [distributable](/showdown.js) and [minified](/showdown.min.js) files in the [`dist`](/dist) folder.
|
||||
|
||||
## Tests
|
||||
|
||||
A suite of tests is available which require Node.js. Once Node is installed, run the following command from
|
||||
|
|
Loading…
Reference in New Issue
Block a user