Skip to content

Wrong output in jake -ls #219

@OscarGodson

Description

@OscarGodson

If I have this code:

desc('Setup Piggybank for the first time');
task('setup', function () {
  // ...
});

desc('Runs the app and watches files for changes and rebuilds when there\'s updates');
task('app', function () {
  // ...
});
namespace('app', function () {
  task('start', ['app']);
});

// TODO: Add these deployments
desc('Deploys the site to staging or prod. **WIP**');
namespace('deploy', function () {
  task('staging', function () {
    // ...
  });
  task('prod', function () {
    // ...
  });
});

I get:

jake setup            # Setup Piggybank for the first time
jake app              # Runs the app and watches files for changes and rebuilds when there's updates
jake deploy:staging   # Deploys the site to staging or prod. **WIP**

But I'd expect:

jake setup            # Setup Piggybank for the first time
jake app              # Runs the app and watches files for changes and rebuilds when there's updates
jake app:start        # Runs the app and watches files for changes and rebuilds when there's updates
jake deploy:prod      # Deploys the site to staging or prod. **WIP**
jake deploy:staging   # Deploys the site to staging or prod. **WIP**

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions