Skip to content

Building From Source

Çağatay Çivici edited this page Sep 27, 2016 · 11 revisions

How to build from source and contribute

To begin with, thank you for your consideration to contribute to PrimeNG.

PrimeNG package.json configuration is in distribution mode by default, meaning there are no dependencies defined to run the samples. To build PrimeNG from source and run the showcase locally, follow the instructions below;

Fork and Clone the Repository

Your clone has a package.json at the root folder, remove the peerDependencies section and replace it with the following so that the npm can download the required dependencies to run the showcase.

  "dependencies": {
    "@angular/common": "2.0.0",
    "@angular/compiler": "2.0.0",
    "@angular/core": "2.0.0",
    "@angular/forms": "2.0.0",
    "@angular/http": "2.0.0",
    "@angular/platform-browser": "2.0.0",
    "@angular/platform-browser-dynamic": "2.0.0",
    "@angular/router": "3.0.0",
    "@angular/upgrade": "2.0.0",
    "core-js": "^2.4.1",
    "reflect-metadata": "^0.1.3",
    "rxjs": "5.0.0-beta.12",
    "zone.js": "^0.6.23",
    "angular2-in-memory-web-api": "0.0.20"
  },

Then run the following commands in order;

  • npm install
  • typings install
  • tsc -w
  • webpack-dev-server

Navigate to http://localhost:8080/webpack-dev-server/

Now you'll be able to make changes to PrimeNG components and hopefully provide pull requests to contribute.

Clone this wiki locally