Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 1.35 KB

CONTRIBUTING.md

File metadata and controls

49 lines (35 loc) · 1.35 KB

Contributing to Atlas guide

Code Contribution

Installation and preparation

  1. npm install
  2. npm run copyhooks (Needs to be run only once after git clone. This will install git hooks)
  3. Check editor config, linting plugins

Workflow

To regular workflow run gulp dev:atlas to start local server and compile all guide and stats.

To work only with styles run gulp dev to start local server with hot reload only of CSS files.

Debug

Debug with VSCode. Please add this configuration to the launch.json:

{
   "configurations": [
        {
            "type": "node",
            "request": "launch",
            "name": "Launch via NPM",
            "runtimeExecutable": "npm",
            "runtimeArgs": [ "run-script", "debug" ],
            "port": 9229
        }
    ]
}

Debug with WebStorm. Add this configuration to Run | Edit Configuration... > Node.js

Node parameters:        --inspect
Working directory:      <you dir>
JavaScript file:        ./bin/atlas-guide.js
Application parameters: --build

Additional resources: VSCode, WebStorm

Run tests

To run test pleas lunch npm run test. Please note that tests not contains stubs and use real FS for all files manipulation.