angular1-systemjs-seed icon indicating copy to clipboard operation
angular1-systemjs-seed copied to clipboard

gulp release

Open lookfirst opened this issue 10 years ago • 4 comments

What sort of workflow are you planning for gulp release?

When I think of a release, I think of an artifact that is built that can be distributed to my servers. Something like a .tgz, .zip, .jar, .deb, .rpm. Right now, the system doesn't really do that. Can we improve on it?

I'd like to propose that we move the system.config.js and index.html into the src folder. These files are then copied into the dist folder. This allows for a gulp prod (which calls gulp release) to just point at the dist folder as the root of the application to serve things from. It also allows us to test the built application easily.

Thoughts?

lookfirst avatar Feb 17 '15 06:02 lookfirst

Gulp release is the command the CI server calls for distro to prod. We use .net so it packages the files internally.

amcdnl avatar Feb 20 '15 12:02 amcdnl

I've done all this in my project. Take a look if you'd like to port it back over. =)

lookfirst avatar Feb 20 '15 20:02 lookfirst

I think a better approach would be to inject this into the app.js file . We probably also need to handle the system and config file cache busting too.

amcdnl avatar Feb 27 '15 15:02 amcdnl

Yea, I agree. I'd like to get rid of the whole rewrite of the index.html thing. It is kind of ugly. =)

lookfirst avatar Feb 27 '15 16:02 lookfirst