-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
143 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
packages/cli/src/generators/templates/index-esm.template.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<% if (hasAuth) { %> | ||
import { | ||
config as authentication, | ||
befores = [], | ||
afters = [], | ||
} from './authentication'; | ||
<% } %> | ||
|
||
import { version as packageVersion } from './package.json'; | ||
import { version as platformVersion } from '<%= corePackageName %>'; | ||
|
||
export default { | ||
// This is just shorthand to reference the installed dependencies you have. | ||
// Zapier will need to know these before we can upload. | ||
version: packageVersion, | ||
platformVersion: platformVersion, | ||
|
||
<% if (hasAuth) { %> | ||
authentication, | ||
|
||
beforeRequest: [...befores], | ||
|
||
afterResponse: [...afters], | ||
<% } %> | ||
|
||
// If you want your trigger to show up, you better include it here! | ||
triggers: {}, | ||
|
||
// If you want your searches to show up, you better include it here! | ||
searches: {}, | ||
|
||
// If you want your creates to show up, you better include it here! | ||
creates: {}, | ||
|
||
resources: {}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters