Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow users to specify whether to install Node.js template #329

Merged
merged 4 commits into from Dec 20, 2018
Merged

Conversation

LazarusX
Copy link
Contributor

No description provided.

@@ -328,10 +331,10 @@ export class EdgeManager {

const needUpdateRegistry: boolean = template !== Constants.STREAM_ANALYTICS;

const {usernameEnv, passwordEnv} = await this.addModuleToDeploymentTemplate(templateJson, templateFile, envFilePath, moduleInfo, needUpdateRegistry, isNewSolution);
const { usernameEnv, passwordEnv } = await this.addModuleToDeploymentTemplate(templateJson, templateFile, envFilePath, moduleInfo, needUpdateRegistry, isNewSolution);
Copy link
Member

Choose a reason for hiding this comment

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

for all the white space in brackets,we should define a rule in tslint.

@@ -778,7 +796,7 @@ export class EdgeManager {
if (!templatePick) {
throw new UserCancelledError();
}
TelemetryClient.sendEvent( `${Constants.addModuleEvent}.selectModuleTemplate`, {
TelemetryClient.sendEvent(`${Constants.addModuleEvent}.selectModuleTemplate`, {
Copy link
Member

Choose a reason for hiding this comment

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

for this space, we could add config "space-within-parens": true into tslint.json

ExposedPorts: {"5678/tcp": {}},
HostConfig: {PortBindings: {"5678/tcp": [{HostPort: "5678"}]}}};
ExposedPorts: { "5678/tcp": {} },
HostConfig: { PortBindings: { "5678/tcp": [{ HostPort: "5678" }] } },
Copy link
Member

Choose a reason for hiding this comment

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

actually I will prefer no space between curly braces.

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 the result of a "Format code" command...

@LazarusX LazarusX merged commit 44346b1 into master Dec 20, 2018
@LazarusX LazarusX deleted the ray-npx branch December 20, 2018 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants