Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature ts #578

Merged
merged 13 commits into from
Dec 24, 2016
51 changes: 0 additions & 51 deletions .eslintrc.json

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules
out
dist
examples
npm-debug.log
Expand Down
12 changes: 9 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,21 @@
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceRoot}" ],
"stopOnEntry": false
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": [ "${workspaceRoot}/out/src/**/*.js" ],
"preLaunchTask": "npm"
},
{
"name": "Launch Tests",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceRoot}", "--extensionTestsPath=${workspaceRoot}/test" ],
"stopOnEntry": false
"args": ["--extensionDevelopmentPath=${workspaceRoot}", "--extensionTestsPath=${workspaceRoot}/out/test" ],
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": [ "${workspaceRoot}/out/test/**/*.js", "${workspaceRoot}/out/src/**/*.js" ],
"preLaunchTask": "npm"
}
]
}
11 changes: 9 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
{
"eslint.enable": true,
"editor.tabSize": 2
"tslint.enable": true,
"editor.tabSize": 2,
"files.exclude": {
"out": false
},
"search.exclude": {
"out": true
},
"typescript.tsdk": "./node_modules/typescript/lib"
}
30 changes: 30 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// Available variables which can be used inside of strings.
// ${workspaceRoot}: the root folder of the team
// ${file}: the current opened file
// ${fileBasename}: the current opened file's basename
// ${fileDirname}: the current opened file's dirname
// ${fileExtname}: the current opened file's extension
// ${cwd}: the current working directory of the spawned process

// A task runner that calls a custom npm script that compiles the extension.
{
"version": "0.1.0",

// we want to run npm
"command": "npm",

// the command is a shell script
"isShellCommand": true,

// show the output window only if unrecognized errors occur.
"showOutput": "silent",

// we run the custom script "compile" as defined in package.json
"args": ["run", "compile", "--loglevel", "silent"],

// The tsc compiler is started in watching mode
"isWatching": true,

// use the standard tsc in watch mode problem matcher to find compile problems in the output.
"problemMatcher": "$tsc-watch"
}
20 changes: 10 additions & 10 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
.github/**
.vscode/**
.vscode-test/**
test/**
src/**
out/src/build/**
out/src/models/**
out/test/**
typings/**
examples/**
images/*.psd
images/*.ai
images/screenshot_folders.png
Dockerfile
src/**
typings/**
.gitignore
code*.js
jsconfig.json
.eslintrc.json
tsconfig.json
tslint.json
npm-debug.log
.vscode/**
.vscode-test/**
test/**
vsc-extension-quickstart.md
.eslintrc.json

10 changes: 0 additions & 10 deletions jsconfig.json

This file was deleted.

173 changes: 87 additions & 86 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,90 +1,91 @@
{
"name": "vscode-icons",
"displayName": "vscode-icons",
"description": "Icons for Visual Studio Code",
"version": "4.2.0",
"publisher": "robertohuertasm",
"license": "MIT",
"author": {
"email": "roberto.huertas@outlook.com",
"name": "Roberto Huertas",
"url": "http://codecoding.com"
},
"repository": {
"type": "git",
"url": "https://github.com/robertohuertasm/vscode-icons"
},
"bugs": {
"url": "https://github.com/robertohuertasm/vscode-icons/issues",
"email": "roberto.huertas@outlook.com"
},
"engines": {
"vscode": "^1.0.0"
},
"categories": [
"Other",
"Themes"
"name": "vscode-icons",
"displayName": "vscode-icons",
"description": "Icons for Visual Studio Code",
"version": "4.2.0",
"publisher": "robertohuertasm",
"license": "MIT",
"author": {
"email": "roberto.huertas@outlook.com",
"name": "Roberto Huertas",
"url": "http://codecoding.com"
},
"repository": {
"type": "git",
"url": "https://github.com/robertohuertasm/vscode-icons"
},
"bugs": {
"url": "https://github.com/robertohuertasm/vscode-icons/issues",
"email": "roberto.huertas@outlook.com"
},
"engines": {
"vscode": "^1.0.0"
},
"categories": [
"Other",
"Themes"
],
"keywords": [
"icon-theme",
"theme",
"icons",
"vscode-icons"
],
"preview": true,
"homepage": "https://github.com/robertohuertasm/vscode-icons",
"icon": "images/logo.png",
"galleryBanner": {
"color": "#ffdd00"
},
"activationEvents": [
"*"
],
"main": "./out/src/dev/extension",
"contributes": {
"iconThemes": [
{
"id": "vscode-icons",
"label": "VSCode Icons",
"path": "./out/src/dev/icons.json"
}
],
"keywords": [
"icon-theme",
"theme",
"icons",
"vscode-icons"
],
"preview": true,
"homepage": "https://github.com/robertohuertasm/vscode-icons",
"icon": "images/logo.png",
"galleryBanner": {
"color": "#ffdd00"
},
"activationEvents": [
"*"
],
"main": "./dist/extension",
"contributes": {
"iconThemes": [
{
"id": "vscode-icons",
"label": "VSCode Icons",
"path": "./dist/icons.json"
}
],
"configuration": {
"title": "vscode-icons configuration",
"properties": {
"vsicons.dontShowNewVersionMessage": {
"type": "boolean",
"default": false,
"description": "If set to true the new version message won't be shown anymore."
}
}
"configuration": {
"title": "vscode-icons configuration",
"properties": {
"vsicons.dontShowNewVersionMessage": {
"type": "boolean",
"default": false,
"description": "If set to true the new version message won't be shown anymore."
}
},
"scripts": {
"prebuild": "npm run lint && npm run test",
"build": "node ./src/build/build.js",
"example": "node ./src/build/example.js ",
"lint": "eslint src test",
"postinstall": "node ./node_modules/vscode/bin/install",
"test": "mocha",
"test:vs": "node ./node_modules/vscode/bin/test"
},
"devDependencies": {
"@types/chai": "^3.4.34",
"@types/mocha": "^2.2.33",
"chai": "^3.5.0",
"eslint": "^3.12.0",
"eslint-config-airbnb": "^13.0.0",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-jsx-a11y": "^2.2.3",
"eslint-plugin-react": "^6.6.0",
"lodash": "^4.17.2",
"mocha": "^3.2.0",
"ncp": "^2.0.0",
"vscode": "^1.0.0"
},
"dependencies": {
"open": "0.0.5",
"semver": "^5.3.0"
}
}
}
},
"scripts": {
"prebuild": "npm run lint && npm run compile && npm run test",
"build": "node ./out/src/build/build.js",
"example": "node ./out/src/build/example.js ",
"test": "mocha ./out/test",
"lint": "tslint src/**/*.ts",
"test:vs": "node ./node_modules/vscode/bin/test",
"vscode:prepublish": "tsc -p ./",
"compile:w": "tsc -watch -p ./",
"compile": "tsc -p ./",
"postinstall": "node ./node_modules/vscode/bin/install"
},
"devDependencies": {
"@types/chai": "^3.4.34",
"@types/lodash": "^4.14.44",
"@types/mocha": "^2.2.33",
"@types/node": "^6.0.40",
"chai": "^3.5.0",
"lodash": "^4.17.2",
"mocha": "^3.2.0",
"tslint": "^4.2.0",
"typescript": "^2.0.3",
"vscode": "^1.0.0"
},
"dependencies": {
"open": "0.0.5",
"semver": "^5.3.0"
}
}
22 changes: 0 additions & 22 deletions src/build/build.js

This file was deleted.

8 changes: 8 additions & 0 deletions src/build/build.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { generate } from './iconGenerator';
const outDir = './out/src/dev';

// generating icons.json
// The function takes as second argument the directory where
// we want the file to be placed.
// Default directory is the 'root' directory
generate('icons.json', outDir);
Loading