Search code examples
node.jszipangular-cli

How to create deploy process to ZIP ./dist folder with Angular-Cli


I need to create a deploy package. That would after ng build --prod will create SOME_APP.zip file any name I will put in deploy.config.json or anywhere.

There is a way to do it without using webpack-plugins?


Solution

  • this kinda works but probably it's not how package.json was supposed to be used:

      "scripts": {
        "all": "ng test; ng build --prod; zip -r dist/app.zip dist/app;"
      },
    

    in other proj I see ppl relying on Jenkins and/or deploy tools to zip it.