From ec3c88745ec1e029b6e75efc81366fa484de0033 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Mon, 14 Oct 2019 22:14:59 -0700 Subject: [PATCH] Bump to 0.1.27 and refactor packaging --- .vscodeignore | 7 ++++--- README-dev.md | 34 ---------------------------------- README.md | 5 ++--- build.py | 11 ----------- package-lock.json | 2 +- package.json | 2 +- publish.py | 17 ----------------- 7 files changed, 8 insertions(+), 70 deletions(-) delete mode 100644 README-dev.md delete mode 100755 build.py delete mode 100755 publish.py diff --git a/.vscodeignore b/.vscodeignore index 9c93657..c8074bb 100644 --- a/.vscodeignore +++ b/.vscodeignore @@ -1,6 +1,7 @@ .vscode/** src/** +**/.* **/*.map -.gitignore -build.cmd -tsconfig.json \ No newline at end of file +**/*.ts +tsconfig.json +tslint.json diff --git a/README-dev.md b/README-dev.md deleted file mode 100644 index 1c83bb0..0000000 --- a/README-dev.md +++ /dev/null @@ -1,34 +0,0 @@ -# ccls - -This is the Visual Studio Code extension for ccls, which originates from cquery. - -The main ccls language server which powers this extension is found at -. - -# Building - -## Dependencies - -Make sure you have `npm` installed. - -## Build - -```bash -npm install -python build.py -``` - -Now, you can use vscode to install `out/ccls.vsix`. - -# Deploying - -To deploy a new release to the marketplace, simply run `publish.py` with a -clean working directory. By default a patch release is performed. - -```bash -python publish.py [patch|minor|major] -``` - -# LICENSE - -MIT diff --git a/README.md b/README.md index 03f9614..e2cc47c 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,7 @@ # vscode-ccls -This is the Visual Studio Code extension for [ccls](https://github.com/MaskRay/ccls). - -![](https://ptpb.pw/ScXs.jpg) +This is the Visual Studio Code extension for [ccls](https://github.com/MaskRay/ccls), +a C/C++/ObjC language server supporting cross references, hierarchies, completion and semantic highlighting. See: diff --git a/build.py b/build.py deleted file mode 100755 index 29c9136..0000000 --- a/build.py +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env python - -import subprocess -import sys -from os.path import join - -if __name__ == "__main__": - OUT = 'out/ccls.vsix' - VSCE = 'vsce.cmd' if sys.platform == 'win32' else 'vsce' - VSCE = join('node_modules', '.bin', VSCE) - sys.exit(subprocess.call([VSCE, 'package', '-o', OUT])) diff --git a/package-lock.json b/package-lock.json index 6598fbe..f173c00 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "ccls", - "version": "0.1.23", + "version": "0.1.27", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index de005a7..a7c1fe4 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "description": "C/C++/ObjC language server supporting cross references, hierarchies, completion and semantic highlight", "author": "ccls-project", "license": "MIT", - "version": "0.1.23", + "version": "0.1.27", "publisher": "ccls-project", "scripts": { "vscode:prepublish": "npm run lint && npm run compile", diff --git a/publish.py b/publish.py deleted file mode 100755 index 0f17b8d..0000000 --- a/publish.py +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env python - -import subprocess -import sys - -if __name__ == "__main__": - # patch|minor|major - CMD = 'patch' - if len(sys.argv) > 1 and sys.argv[1]: - CMD = sys.argv[1] - - # patch | minor | major - if subprocess.call(['npm', 'version', CMD]) != 0: - sys.exit(1) - sys.exit(subprocess.call(['git', 'push', 'origin', 'master', '--follow-tags'])) - -