Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

Add per app version helpers #406

Merged
merged 5 commits into from
Jun 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README-source.md
Original file line number Diff line number Diff line change
Expand Up @@ -1688,7 +1688,9 @@ This section is only relevant if you're editing the `zapier-platform-cli` packag
- `export ZAPIER_BASE_ENDPOINT='http://localhost:8001'` if you're building against a local dev environment
- `npm install` for getting started
- `npm run build` for updating `./lib` from `./src`
- `npm run watch` for automatically building as you work
- `npm test` for running tests (also runs `npm run build`)
- `npm link` (while in this project's directory) and then use `zapier` command elsewhere
- `npm run test-convert` for running integration tests for the `zapier convert` command
- `npm run docs` for updating docs
- `npm run gen-completions` for updating the auto complete scripts
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3080,7 +3080,9 @@ This section is only relevant if you're editing the `zapier-platform-cli` packag
- `export ZAPIER_BASE_ENDPOINT='http://localhost:8001'` if you're building against a local dev environment
- `npm install` for getting started
- `npm run build` for updating `./lib` from `./src`
- `npm run watch` for automatically building as you work
- `npm test` for running tests (also runs `npm run build`)
- `npm link` (while in this project's directory) and then use `zapier` command elsewhere
- `npm run test-convert` for running integration tests for the `zapier convert` command
- `npm run docs` for updating docs
- `npm run gen-completions` for updating the auto complete scripts
Expand Down
2 changes: 2 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5089,7 +5089,9 @@ <h3 id="commands">Commands</h3>
<li><code>export ZAPIER_BASE_ENDPOINT=&apos;http://localhost:8001&apos;</code> if you&apos;re building against a local dev environment</li>
<li><code>npm install</code> for getting started</li>
<li><code>npm run build</code> for updating <code>./lib</code> from <code>./src</code></li>
<li><code>npm run watch</code> for automatically building as you work</li>
<li><code>npm test</code> for running tests (also runs <code>npm run build</code>)</li>
<li><code>npm link</code> (while in this project&apos;s directory) and then use <code>zapier</code> command elsewhere</li>
<li><code>npm run test-convert</code> for running integration tests for the <code>zapier convert</code> command</li>
<li><code>npm run docs</code> for updating docs</li>
<li><code>npm run gen-completions</code> for updating the auto complete scripts</li>
Expand Down
14 changes: 13 additions & 1 deletion src/commands/_access.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,22 @@ const makeAccess = (command, recordType) => {
if (data && data.invite_url) {
context.line();
context.line(
'You can invite users to this app more broadly by sharing this URL:\n\n ' +
'You can invite users to all versions of this app (current and future) using this URL:\n\n ' +
colors.bold(data.invite_url)
);
}

if (
data &&
data.versions_invite_urls &&
Object.keys(data.versions_invite_urls).length
) {
context.line();
context.line('Or you can invite users to a specific version:\n');
_.each(data.versions_invite_urls, (invite_url, _version) => {
context.line(` ${_version}: ${colors.bold(invite_url)}`);
});
}
});
}
};
Expand Down
4 changes: 3 additions & 1 deletion src/commands/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ const init = (context, location) => {

return utils.initApp(context, location, createApp).then(() => {
context.line(
'\nFinished! You might need to `npm install` then try `zapier test`!'
'\nFinished! You might need `cd ' +
location +
'` and `npm install` then try `zapier test`!'
);
});
};
Expand Down