Skip to content

Commit

Permalink
Merge main to feature/debugconfig #1158
Browse files Browse the repository at this point in the history
  • Loading branch information
justinmk3 authored Jun 22, 2020
2 parents 7b5aae7 + 8250dd6 commit e4a60e0
Show file tree
Hide file tree
Showing 15 changed files with 402 additions and 181 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ telemetryCache
quickStart.html
.gitcommit
media/libs/
package.json.bk

# Auto generated definitions
src/**/*.gen.ts
Expand Down
18 changes: 16 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,22 @@ When you launch the extension or run tests from Visual Studio Code, it will auto

If you prefer, you can build from the command line:

- To build one time: `npm run compile`
- To build and watch for file changes: `npm run watch`
- To build one time:
```
npm run compile
```
- To build and watch for file changes:
```
npm run watch
```
- To build a release artifact:
```
npm run package
```
- To build an "alpha" artifact (useful for letting others test a particular build):
```
npm run packageAlpha
```
#### If you run out of memory while building
Expand Down
32 changes: 32 additions & 0 deletions build-scripts/packageAlpha.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*!
* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/

//
// Creates an artifact that can be given to users for testing alpha builds:
//
// aws-toolkit-vscode-1.99.0-SNAPSHOT.vsix
//
// The script works like this:
// 1. temporarily change `version` in package.json
// 2. invoke `vsce package`
// 3. restore the original package.json
//

import * as child_process from 'child_process'
import * as fs from 'fs-extra'

const packageJsonFile = './package.json'
// Create a backup so that we can restore the original later.
fs.copyFileSync(packageJsonFile, `${packageJsonFile}.bk`)

const packageJson = JSON.parse(fs.readFileSync('./package.json', { encoding: 'UTF-8' }).toString())
packageJson.version = '1.99.0-SNAPSHOT'

fs.writeFileSync(packageJsonFile, JSON.stringify(packageJson, undefined, ' '))

child_process.execSync(`vsce package`)

// Restore the original package.json.
fs.copyFileSync(`${packageJsonFile}.bk`, packageJsonFile)
10 changes: 5 additions & 5 deletions media/js/submitFeedbackVue.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ console.log('Loaded!')
el: '#app',
data: {
comment: '',
sentiment: 'Positive',
sentiment: '',
isSubmitting: false,
error: ''
error: '',
},
mounted() {
this.$nextTick(function() {
Expand All @@ -32,9 +32,9 @@ console.log('Loaded!')
vscode.postMessage({
command: 'submitFeedback',
comment: this.comment,
sentiment: this.sentiment
sentiment: this.sentiment,
})
}
}
},
},
})
})()
Loading

0 comments on commit e4a60e0

Please sign in to comment.