Skip to content

Building From Source

Çağatay Çivici edited this page Nov 13, 2016 · 27 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, add the following dependencies section so that the npm can download the required files to run the showcase.

"dependencies": {
   "@angular/common": "~2.1.1",
   "@angular/compiler": "~2.1.1",
   "@angular/core": "~2.1.1",
   "@angular/forms": "~2.1.1",
   "@angular/http": "~2.1.1",
   "@angular/platform-browser": "~2.1.1",
   "@angular/platform-browser-dynamic": "~2.1.1",
   "@angular/router": "~3.1.1",
   "@angular/upgrade": "~2.1.1",
   "angular-in-memory-web-api": "~0.1.13",
   "core-js": "^2.4.1",
   "reflect-metadata": "^0.1.8",
   "rxjs": "5.0.0-beta.12",
   "systemjs": "0.19.39",
   "zone.js": "^0.6.25"
},

Then run the following commands in order;

  • npm install - Downloads the dependencies
  • gulp build - Creates resource bundle for css
  • npm start - Runs the development server

Navigate to http://localhost:8080/

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

Clone this wiki locally