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

Fix: Update azure template #6258

Merged
merged 3 commits into from
Jun 17, 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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
24 changes: 2 additions & 22 deletions lib/plugins/create/create.test.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -567,30 +567,10 @@ describe('Create', () => {
expect(dirContent).to.include('package.json'); expect(dirContent).to.include('package.json');
expect(dirContent).to.include('serverless.yml'); expect(dirContent).to.include('serverless.yml');
expect(dirContent).to.include('.gitignore'); expect(dirContent).to.include('.gitignore');
expect(dirContent).to.include('.funcignore');
expect(dirContent).to.include('host.json'); expect(dirContent).to.include('host.json');
expect(dirContent).to.include('local.settings.json');
expect(dirContent).to.include('proxies.json');
expect(dirContent).to.include('README.md'); expect(dirContent).to.include('README.md');
// VS Code directory for local development expect(dirContent).to.include('hello.js');
expect(dirContent).to.include('.vscode'); expect(dirContent).to.include('goodbye.js');
const vsCodeDirContent = fs.readdirSync(`${tmpDir}/.vscode`);
expect(vsCodeDirContent).to.include('extensions.json');
expect(vsCodeDirContent).to.include('launch.json');
expect(vsCodeDirContent).to.include('settings.json');
expect(vsCodeDirContent).to.include('tasks.json');
// Directory containing first function handler and bindings
expect(dirContent).to.include('hello');
const helloFunctionDirContent = fs.readdirSync(`${tmpDir}/hello`);
expect(helloFunctionDirContent).to.include('function.json');
expect(helloFunctionDirContent).to.include('index.js');
expect(helloFunctionDirContent).to.include('sample.dat');
// Directory containing second function handler and bindings
expect(dirContent).to.include('goodbye');
const goodbyeFunctionDirContent = fs.readdirSync(`${tmpDir}/goodbye`);
expect(goodbyeFunctionDirContent).to.include('function.json');
expect(goodbyeFunctionDirContent).to.include('index.js');
expect(goodbyeFunctionDirContent).to.include('sample.dat');
}); });
}); });


Expand Down
7 changes: 0 additions & 7 deletions lib/plugins/create/templates/azure-nodejs/.funcignore

This file was deleted.

This file was deleted.

12 changes: 0 additions & 12 deletions lib/plugins/create/templates/azure-nodejs/.vscode/launch.json

This file was deleted.

This file was deleted.

23 changes: 0 additions & 23 deletions lib/plugins/create/templates/azure-nodejs/.vscode/tasks.json

This file was deleted.

19 changes: 0 additions & 19 deletions lib/plugins/create/templates/azure-nodejs/goodbye/function.json

This file was deleted.

3 changes: 0 additions & 3 deletions lib/plugins/create/templates/azure-nodejs/goodbye/sample.dat

This file was deleted.

19 changes: 0 additions & 19 deletions lib/plugins/create/templates/azure-nodejs/hello/function.json

This file was deleted.

3 changes: 0 additions & 3 deletions lib/plugins/create/templates/azure-nodejs/hello/sample.dat

This file was deleted.

5 changes: 2 additions & 3 deletions lib/plugins/create/templates/azure-nodejs/host.json
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,3 @@
{ {
"version": "2.0" "version": "2.0"
} }

8 changes: 0 additions & 8 deletions lib/plugins/create/templates/azure-nodejs/local.settings.json

This file was deleted.

5 changes: 0 additions & 5 deletions lib/plugins/create/templates/azure-nodejs/proxies.json

This file was deleted.

4 changes: 2 additions & 2 deletions lib/plugins/create/templates/azure-nodejs/serverless.yml
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ package:


functions: functions:
hello: hello:
handler: hello/index.handler handler: hello.handler
events: events:
- http: true - http: true
x-azure-settings: x-azure-settings:
Expand All @@ -47,7 +47,7 @@ functions:
direction: out direction: out
name: res name: res
goodbye: goodbye:
handler: goodbye/index.handler handler: goodbye.handler
events: events:
- http: true - http: true
x-azure-settings: x-azure-settings:
Expand Down