-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Building From Source
Mertcan Diken edited this page Feb 22, 2017
·
27 revisions
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;
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.4.0",
"@angular/compiler": "~2.4.0",
"@angular/core": "~2.4.0",
"@angular/forms": "~2.4.0",
"@angular/http": "~2.4.0",
"@angular/platform-browser": "~2.4.0",
"@angular/platform-browser-dynamic": "~2.4.0",
"@angular/router": "~3.4.0",
"angular-in-memory-web-api": "~0.2.2",
"core-js": "^2.4.1",
"reflect-metadata": "^0.1.8",
"rxjs": "5.0.1",
"zone.js": "^0.7.4"
},
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.