Preparing to use Angularjs + Require.js as the underlying framework for a new project, the following catalog results are just a preliminary idea:
/default put the page, but for one page project , it may need to build a partials folder;
/develop test and Web server related things, this is not required to deploy to the formal environment, so isolated from the static
/static Css+img+js+partials+r.js+build.js, the back two is require.js packed compression merge deployment needs to use,
The css+img+js+partials has the following common structure, which is intended to be divided into functions:
/app specific business-related code
/modules Public UI Components
More JS.
/lib Angularjs,require.js,jquery.js, etc. third-provided libraries
Configuration of the Config.js require.js
/build Require.js executes r.js scripts that are generated after the merge of code compression, only the/build and/default folders are deployed to the formal environment.
This is just a simple assumption, depending on the directory structure of the Angular-seed project, each module will contain the following directories
For more complex business module, this can be the following structure:
The above is complete.
The first attempt to use the angular.js, may think relatively simple, only in the actual process of slowly optimizing.
Seek the guidance of the great God passing by!