I want to execute a Grunt build in an Ant build project. This could be done by using <exec>.
<?xml version="1.0" encoding="UTF-8"?>
<project name="Ant Called Grunt" default="grunt" basedir=".">
<target name="grunt">
<exec executable="grunt" dir="${basedir}">
<arg value="build"/>
</exec>
</target>
</project>
It works quite well, but then i realize if there is error in the grunt execution, Ant will still mark the Ant build successful and this may lead to some downstream failure in a continuous integration workflow.
Continue reading Ant – Execute Grunt and fail it on error →
The generator-angular written by the Yeoman team comes with Bootstrap integration. But instead of using Bootstrap, i would like to use Foundation 5 with Sass. The following example is created under Node.js v0.10.29.
1. Create your project directory. In my case, i will name the project ng-foundation.
mkdir ng-foundation
2. Move to the ng-foundation folder.
cd ng-foundation
3. Scaffold the AngularJS project using the generator-angular as usual.
yo angular
Continue reading Yeoman – Setup AngularJS and Foundation 5 with Sass →
1. Install the grunt-contrib-yuidoc as one of your your project dev dependency.
- npm install grunt-contrib-yuidoc –save-dev
2. To illustrate the example, i created /app/scriptes/human.js as follow.
Continue reading Grunt – Setup YUIDoc →
We get the Yeoman working last time.
Now, we can use Yeoman to scaffold a AngularJS project. =)
1. Install the angular webapp generator.
npm install -g generator-angular
Continue reading Build an AngularJS webapp using Yeoman →
Update @ 2015-09-23: Using PowerShell is just my personal preference, You could use MS-DOS in Windows if your machine doesn’t have PowerShell installed.
1. Download Node.js and install it and make sure you have the npm package manager selected before the installation.

Continue reading Setup Yeoman in Windows PowerShell →
Dream BIG and go for it =)