Skip to content

Commit

Permalink
added initial package: core-version-http-server
Browse files Browse the repository at this point in the history
  • Loading branch information
jloleysens committed Feb 20, 2023
1 parent eba0dc6 commit 649c587
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/core/versioning/core-version-http-server/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# @kbn/core-version-http-server

This package contains types for sever-side HTTP versioning.

## Experimental

The types in this package are all experimental and may be subject to extensive changes.
Use this package as a reference for current thinking and as a starting point to
raise questions and discussion.

## Versioning specification

Currently the versioning spec is being designed.
7 changes: 7 additions & 0 deletions packages/core/versioning/core-version-http-server/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
13 changes: 13 additions & 0 deletions packages/core/versioning/core-version-http-server/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/

module.exports = {
preset: '@kbn/test/jest_node',
rootDir: '../../../..',
roots: ['<rootDir>/packages/core/versioning/core-version-http-server'],
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"type": "shared-common",
"id": "@kbn/core-version-http-server",
"owner": "@elastic/kibana-core"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "@kbn/core-version-http-server",
"private": true,
"version": "1.0.0",
"author": "Kibana Core",
"license": "SSPL-1.0 OR Elastic License 2.0"
}
18 changes: 18 additions & 0 deletions packages/core/versioning/core-version-http-server/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"extends": "../../../../tsconfig.base.json",
"compilerOptions": {
"outDir": "target/types",
"types": [
"jest",
"node"
]
},
"include": [
"**/*.ts"
],
"kbn_references": [
],
"exclude": [
"target/**/*",
]
}

0 comments on commit 649c587

Please sign in to comment.