Tuesday, 2 May 2017

Is it possible to create a custom PrimeNG production build .tgz file?

I would like to pull a copy of PrimeNG from their git repository (https://github.com/primefaces/primeng), make some enhancements and/or bugfixes (maybe while I wait for my pull request to be accepted) and build the enhanced version to be used in my Angular project.

However, it appears that the primeng-4.n.n.tgz file that would be installed from an npm install primeng has had quite a bit of undocumented build processing applied that I cannot seem to replicate.

For instance, if I try to run the following commands on a newly checked out copy of the repository:

npm install
grunt build
npm run build-prod

I get complaints that the angular dependencies are not installed, which makes sense because the PrimeNG showcase needs them. However, the production build I get from an npm install does not contain showcase.

In a nutshell, how can I get from a checked out copy of the PrimeNG repository to my own primeng-4.n.n.tgz file? Is this possible? Or is this where paid support is designed to kick in?



via Wes Grant

No comments:

Post a Comment