Fix VSIX packaging and add PR validation

This commit is contained in:
Nick Guerrera 2021-03-10 16:18:00 -08:00
Родитель a424d2d68b
Коммит e43a5495fc
3 изменённых файлов: 20 добавлений и 2 удалений

Просмотреть файл

@ -0,0 +1,16 @@
# This file determines what goes in the VSIX. We use an opt-in rather than
# opt-out approach to avoid accidentally shipping unwanted files.
# Exclude everything by default.
**/*
# Then explicitly include what we want to ship in VSIX
!dist/**/*.json
!dist/**/*.js
!dist/**/*.js.map
!README.md
!package.json
# These are handled by magic in vsce such that only production dependencies are
# included.
!node_modules

Просмотреть файл

@ -0,0 +1 @@
# ADL Language Support for VS Code

Просмотреть файл

@ -1,12 +1,13 @@
{
"name": "adl-vscode",
"displayName": "ADL Language Support for VS Code",
"description": "ADL Language Support for VS Code",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/azure/adl"
},
"publisher": "Microsoft",
"description": "",
"version": "0.1.1",
"engines": {
"vscode": "^1.53.0"
@ -22,7 +23,7 @@
"build": "tsc -p . && npm run tmlanguage-gen",
"watch": "tsc -p . --watch",
"tmlanguage-gen": "node dist/adl.tmlanguage.js",
"package": "npm run build && vsce package",
"package": "npm pack ../adl && npm run build && node ../../common/scripts/install-run-rush.js unlink && npm install --no-save azure-tools-adl-0.3.0.tgz && npm install && vsce package && node ../../common/scripts/install-run-rush.js link",
"check-format": "prettier --list-different --config ../../.prettierrc.json --ignore-path ../../.prettierignore \"**/*.{ts,js,json}\"",
"format": "prettier --write --config ../../.prettierrc.json --ignore-path ../../.prettierignore \"**/*.{ts,js,json}\""
},