Skip to content

Commit 48398c0

Browse files
init project
1 parent be3e4ce commit 48398c0

8 files changed

+238
-1
lines changed

.gitignore

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
8+
# Runtime data
9+
pids
10+
*.pid
11+
*.seed
12+
*.pid.lock
13+
14+
# Directory for instrumented libs generated by jscoverage/JSCover
15+
lib-cov
16+
17+
# Coverage directory used by tools like istanbul
18+
coverage
19+
20+
# nyc test coverage
21+
.nyc_output
22+
23+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
24+
.grunt
25+
26+
# Bower dependency directory (https://bower.io/)
27+
bower_components
28+
29+
# node-waf configuration
30+
.lock-wscript
31+
32+
# Compiled binary addons (http://nodejs.org/api/addons.html)
33+
build/Release
34+
35+
# Dependency directories
36+
node_modules/
37+
jspm_packages/
38+
39+
# Typescript v1 declaration files
40+
typings/
41+
42+
# Optional npm cache directory
43+
.npm
44+
45+
# Optional eslint cache
46+
.eslintcache
47+
48+
# Optional REPL history
49+
.node_repl_history
50+
51+
# Output of 'npm pack'
52+
*.tgz
53+
54+
# Yarn Integrity file
55+
.yarn-integrity
56+
57+
# dotenv environment variables file
58+
.env
59+
60+
# package-lock file since it just causes merge conflicts
61+
package-lock.json
62+
63+
# Output
64+
out
65+
*.vsix
66+
.vscode-test
67+
68+
# Mac
69+
.DS_Store

.vscodeignore

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.vscode/**
2+
.vscode-test/**
3+
out/test/**
4+
test/**
5+
src/**
6+
**/*.map
7+
.gitignore
8+
.travis.yml
9+
package-lock.json
10+
tsconfig.json
11+
tslint.json

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Change Log
2+
All notable changes to the "leetcode" extension will be documented in this file.
3+
4+
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
5+
6+
## [Unreleased]
7+
- Initial release

README.md

+65-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,65 @@
1-
# vscode-leetcode
1+
# leetcode README
2+
3+
This is the README for your extension "leetcode". After writing up a brief description, we recommend including the following sections.
4+
5+
## Features
6+
7+
Describe specific features of your extension including screenshots of your extension in action. Image paths are relative to this README file.
8+
9+
For example if there is an image subfolder under your extension project workspace:
10+
11+
\!\[feature X\]\(images/feature-x.png\)
12+
13+
> Tip: Many popular extensions utilize animations. This is an excellent way to show off your extension! We recommend short, focused animations that are easy to follow.
14+
15+
## Requirements
16+
17+
If you have any requirements or dependencies, add a section describing those and how to install and configure them.
18+
19+
## Extension Settings
20+
21+
Include if your extension adds any VS Code settings through the `contributes.configuration` extension point.
22+
23+
For example:
24+
25+
This extension contributes the following settings:
26+
27+
* `myExtension.enable`: enable/disable this extension
28+
* `myExtension.thing`: set to `blah` to do something
29+
30+
## Known Issues
31+
32+
Calling out known issues can help limit users opening duplicate issues against your extension.
33+
34+
## Release Notes
35+
36+
Users appreciate release notes as you update your extension.
37+
38+
### 1.0.0
39+
40+
Initial release of ...
41+
42+
### 1.0.1
43+
44+
Fixed issue #.
45+
46+
### 1.1.0
47+
48+
Added features X, Y, and Z.
49+
50+
-----------------------------------------------------------------------------------------------------------
51+
52+
## Working with Markdown
53+
54+
**Note:** You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:
55+
56+
* Split the editor (`Cmd+\` on OSX or `Ctrl+\` on Windows and Linux)
57+
* Toggle preview (`Shift+CMD+V` on OSX or `Shift+Ctrl+V` on Windows and Linux)
58+
* Press `Ctrl+Space` (Windows, Linux) or `Cmd+Space` (OSX) to see a list of Markdown snippets
59+
60+
### For more information
61+
62+
* [Visual Studio Code's Markdown Support](http://code.visualstudio.com/docs/languages/markdown)
63+
* [Markdown Syntax Reference](https://help.github.com/articles/markdown-basics/)
64+
65+
**Enjoy!**

package.json

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"name": "leetcode",
3+
"displayName": "Leetcode",
4+
"description": "",
5+
"version": "0.0.1",
6+
"publisher": "ShengChen",
7+
"engines": {
8+
"vscode": "^1.20.0"
9+
},
10+
"categories": [
11+
"Other"
12+
],
13+
"activationEvents": [
14+
"onCommand:extension.sayHello"
15+
],
16+
"main": "./out/extension",
17+
"contributes": {
18+
"commands": [
19+
{
20+
"command": "extension.sayHello",
21+
"title": "Hello World"
22+
}
23+
]
24+
},
25+
"scripts": {
26+
"vscode:prepublish": "npm run compile",
27+
"compile": "tsc -p ./",
28+
"watch": "tsc -watch -p ./",
29+
"postinstall": "node ./node_modules/vscode/bin/install",
30+
"test": "npm run compile && node ./node_modules/vscode/bin/test",
31+
"lint": "tslint --project tsconfig.json -e src/*.d.ts -t verbose"
32+
},
33+
"devDependencies": {
34+
"@types/mocha": "^2.2.42",
35+
"@types/node": "^7.0.43",
36+
"tslint": "^5.9.1",
37+
"typescript": "^2.6.1",
38+
"vscode": "^1.1.6"
39+
}
40+
}

src/extension.ts

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
"use strict";
2+
3+
import * as vscode from "vscode";
4+
5+
export function activate(context: vscode.ExtensionContext) {
6+
7+
}
8+
9+
// tslint:disable-next-line:no-empty
10+
export function deactivate() { }

tsconfig.json

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"compilerOptions": {
3+
"module": "commonjs",
4+
"target": "es6",
5+
"outDir": "out",
6+
"lib": [
7+
"es6"
8+
],
9+
"sourceMap": true,
10+
"rootDir": ".",
11+
"noUnusedLocals": true,
12+
"noImplicitThis": true,
13+
"noImplicitReturns": true,
14+
"strictNullChecks": true,
15+
"noUnusedParameters": true
16+
},
17+
"exclude": [
18+
"node_modules",
19+
".vscode-test"
20+
]
21+
}

tslint.json

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"defaultSeverity": "error",
3+
"extends": [
4+
"tslint:recommended"
5+
],
6+
"jsRules": {},
7+
"rules": {
8+
"object-literal-sort-keys": false,
9+
"indent": [true, "spaces"],
10+
"no-string-literal": false,
11+
"no-namespace": false,
12+
"max-line-length": [false, 120]
13+
},
14+
"rulesDirectory": []
15+
}

0 commit comments

Comments
 (0)