vilarone / ng2-electron-builder

Package and distribute your angular aplications with Electron using angular-cli
8 stars 1 forks source link

Gulp tasks #2

Open odyright opened 7 years ago

odyright commented 7 years ago

Hello, if i want to manage a scallable app with your repo & i have many gulp tasks, which recomendation can you give me?

vilarone commented 7 years ago

If it's for minify css and js files, run the project in prod mode.

For gulp integration make after the prepare task: Work with dist/ directory and put you gulp code executation after the prepare task in package.json like "prepare": "npm run prepare:dev && gulp", . Note that dist/ directory it's for electron packager and any file that you leave in directory will go to the electron app, remove any code that you don't want in the final project. If you have different gulp tasks between production and develop rewrite the prepare:dev and prepare:prod package.json task

And don't remove the main.js and package.json in dist/ direcory.

PD: Finally I can post the comment.