jakefile.js 580 B

123456789101112131415161718192021222324252627282930313233343536
  1. task('foo', function () {
  2. console.log('ran top-level foo');
  3. });
  4. task('bar', function () {
  5. console.log('ran top-level bar');
  6. });
  7. task('zerb', function () {
  8. console.log('ran zerb');
  9. });
  10. namespace('zooby', function () {
  11. task('zerp', function () {});
  12. task('derp', ['zerp'], function () {});
  13. namespace('frang', function () {
  14. namespace('w00t', function () {
  15. task('bar', function () {
  16. console.log('ran zooby:frang:w00t:bar');
  17. });
  18. });
  19. task('asdf', function () {});
  20. });
  21. });
  22. namespace('hurr', function () {
  23. namespace('durr');
  24. });