Skip to content

Commit bc4fa65

Browse files
committed
Webpack and icons
1 parent 010f094 commit bc4fa65

12 files changed

Lines changed: 119 additions & 53 deletions

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.vscode-test/
22
*.vsix
33
**/.DS_Store
4+
dist/
45
icon/res/
56
node_modules
67
out/

.vscode/launch.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@
66
"version": "0.2.0",
77
"configurations": [
88
{
9-
"name": "Run Extension",
9+
"name": "Extension:webpack",
1010
"type": "extensionHost",
1111
"request": "launch",
1212
"runtimeExecutable": "${execPath}",
1313
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
14-
"outFiles": ["${workspaceFolder}/out/**/*.js"],
15-
"preLaunchTask": "npm: watch"
14+
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
15+
"preLaunchTask": "npm: webpack"
1616
},
1717
{
18-
"name": "Extension Tests",
18+
"name": "Extension:watch",
1919
"type": "extensionHost",
2020
"request": "launch",
2121
"runtimeExecutable": "${execPath}",
22-
"args": ["--extensionDevelopmentPath=${workspaceFolder}", "--extensionTestsPath=${workspaceFolder}/out/test/suite/index"],
23-
"outFiles": ["${workspaceFolder}/out/test/**/*.js"],
22+
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
23+
"outFiles": ["${workspaceFolder}/out/**/*.js"],
2424
"preLaunchTask": "npm: watch"
2525
}
2626
]

.vscode/tasks.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@
2020
"type": "npm",
2121
"script": "task-clean",
2222
"isBackground": false
23-
},
24-
{
25-
"type": "npm",
26-
"script": "task-copy",
27-
"isBackground": false
2823
}
2924
]
3025
}

.vscodeignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88
**/tsconfig.json
99
backend/
1010
icon/res/
11+
node_modules
1112
package-lock.json
13+
out/
1214
src/
1315
tasks.ts
14-
vsc-extension-quickstart.md
16+
vsc-extension-quickstart.md
17+
webpack.config.js

CHANGELOG.md

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,39 @@ All notable changes to the "voice-commands" extension will be documented in this
33

44
The format is based on [Keep a Changelog](http://keepachangelog.com/).
55

6-
## [Unreleased]
7-
- Depends on the popularity of this extension.
8-
- Possible future features:
9-
* Enable/disable specific commands.
10-
* Add new commands.
11-
* Switch to better maintained library or intergate with virtual assisstant API.
6+
## [2.1.2] - February 2020
7+
### Changed
8+
- Use Webpack
9+
- tslint to eslint
10+
- 13 files, 35.22MB, 1.42.0
1211

1312
## [2.1.1] - Sep 2019
1413
### Changed
15-
- Change to off mode when activate rather than listen right away
16-
- Set MSP targets to .NET 4.5
17-
- New icon
14+
- Change to off mode when activate rather than listen right away
15+
- Set MSP targets to .NET 4.5
16+
- [New icon](icon/voicecmd3.png)
17+
- 10 files, 35.12MB, 1.38.0
1818

1919
## [2.1.0] - Feb 2019
2020
### Changed
21-
- Extension activates from the start instead by typing VS Code command
21+
- Extension activates from the start instead by typing VS Code command
2222
### Fixed
23-
- Windows OS uses MSP as of now
23+
- Windows OS uses MSP as of now
24+
- 9 files, 35.15MB, 1.18.0
2425

2526
## [2.0.0, 2.0.1] - Jan 2018
2627
### Added
27-
- Cross-platform:
28-
- Windows OS still uses built-in Speech library.
29-
- Other OS uses JRE to run the CMUSphinx open source speech recognition.
30-
- New commands: delete, stop listen, format.
31-
- New icon
28+
- Cross-platform:
29+
- Windows OS still uses built-in Speech library.
30+
- Other OS uses JRE to run the CMUSphinx open source speech recognition.
31+
- New commands: delete, stop listen, format.
32+
- [New icon](icon/voicecmd2.png)
33+
- 9 files, 35.15MB, 1.18.0
3234

3335
## [1.0.0] - Jan 2017
3436
### Added
35-
- Commands include: copy, cut, find, go to line, hello world, paste, quick open, redo, search, select all, and undo.
36-
- "hello world" command has no action.
37-
- Uses Microsoft Speech Platform.
37+
- Commands include: copy, cut, find, go to line, hello world, paste, quick open, redo, search, select all, and undo.
38+
- "hello world" command has no action.
39+
- Uses Microsoft Speech Platform.
40+
- [Icon](icon/voicecmd1.png), [icon-remastered](icon/voicecmd1-remastered.png)
41+
- 9 files, 26.87KB, 1.8.1

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,13 @@ Context menu could hold the commands' actions
3333

3434
## Release Notes
3535

36+
### 2.1.2
37+
- Use Webpack
38+
3639
### 2.1.1
3740
- Activate extension in off mode from the start
3841
- Update project's dependencies
39-
- New icon
42+
- [New icon](icon/voicecmd3.png)
4043

4144
### 2.1.0
4245
- Bugfix - Windows OS wasn't using MSP
@@ -47,7 +50,7 @@ Context menu could hold the commands' actions
4750
- Development SDK and packages: donet core 2.0, .NET framework 4.7.1, Sphinx4 alpha5
4851
- Now the extension is cross-platform thanks to [CMUSphinx Voice Recognition](https://cmusphinx.github.io/)
4952
- Note that this extension still uses the built-in [Microsoft Speech Platform](https://msdn.microsoft.com/en-us/library/office/hh361572(v=office.14).aspx) if it use in Windows OS
50-
- New icon
53+
- [New icon](icon/voicecmd2.png)
5154

5255
### 1.0.0
5356
- Initial release of voice commands

icon/voicecmd1-remastered.png

8.11 KB
Loading

icon/voicecmd1.png

35.5 KB
Loading

icon/voicecmd2.png

77.6 KB
Loading

package.json

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
"displayName": "Voice Commands",
44
"description": "Listen to the user's voice commands",
55
"homepage": "https://github.com/lanly-dev/VSCode-VoiceCommands",
6-
"version": "2.1.1",
6+
"version": "2.1.2",
77
"publisher": "lanly-dev",
88
"engines": {
9-
"vscode": "^1.38.0"
9+
"vscode": "^1.42.0"
1010
},
1111
"categories": [
1212
"Other"
@@ -20,27 +20,32 @@
2020
"activationEvents": [
2121
"*"
2222
],
23-
"main": "./out/extension.js",
23+
"main": "./dist/extension.js",
2424
"contributes": {},
2525
"scripts": {
26-
"vscode:prepublish": "npm run compile",
26+
"vscode:prepublish": "webpack --mode production",
2727
"compile": "tsc -p ./",
2828
"watch": "tsc -watch -p ./",
29-
"pretest": "npm run compile",
30-
"test": "node ./out/test/runTest.js",
31-
"task-clean": "ts-node tasks.ts clean",
32-
"task-copy": "ts-node tasks.ts copy"
29+
"webpack": "webpack --mode development",
30+
"webpack-dev": "webpack --mode development --watch",
31+
"lint": "eslint . --ext ts",
32+
"lint-fix": "eslint . --ext ts --fix",
33+
"task-clean": "ts-node tasks.ts clean"
3334
},
3435
"devDependencies": {
35-
"@types/node": "^13.7.0",
36+
"@types/node": "^13.7.1",
3637
"@types/shelljs": "^0.8.6",
3738
"@types/vscode": "^1.42.0",
38-
"@typescript-eslint/eslint-plugin": "^2.19.0",
39-
"@typescript-eslint/parser": "^2.19.0",
39+
"@typescript-eslint/eslint-plugin": "^2.19.2",
40+
"@typescript-eslint/parser": "^2.19.2",
41+
"copy-webpack-plugin": "^5.1.1",
4042
"eslint": "^6.8.0",
4143
"shelljs": "^0.8.3",
44+
"ts-loader": "^6.2.1",
4245
"ts-node": "^8.6.2",
43-
"typescript": "^3.7.5"
46+
"typescript": "^3.7.5",
47+
"webpack": "^4.41.6",
48+
"webpack-cli": "^3.3.11"
4449
},
4550
"repository": {
4651
"type": "git",

0 commit comments

Comments
 (0)