Skip to content

Latest commit

 

History

History
108 lines (72 loc) · 2.95 KB

DEVELOPER.md

File metadata and controls

108 lines (72 loc) · 2.95 KB

Building and Testing Angular

This document describes how to set up your development environment to build and test this project. It also explains the basic mechanics of using git and `node``.

See the contribution guidelines if you'd like to contribute to this project.

Prerequisite Software

Before you can build and test this project, you must install and configure the following products on your development machine:

Getting the Sources

Fork and clone the repository:

  1. Login to your GitHub account or create one by following the instructions given here.
  2. Fork the repository.
  3. Clone your fork of the repository and define an upstream remote pointing back to the Angular repository that you forked in the first place.
# Clone your GitHub repository:
git clone [email protected]:<github username>/issue-forms-creator.git

# Go to the directory:
cd issue-forms-creator

# Add the main repository as an upstream remote to your repository:
git remote add upstream https://github.com/geromegrignon/issue-forms-creator.git

Installing NPM Modules

Next, install the JavaScript modules needed to build and test the project:

# Install project dependencies (package.json)
npm install

Serving

To run Issue Forms Creator locally:

ng serve

Building

To build Issue Forms Creator run:

ng build

Running Tests Locally

To run unit testing with Jest:

ng test

To run component testing with Cypress:

# headless version
npm run ct:riun

# GUI version
npm run ct:open

Formatting your source code

Angular uses prettier to format the source code. If the source code is not properly formatted, the CI will fail and the PR cannot be merged.

The project uses lint-staged to automatically format the source code.

Linting/verifying your Source Code

You can check that your code is properly formatted and adheres to coding style by running:

ng lint