-
Notifications
You must be signed in to change notification settings - Fork 472
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reformat the whole repo with prettier
- Loading branch information
1 parent
8f8934b
commit e003b28
Showing
201 changed files
with
3,121 additions
and
4,041 deletions.
There are no files selected for viewing
6 changes: 3 additions & 3 deletions
6
.changes/next-release/Bug Fix-56d4c3e7-0079-4eba-a5b3-b43f278b1032.json
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"type": "Bug Fix", | ||
"description": "Creating SAM Applications into a different folder than the current VS Code workspaces will now open an application file after app creation (#678)" | ||
} | ||
"type": "Bug Fix", | ||
"description": "Creating SAM Applications into a different folder than the current VS Code workspaces will now open an application file after app creation (#678)" | ||
} |
6 changes: 3 additions & 3 deletions
6
.changes/next-release/Feature-4a8e9d78-5607-468a-b656-a856f539a774.json
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"type": "Feature", | ||
"description": "Improved the description of the selection item when picking a location for a new SAM Application (#673, #675)" | ||
} | ||
"type": "Feature", | ||
"description": "Improved the description of the selection item when picking a location for a new SAM Application (#673, #675)" | ||
} |
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,5 @@ | ||
out | ||
resources/endpoints.json | ||
third-party/** | ||
CHANGELOG.md | ||
src/shared/telemetry/service-2.json |
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 |
---|---|---|
@@ -1,21 +1,21 @@ | ||
language: node_js | ||
|
||
node_js: | ||
- "lts/*" | ||
node_js: | ||
- 'lts/*' | ||
|
||
matrix: | ||
include: | ||
- os: linux | ||
dist: bionic | ||
- os: osx | ||
include: | ||
- os: linux | ||
dist: bionic | ||
- os: osx | ||
|
||
services: | ||
- xvfb | ||
- xvfb | ||
|
||
script: | ||
- npm install | ||
- npm run vscode:prepublish | ||
- npm test | ||
- npm install | ||
- npm run vscode:prepublish | ||
- npm test | ||
|
||
after_success: | ||
- bash <(curl -s https://codecov.io/bash) -s .coverage | ||
- bash <(curl -s https://codecov.io/bash) -s .coverage |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,4 @@ | |
"search.exclude": { | ||
"out": true // set this to false to include "out" folder in search results | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -40,4 +40,4 @@ | |
"problemMatcher": [] | ||
} | ||
] | ||
} | ||
} |
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 |
---|---|---|
@@ -1,37 +1,37 @@ | ||
'use strict'; | ||
'use strict' | ||
/* | ||
This script is called from npm run compile. | ||
It adds clientside libraries to ./media/libs. | ||
*/ | ||
const fs = require('fs-extra'); | ||
const path = require('path'); | ||
const _ = require('lodash'); | ||
const fs = require('fs-extra') | ||
const path = require('path') | ||
const _ = require('lodash') | ||
|
||
const JS_DEPS = [ | ||
{ | ||
name: 'vue.min.js', | ||
path: 'vue/dist/vue.min.js' | ||
} | ||
]; | ||
const WORKING_DIR = path.join(__dirname, '..'); | ||
const NODE_MODULES_DIR = path.join(WORKING_DIR, 'node_modules'); | ||
const LIBRARY_DIR = path.join(WORKING_DIR, 'media', 'libs'); | ||
(async () => { | ||
const work = []; | ||
copy(JS_DEPS, LIBRARY_DIR, work); | ||
] | ||
const WORKING_DIR = path.join(__dirname, '..') | ||
const NODE_MODULES_DIR = path.join(WORKING_DIR, 'node_modules') | ||
const LIBRARY_DIR = path.join(WORKING_DIR, 'media', 'libs') | ||
;(async () => { | ||
const work = [] | ||
copy(JS_DEPS, LIBRARY_DIR, work) | ||
try { | ||
await Promise.all(work); | ||
console.log('Successfully copied all clientside dependencies.'); | ||
await Promise.all(work) | ||
console.log('Successfully copied all clientside dependencies.') | ||
} catch (e) { | ||
console.error('Error when copying clientside dependencies.'); | ||
console.error(e); | ||
console.error('Error when copying clientside dependencies.') | ||
console.error(e) | ||
} | ||
|
||
function copy(deps, destinationPath, workArr) { | ||
_.forEach(deps, (dep) => { | ||
const depPath = path.join(NODE_MODULES_DIR, dep.path); | ||
console.log(`Copying ${depPath} to ${destinationPath}`); | ||
workArr.push(fs.copy(depPath, path.join(destinationPath, dep.name))); | ||
}); | ||
_.forEach(deps, dep => { | ||
const depPath = path.join(NODE_MODULES_DIR, dep.path) | ||
console.log(`Copying ${depPath} to ${destinationPath}`) | ||
workArr.push(fs.copy(depPath, path.join(destinationPath, dep.name))) | ||
}) | ||
} | ||
})(); | ||
})() |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,25 @@ | ||
'use strict'; | ||
'use strict' | ||
|
||
/* | ||
This script is called from npm run compile. It copies the | ||
files and directories listed in `relativePaths` to `out/`. | ||
*/ | ||
|
||
const fs = require('fs-extra'); | ||
const path = require('path'); | ||
const fs = require('fs-extra') | ||
const path = require('path') | ||
|
||
const repoRoot = path.dirname(__dirname); | ||
const outRoot = path.join(repoRoot, 'out'); | ||
const repoRoot = path.dirname(__dirname) | ||
const outRoot = path.join(repoRoot, 'out') | ||
|
||
// May be individual files or entire directories. | ||
const relativePaths = [ | ||
path.join('src', 'schemas'), | ||
path.join('src', 'test', 'shared', 'cloudformation', 'yaml') | ||
]; | ||
const relativePaths = [path.join('src', 'schemas'), path.join('src', 'test', 'shared', 'cloudformation', 'yaml')] | ||
|
||
(async () => { | ||
;(async () => { | ||
for (const relativePath of relativePaths) { | ||
await fs.copy( | ||
path.join(repoRoot, relativePath), | ||
path.join(outRoot, relativePath), | ||
{ | ||
recursive: true, | ||
overwrite: true, | ||
errorOnExist: false, | ||
} | ||
); | ||
await fs.copy(path.join(repoRoot, relativePath), path.join(outRoot, relativePath), { | ||
recursive: true, | ||
overwrite: true, | ||
errorOnExist: false | ||
}) | ||
} | ||
})(); | ||
})() |
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
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
Oops, something went wrong.