This article is part of a series of posts on RequireJs, AnguarJs, Grunt and Bower. Here are the parts so far:
- AngularJs, RequireJs, Grunt and Bower Part1 - Getting Started and concept with ASP.NET MVC ~ 竹部落
- AngularJs, RequireJs, Grunt and Bower Part2 - Grunt ~ 竹部落
- AngularJs, RequireJs, Grunt and Bower Part3 - generator-angular-requirejs-grunt-bower with ASP.NET MVC ~ 竹部落
- AngularJs, RequireJs, Grunt and Bower Part4 - How to extend your own code with ASP.NET MVC ~ 竹部落
- AngularJs, RequireJs, Grunt and Bower Part5 - Yoeman generator-angular-requirejs-grunt-bower with Express.js //to be done
After you clone source code from github reop, you can run following command:
git checkout -f step-0
is status project createdgit checkout -f step-1
is status Nuget install Require.js.git checkout -f step-2
is status project Add AngularJs, RequireJs, Grunt and Bower to Public folder.git checkout -f step-3
is status modify _Layout.chtml to render RequireJs. You will see the final result.- Please cd to
AngularJsRequireJsGruntBower\AngularJsRequireJsGruntBower\Public
and executebower install
to restore those library project included.
- Please cd to
git checkout -f setp-4
is status ready to do grunt tasks.- Please cd to
AngularJsRequireJsGruntBower\AngularJsRequireJsGruntBower\Public
and executenpm install
to restoregrunt
required libraries. - execute command
grunt
to do grunt tasks.
- Please cd to
git checkout -f step-5
extendProduct
applicationgit checkout -f step-6
extend AngularJs servicebook-service
and addBookLoader
to route resolvegit checkout -f step-7
extend AngularJs servicebook-service
and injectBOOK
service to controllergit checkout -f step-5
extendProduct
applicationgit checkout -f step-6
extend AngularJs servicebook-service
and addBookLoader
to route resolvegit checkout -f step-7
extend AngularJs servicebook-service
and injectBOOK
service to controllergit checkout -f step-8
addProduct
toGruntfile.js
module block