Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 305
hackp0int Avatar asked Jun 11 '18 13:06

hackp0int


1 Answers

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.

like image 158
user656449 Avatar answered Sep 23 '22 09:09

user656449