Skip to content

Instantly share code, notes, and snippets.

@shrunyan
Forked from ginpei/Gruntfile.js
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shrunyan/af7c9100e550399bed0d to your computer and use it in GitHub Desktop.
Save shrunyan/af7c9100e550399bed0d 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