marcoslin / angularAMD

Facilitate use of RequireJS in AngularJS
http://marcoslin.github.io/angularAMD
MIT License
734 stars 171 forks source link

Can't figure out how to connect to build-www...? #98

Closed mpiasta-ca closed 9 years ago

mpiasta-ca commented 9 years ago

Hi, just setup AngularAMD and testing it for the first time. I'm trying to see how big the initial page load is when launching from /build (or is it /dist or /src...? I don't know why there are so many folders...). I've tried grunt server-www but none of the files are minified, AngularJS alone is 750 kb. I'm wondering how do I connect to a minified version (get it to launch in a localhost server/browser)?

marcoslin commented 9 years ago

A quick explanation of folders that I use:

So, the answer to your question is... None of above. To see minified angularAMD in action, you should checkout the gh-pages branch. You will find the sample app with minimised angularAMD. Or you can just use:

http://marcoslin.github.io/angularAMD/

mpiasta-ca commented 9 years ago

@marcoslin OK, that's what I was thinking after looking through the gruntfile. I guess I just need to setup a grunt serve task to use gh-pages. I'm using this project as an angular app seed, it's very good, so I guess I can drop the /build right into /www/js/lib and get rid of some of these folders in root.

Thanks!

marcoslin commented 9 years ago

If you are building a seed, take a look at:

https://github.com/marcoslin/angularAMD-sample

It has the gruntfile that optimise the files using r.js. I don't have the time to polish it up and for some reason minified version does not work, but all the necessary setup is there.

mpiasta-ca commented 9 years ago

@marcoslin Ah great, thanks!