Comments (6)
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.
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.
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.
@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.
thanks @harrison , did you try jspm on top of systemjs?
from angularjs-style-guide.
@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)
- Why are you opposed to tools like ng-annotate? HOT 4
- Angularjs best ways of making apps compared, including this one HOT 1
- Any Demo App Using this Style? HOT 1
- Why one module per file? HOT 6
- Why put the interface at the bottom instead of the top? HOT 5
- import angular HOT 1
- Inject ready data for directive-controllers HOT 22
- index.html HOT 3
- [Question] How do you mix many attribute directives in the same element? HOT 1
- Not loading data in the controller HOT 3
- route state resolve calling once HOT 1
- Where should I put angular.filter ? HOT 1
- Using 'replace' for a directive is being deprecated HOT 1
- Use standard facilities or reference external dependencies used in the examples HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angularjs-style-guide.