madhukard / angular2-jspm-seed

Angular2 / TypeScript / material2 / JSPM / Gulp Starter Project
46 stars 12 forks source link

Production deploy - old way of deployment #4

Closed spboyer closed 8 years ago

spboyer commented 8 years ago

gulp deploy takes the approach of minifying all the scripts into a single .js file and does not take advantage of jspm bundle, is this just a carry over from a previous project template and targeted for a change or the intent?

madhukard commented 8 years ago

gulp deploy uses the jspm class builder api to create single self-executing bundle (single .js file) which internally uses the jspm bundle.

Reference - https://github.com/jspm/jspm-cli/blob/master/docs/api.md Our Gulp Task - https://github.com/madhukard/angular2-jspm-seed/blob/master/tools/gulp/tasks/production/scripts.js