Polish demo

This commit is contained in:
Daniel Imms
2017-03-22 22:24:24 -07:00
parent 2d895b1e18
commit 21aceca3cf
8 changed files with 14 additions and 12 deletions

3
.gitignore vendored
View File

@@ -2,4 +2,5 @@ dist/
node_modules/ node_modules/
typings/ typings/
out/theme.json demo/generate.js
demo/theme/theme.json

2
.vscode/launch.json vendored
View File

@@ -7,7 +7,7 @@
"type": "extensionHost", "type": "extensionHost",
"request": "launch", "request": "launch",
"runtimeExecutable": "${execPath}", "runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceRoot}/out" ] "args": ["--extensionDevelopmentPath=${workspaceRoot}/demo/theme" ]
} }
] ]
} }

View File

@@ -16,8 +16,10 @@ Support below means that the editor has explicit support for the languages; the
## Usage ## Usage
```bash ```bash
npm install npm run dev
npm run build && npm start
# In another shell
npm run demo
``` ```
To test VS Code extensions, <kbd>F5</kbd> will launch the Code debugger with the theme available to switch to. Them in VS Code press <kbd>F5</kbd> to launch the debugger with the generated theme available to switch to.

View File

@@ -70,4 +70,4 @@ var sapphireColorSet = {
ansiBrightWhite: '#efefef' ansiBrightWhite: '#efefef'
} }
}; };
dist_1.generateTheme('Sapphire theme', sapphireColorSet, path.join(__dirname, 'theme.json')); dist_1.generateTheme('Generated Theme', sapphireColorSet, path.join(__dirname, 'theme', 'theme.json'));

View File

@@ -73,4 +73,4 @@ const sapphireColorSet: IColorSet = {
} }
}; };
generateTheme('Sapphire theme', sapphireColorSet, path.join(__dirname, 'theme.json')); generateTheme('Generated Theme', sapphireColorSet, path.join(__dirname, 'theme', 'theme.json'));

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +1,6 @@
{ {
"name": "generated-theme", "name": "generated-theme",
"displayName": "Generated THeme", "displayName": "Generated Theme",
"description": "...", "description": "...",
"categories": [ "Themes" ], "categories": [ "Themes" ],
"version": "0.0.1", "version": "0.0.1",
@@ -9,7 +9,7 @@
"contributes": { "contributes": {
"themes": [ "themes": [
{ {
"label": "Generated theme", "label": "Generated Theme",
"uiTheme": "vs-dark", "uiTheme": "vs-dark",
"path": "./theme.json" "path": "./theme.json"
} }

View File

@@ -4,8 +4,8 @@
"description": "Easily generate themes for VS Code with only a few colors", "description": "Easily generate themes for VS Code with only a few colors",
"main": "dist/index.js", "main": "dist/index.js",
"scripts": { "scripts": {
"build": "tsc", "dev": "tsc -w",
"start": "node dist/index.js" "demo": "tsc demo/generate.ts && node demo/generate.js"
}, },
"author": "Tyriar", "author": "Tyriar",
"license": "MIT", "license": "MIT",