Closed mpiasta-ca closed 9 years ago
A quick explanation of folders that I use:
src
is the directory I use for developmentbuild
is a scratch space I use while preparing angularAMD for distribution. The primary use is actually to generate the test file that you will find in build/test
and where unit test is ran fromdist
is a directory containing the actual release, copied from build
, similar to what requirejs
does in it's project.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:
@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!
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.
@marcoslin Ah great, thanks!
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 triedgrunt 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)?