Skip to content

Commit f4511e8

Browse files
committed
Create @intersystems-community/intersystems-servermanager NPM package
1 parent 68a6f02 commit f4511e8

File tree

7 files changed

+326
-0
lines changed

7 files changed

+326
-0
lines changed

types/.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
tsconfig.json
2+
*.tgz

types/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# InterSystems Server Manager extension API interfaces and constants
2+
3+
[![GitHub](https://img.shields.io/github/license/intersystems-community/intersystems-servermanager)](https://github.com/intersystems-community/intersystems-servermanager/blob/master/LICENSE)
4+
5+
Package defining the interfaces used in the API that is published by the `intersystems-community.servermanager` [extension for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=intersystems-community.servermanager), plus constants associated with the extension.
6+
7+
# Changelog
8+
9+
### v3.0.0
10+
11+
- First release, numbered to align with the first published version of Server Manager 3.

types/index.d.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
export const EXTENSION_ID = 'intersystems-community.servermanager';
2+
export const AUTHENTICATION_PROVIDER = 'intersystems-server-credentials';
3+
4+
export interface IServerName {
5+
name: string;
6+
description: string;
7+
detail: string;
8+
}
9+
10+
export interface IWebServerSpec {
11+
scheme?: string;
12+
host: string;
13+
port: number;
14+
pathPrefix?: string;
15+
}
16+
17+
export interface IJSONServerSpec {
18+
webServer: IWebServerSpec;
19+
username?: string;
20+
password?: string;
21+
description?: string;
22+
}
23+
24+
export interface IServerSpec extends IJSONServerSpec {
25+
name: string;
26+
}

types/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
module.exports = {
2+
};

types/package-lock.json

Lines changed: 230 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

types/package.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"name": "@intersystems-community/intersystems-servermanager",
3+
"version": "3.0.0",
4+
"description": "InterSystems Server Manager VS Code extension API interfaces and constants",
5+
"types": "index.d.ts",
6+
"main": "index.js",
7+
"license": "MIT",
8+
"private": false,
9+
"publishConfig": {
10+
"access": "public",
11+
"registry": "https://registry.npmjs.org/"
12+
},
13+
"scripts": {
14+
"test:tsc": "tsc --noEmit -p ./tsconfig.json --skipLibCheck",
15+
"prerelease": "rimraf *.tgz",
16+
"release": "npm publish --tag latest --access public",
17+
"prebeta": "rimraf *.tgz",
18+
"beta": "npm publish --tag beta --access public"
19+
},
20+
"keywords": [
21+
"intersystems"
22+
],
23+
"authors": [
24+
"John Murray <[email protected]>"
25+
],
26+
"repository": {
27+
"type": "git",
28+
"url": "https://github.com/intersystems-community/intersystems-servermanager.git",
29+
"directory": "types"
30+
},
31+
"bugs": {
32+
"url": "https://github.com/intersystems-community/intersystems-servermanager/issues"
33+
},
34+
"devDependencies": {
35+
"rimraf": "^3.0.0"
36+
}
37+
}

types/tsconfig.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"compilerOptions": {
3+
"allowJs": true,
4+
"checkJs": true,
5+
"allowSyntheticDefaultImports": true,
6+
"esModuleInterop": true,
7+
"noUnusedLocals": true,
8+
"noUnusedParameters": true,
9+
"experimentalDecorators": true,
10+
"lib": ["es6"],
11+
"module": "commonjs",
12+
"noEmit": true,
13+
"removeComments": true,
14+
"resolveJsonModule": true,
15+
"sourceMap": true,
16+
"target": "esnext",
17+
},
18+
}

0 commit comments

Comments
 (0)