Archived
1
0

plugin.ts: Make application endpoint paths absolute

This commit is contained in:
Anmol Sethi
2020-11-03 21:42:21 -05:00
parent 139a28e0ea
commit 687094802e
5 changed files with 20 additions and 13 deletions

View File

@ -1,5 +1,6 @@
out/index.js: src/index.ts
yarn build
# Typescript always emits, even on errors.
yarn build || rm out/index.js
node_modules: package.json yarn.lock
yarn

View File

@ -3,7 +3,7 @@ import * as fspath from "path"
import * as pluginapi from "../../../typings/pluginapi"
export const displayName = "Test Plugin"
export const path = "/test-plugin"
export const routerPath = "/test-plugin"
export const description = "Plugin used in code-server tests."
export function init(config: pluginapi.PluginConfig) {
@ -24,6 +24,7 @@ export function applications(): pluginapi.Application[] {
name: "Test App",
version: "4.0.0",
iconPath: "/icon.svg",
path: "/test-app",
description: "This app does XYZ.",
},