Skip to content

Commit 2385d9f

Browse files
committed
Add Docker setup and OpenVSX publishing
1 parent 0142d5d commit 2385d9f

File tree

4 files changed

+28
-1
lines changed

4 files changed

+28
-1
lines changed

Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM node:15.11.0
2+
RUN apt-get update -qq
3+
4+
WORKDIR /src
5+
6+
COPY . .
7+
RUN npm install

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,13 @@ then providing new filename/path relative to the selection.
6767
1. Run the tests (via Debug > Launch Tests)
6868
1. Run the linter: `npm run lint`
6969
1. Open a PR
70+
71+
## Publishing
72+
73+
### OpenVSX
74+
75+
Change the publisher in package.json to giantcola, then run:
76+
77+
```
78+
docker-compose run plugin ./node_modules/.bin/ovsx publish -p [token]
79+
```

docker-compose.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: '3'
2+
3+
services:
4+
plugin:
5+
build: .
6+
volumes:
7+
- .:/src
8+
- /src/node_modules
9+
working_dir: /src

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@
9393
"tslint": "^4.4.2",
9494
"typescript": "^3.9.5",
9595
"vsce": "^1.18.0",
96-
"vscode": "^1.1.18"
96+
"vscode": "^1.1.18",
97+
"ovsx": "0.1.0-next.a9154dc"
9798
},
9899
"dependencies": {
99100
"gitignore-to-glob": "github:patbenatar/gitignore-to-glob",

0 commit comments

Comments
 (0)