Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

feat: Converted project to typescript #139

Merged
merged 22 commits into from
May 21, 2019

Conversation

wbreza
Copy link
Contributor

@wbreza wbreza commented May 20, 2019

  • Converts the project over to typescript
  • Created new Login plugin to handle azure login
  • Create new APIM plugin for integration with Azure API management
  • Started effort of refactoring Deploy plugin

@wbreza wbreza requested a review from tbarlow12 May 20, 2019 23:28
"author": "Azure Functions",
"scripts": {
"test": "eslint **/*.js"
"test": "eslint src/**/*.js",
"prebuild": "rm lib/ -rf && npm test",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit:rm -rf lib/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any advantage of putting flags before? My habit is to put them after.

bearer: 'Bearer ',
functionAppApiPath: '/api/',
functionAppDomain: '.azurewebsites.net',
functionsAdminApiPath: '.azurewebsites.net/admin/functions/',
functionsAdminApiPath: '/admin/functions/',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are function and functions referring to 2 different things?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a partial path to one of the Kudu rest endpoints to retrieve functions in a function app.

bearer: 'Bearer ',
functionAppApiPath: '/api/',
functionAppDomain: '.azurewebsites.net',
functionsAdminApiPath: '.azurewebsites.net/admin/functions/',
functionsAdminApiPath: '/admin/functions/',
functionsApiPath: '/api/functions',
jsonContentType: 'application/json',
logInvocationsApiPath: '/azurejobs/api/functions/definitions/',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consistency: some path end with / and some don't

Copy link
Contributor

@tbarlow12 tbarlow12 May 21, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's because some of these will be appended to others. For example {functionAppDomain} + {functionsApiPath}. The / is included in the second one.

};

export default constants;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: new line in file or not? we should decide on one and add to editorconfig

src/plugins/deploy/azureDeployPlugin.ts Outdated Show resolved Hide resolved
src/plugins/logs/azureLogs.ts Outdated Show resolved Hide resolved
src/plugins/package/azurePackage.ts Outdated Show resolved Hide resolved
src/plugins/package/azurePackageFunction.ts Outdated Show resolved Hide resolved
src/plugins/package/lib/compileEvents.ts Outdated Show resolved Hide resolved
src/plugins/package/lib/webpackFunctionJson.ts Outdated Show resolved Hide resolved
@tbarlow12 tbarlow12 merged commit 0c3e10d into serverless:dev May 21, 2019
tbarlow12 pushed a commit that referenced this pull request Sep 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants