Andrew Ducker (andrewducker) wrote,
Andrew Ducker

I'm enamoured with a build system

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.

Original post on Dreamwidth - there are comment count unavailable comments there.

  • Interesting Links for 17-10-2021

    Watch a marble drop through 100 animated scenes (tags: animation video ) Shortage nation: why the UK is braced for a grim Christmas (tags: UK…

  • Interesting Links for 16-10-2021

    Steam bans all blockchain and NFT games on its platform (tags: Steam cryptography money games ) Facebook claims to take down 94% of hate…

  • Interesting Links for 15-10-2021

    Christchurch Council to stop paying The Wizard $16,000 a year after 23 years on the payroll (tags: newzealand wizardry magic weird marketing…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened