Skip to content

Instantly share code, notes, and snippets.

@jonathanablanida
Forked from ginpei/Gruntfile.js
Created May 5, 2014 13:00
Show Gist options
  • Save jonathanablanida/e281bb61ccf3aebf403c to your computer and use it in GitHub Desktop.
Save jonathanablanida/e281bb61ccf3aebf403c to your computer and use it in GitHub Desktop.
// ./Gruntfile.js
module.exports = function(grunt) {
grunt.loadTasks('hoge');
};
$ grunt hoge
`hoge/xxx.js` is loaded!
Running "hoge" task
Hello, hoge world!
Done, without errors.
// ./hoge/xxx.js
module.exports = function(grunt) {
console.log('`hoge/xxx.js` is loaded!');
grunt.registerTask('hoge', function() {
console.log('Hello, hoge world!');
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment