Skip to content

Commit

Permalink
fix: build and package extension working
Browse files Browse the repository at this point in the history
  • Loading branch information
matheuslenke committed Jun 12, 2022
1 parent 1159b59 commit d25b510
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
1 change: 1 addition & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.vscode-test/**
.gitignore
out/test/**
node_modules
src/**
.yarnrc
**/tsconfig.json
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ This is all the tools you need installed to run the project and the versions tha
### ⚙️ Initializing

* Run `npm run langium:generate` to generate TypeScript code from the grammar definition.
* Run `npm run build` to compile all TypeScript code.
* Run `npm run build` to compile all TypeScript code or `npm run watch` if you want the compiler to work automatically everytime you update your files
* Press `F5` to open a new window with your extension loaded.
* Create a new file with a file name suffix matching your language.
* Verify that syntax highlighting, validation, completion etc. are working as expected.
Expand All @@ -110,10 +110,10 @@ This is all the tools you need installed to run the project and the versions tha
```bash
# Run this to generate .vsix file
vsce package --yarn --pre-release --baseContentUrl none
vsce package --pre-release --baseContentUrl https://github.com/matheuslenke/Tonto

# Installing the extension in your vscode (requires the code extension in path)
code --install-extension generatedFile.vsix
code --install-extension tonto-x.x.x.vsix
```

<!-- LICENSE -->
Expand Down
17 changes: 8 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "tonto",
"displayName": "tonto",
"publisher": "NEMO",
"publisher": "Lenke",
"description": "Tonto is a DSL for creating OntoUML models",
"version": "0.0.1",
"version": "0.0.2",
"license": "MIT",
"icon": "docs/images/TontoIcon.png",
"repository": {
"type": "git",
"url": "https://github.com/matheuslenke/Tonto"
},
"engines": {
Expand Down Expand Up @@ -58,16 +59,14 @@
"bin": {
"tonto-cli": "./bin/cli"
},
"main": "./out/main.js",
"main": "./out/extension.js",
"scripts": {
"vscode:prepublish": "npm run esbuild-base -- --minify",
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node",
"esbuild": "npm run esbuild-base -- --sourcemap",
"esbuild-watch": "npm run esbuild-base -- --sourcemap --watch",
"vscode:prepublish": "npm run clean && tsc --noEmit && npm run lint && node esbuild.js --minify",
"package": "vsce package --pre-release --baseContentUrl none",
"build": "tsc -b tsconfig.json",
"watch": "tsc -b tsconfig.json --watch",
"clean": "rimraf out",
"lint": "eslint src --ext ts",
"build": "node esbuild.js && tsc --noEmit",
"watch": "node esbuild.js --watch",
"langium:generate": "langium generate",
"langium:watch": "langium generate --watch"
},
Expand Down

0 comments on commit d25b510

Please sign in to comment.