Skip to content

Commit

Permalink
Added the tsconfig.json(s) and updated the package.json(s). (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
mosckital committed Jun 17, 2020
1 parent 62130ad commit f27072d
Show file tree
Hide file tree
Showing 13 changed files with 368 additions and 123 deletions.
214 changes: 214 additions & 0 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions client/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "python-mro-client",
"description": "The client part of the Python MRO extension",
"author": {
"name": "Kaiyan"
},
"license": "MIT",
"version": "0.0.1",
"repository": {
"type": "git",
"url": "https://github.com/mosckital/vscode_python_mro"
},
"engines": {
"vscode": "^1.22.0"
},
"dependencies": {
"vscode-languageclient": "^6.1.3"
},
"devDependencies": {
"@types/vscode": "^1.14.0",
"vscode-test": "^1.4.0"
}
}
12 changes: 12 additions & 0 deletions client/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "ES2019",
"lib": ["ES2019"],
"outDir": "out",
"rootDir": "src",
"sourceMap": true
},
"include": ["src"],
"exclude": ["node_modules", ".vscode-test"]
}
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

49 changes: 33 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,50 @@
{
"name": "vscode-python-mro",
"displayName": "vscode_python_mro",
"name": "python-mro",
"displayName": "Python MRO",
"description": "To show the MRO (Method Resolution Order) of a Python class in VS Code.",
"author": {
"name": "Kaiyan"
},
"version": "0.0.1",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/mosckital/vscode_python_mro"
},
"engines": {
"vscode": "^1.46.0"
},
"categories": [
"Other"
"categories": [],
"keywords": [
"Python MRO Method Resolution Order"
],
"activationEvents": [
"onCommand:vscode-python-mro.helloWorld"
"onLanguage:python"
],
"main": "./out/extension.js",
"main": "./client/out/extension.js",
"contributes": {
"commands": [
{
"command": "vscode-python-mro.helloWorld",
"title": "Hello World"
"configuration": {
"title": "PythonMRO",
"properties": {
"pythonMRO.hover.enable": {
"type": "boolean",
"description": "Enable to show the MRO list when hovering over a class or an object of which type can be inferred",
"default": "true"
},
"pythonMRO.hoverMethod.enable": {
"type": "boolean",
"description": "Enable to show the actual fulfilling class when hovering over a method calling from a class or an object of which type can be inferred",
"default": "true"
}
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"lint": "eslint src --ext ts",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"test": "node ./out/test/runTest.js"
"compile": "tsc -b",
"watch": "tsc -b -w",
"postinstall": "cd client && npm install && cd ../server && npm install && cd ..",
"test": "sh ./scripts/e2e.sh"
},
"devDependencies": {
"@types/vscode": "^1.46.0",
Expand Down
40 changes: 40 additions & 0 deletions server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions server/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "python-mro-server",
"description": "The server part of the Python MRO extension",
"author": {
"name": "Kaiyan"
},
"license": "MIT",
"version": "0.0.1",
"repository": {
"type": "git",
"url": "https://github.com/mosckital/vscode_python_mro"
},
"engines": {
"node": "*"
},
"dependencies": {
"vscode-languageserver": "^6.1.1",
"vscode-languageserver-textdocument": "^1.0.1"
},
"devDependencies": {}
}
Loading

0 comments on commit f27072d

Please sign in to comment.