Skip to content
This repository has been archived by the owner on Mar 18, 2018. It is now read-only.

Attach shipit.* variables on global init #74

Closed
Sija opened this issue Jul 8, 2015 · 2 comments
Closed

Attach shipit.* variables on global init #74

Sija opened this issue Jul 8, 2015 · 2 comments

Comments

@Sija
Copy link

Sija commented Jul 8, 2015

Otherwise it's not possible to use 'em from tasks invoked out of deploy cycle.
Example below:

shipit.task('npm:build', function () {
  return shipit.remote('cd ' + path.join(shipit.releasesPath, shipit.releaseDirname) + ' && npm run build');
});

No way to run shipit deploy npm:build since shipit.releasesPath and friends are unset at that point.

@timkelty
Copy link
Member

Agreed! Can you make PR?

@gregberge
Copy link
Member

@Sija yes PR welcome

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

3 participants