Search code examples
angularbuildcompilationangular-cliprimeng

How to build primeng from source code after cloning


I struggled a bit to build primeng from source, after checking the doc of angular-cli (spoiler: didn't help, they don't follow the standard) I tried all these

ng build
ng build -c production
... --aot
... --prod
...

then read the code, and some forum questions, I found the following


Solution

  • EDIT:
    @ShaneCoder is the correct one now

    Old answer: < 9.x.x
    Here are the steps:

    gulp clean
    gulp build-assets
    gulp build-exports
    tsc --build tsconfig-release.json
    npm pack
    
    

    you can the create a release on github, and refrence it using it's URL in your package.json instead of the version number: ex: https://github.com/<YOUR_USERNAME>/primeng/releases/download/8.0.0-rc2/primeng-8.0.0-rc.2-SNAPSHOT.tgz...