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/
typings/
out/theme.json
demo/generate.js
demo/theme/theme.json

2
.vscode/launch.json vendored
View File

@@ -7,7 +7,7 @@
"type": "extensionHost",
"request": "launch",
"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
```bash
npm install
npm run build && npm start
npm run dev
# 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'
}
};
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",
"displayName": "Generated THeme",
"displayName": "Generated Theme",
"description": "...",
"categories": [ "Themes" ],
"version": "0.0.1",
@@ -9,7 +9,7 @@
"contributes": {
"themes": [
{
"label": "Generated theme",
"label": "Generated Theme",
"uiTheme": "vs-dark",
"path": "./theme.json"
}

View File

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