andrewducker: (time to live)
[personal profile] andrewducker
Playing with Gulp.js, which is a node-based build system.

This is my build file so far.

And it basically monitors the file list (which is all of my js files), and whenever any of them changes it combines them into one master file, adding the Angular annotations as it goes.

So if you look at the source for the controllers here you'll see that they don't have the annotations that you need if you're going to minify things.

But if you look in the version that's produced (and is then referenced in the HTML) here it's got the annotations in it.

And it's easier for me to find the code I want to change because it's in multiple files - but the final version can be one, combined, minified version, so it's faster to download.

I don't have it minifying yet. That's for sometime later in the week :-> (and uglify looks like it does the job).

I think I'm going to find this _really_ useful.

June 2025

S M T W T F S
1 2 3 4 5 6 7
891011121314
15161718192021
22232425262728
2930     

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 7th, 2025 02:15 pm
Powered by Dreamwidth Studios