Code Monkey home page Code Monkey logo

Comments (6)

jackfranklin avatar jackfranklin commented on June 14, 2024

I'll let @harrison answer more as he wrote most of our build tool but we use The Asset Graph Builder to build and minify our application. We added some extra functionality which parses our JS files and can read the import statements, and as it goes through all our JS files it is able to find and minify them all into one large minified file that we then push to production.

from angularjs-style-guide.

djindjic avatar djindjic commented on June 14, 2024

Sounds pro, I will be appreciate @harrison's answer if he could write some points about The Assets Graph Builder. Does it means that you do not use gulp, grunt or something fancy like that?

from angularjs-style-guide.

jackfranklin avatar jackfranklin commented on June 14, 2024

No we don't. We have one JS file which contains the extra stuff I mentioned, and then just some shell scripts.

from angularjs-style-guide.

feelepxyz avatar feelepxyz commented on June 14, 2024

@djindjic It's actually pretty ghetto :)

Our script to build for prod pretty much looks like this: https://github.com/assetgraph/assetgraph-builder/blob/master/bin/buildProduction
But with added transforms to find any System.config and System.import statements: https://gist.github.com/harrison/53cb21e96addbacf88d7
We build the bundle using System.js Builder: https://github.com/systemjs/builder

The builder is especially neat as it bundles modules imported using System.js plugins like text which we use for Angular templates. In development we let System.js do the traceur compilation on the fly.

from angularjs-style-guide.

djindjic avatar djindjic commented on June 14, 2024

thanks @harrison , did you try jspm on top of systemjs?

from angularjs-style-guide.

jackfranklin avatar jackfranklin commented on June 14, 2024

@djindjic we have played with jspm and plan soon to move over to it potentially, but we've not had time to try it out on our Angular app yet.

from angularjs-style-guide.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.