-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: introduce constant package to handle UI5 default version in cent…
…ral package
- Loading branch information
1 parent
d09ce00
commit fd29edd
Showing
71 changed files
with
530 additions
and
262 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
"@ui5-language-assistant/vscode-ui5-language-assistant-bas-ext": patch | ||
"vscode-ui5-language-assistant": patch | ||
"@ui5-language-assistant/xml-views-completion": patch | ||
"@ui5-language-assistant/xml-views-validation": patch | ||
"@ui5-language-assistant/xml-views-tooltip": patch | ||
"@ui5-language-assistant/language-server": patch | ||
"@ui5-language-assistant/test-utils": patch | ||
"@ui5-language-assistant/semantic-model": patch | ||
"@ui5-language-assistant/logic-utils": patch | ||
"@ui5-language-assistant/constant": patch | ||
"@ui5-language-assistant/context": patch | ||
--- | ||
|
||
fix: introduce constant package to handle UI5 default version in central package |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
[](https://www.npmjs.com/package/@ui5-language-assistant/constant) | ||
|
||
# @ui5-language-assistant/constant | ||
|
||
A package for constants that can be reuse a cross other packages. This package is introduced to avoid cyclic dependency. | ||
|
||
## Installation | ||
|
||
With npm: | ||
|
||
- `npm install @ui5-language-assistant/constant` | ||
|
||
With Yarn: | ||
|
||
- `yarn add @ui5-language-assistant/constant` | ||
|
||
## Usage | ||
|
||
This package only exposes programmatic APIs, import the package and use the exported APIs | ||
defined in [api.ts](./src/api.ts). | ||
|
||
## Support | ||
|
||
Please open [issues](https://github.com/SAP/ui5-language-assistant/issues) on github. | ||
|
||
## Contributing | ||
|
||
See [CONTRIBUTING.md](./CONTRIBUTING.md). | ||
|
||
## Licensing | ||
|
||
Copyright 2022 SAP SE. Please see our [LICENSE](../../LICENSE) for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available [via the REUSE tool](https://api.reuse.software/info/github.com/SAP/ui5-language-assistant). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
const { join } = require("path"); | ||
const defaultConfig = require("../../jest.config"); | ||
|
||
module.exports = { | ||
...defaultConfig, | ||
globals: { | ||
"ts-jest": { | ||
tsconfig: join(__dirname, "tsconfig-test.json"), | ||
diagnostics: { | ||
// warnOnly: true, | ||
exclude: /\.(spec|test)\.ts$/, | ||
}, | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"name": "@ui5-language-assistant/constant", | ||
"version": "0.0.0", | ||
"private": true, | ||
"description": "constant variables used across packages", | ||
"keywords": [], | ||
"files": [ | ||
".reuse", | ||
"LICENSES", | ||
"lib/src", | ||
"src" | ||
], | ||
"main": "lib/src/api.js", | ||
"repository": "https://github.com/sap/ui5-language-assistant/", | ||
"license": "Apache-2.0", | ||
"dependencies": {}, | ||
"devDependencies": {}, | ||
"scripts": { | ||
"ci": "npm-run-all clean compile lint", | ||
"clean": "rimraf ./lib ./coverage ./nyc_output", | ||
"compile": "yarn run clean && tsc -p .", | ||
"compile:watch": "tsc -p . --watch", | ||
"lint": "eslint . --ext .ts --max-warnings=0 --ignore-path=../../.gitignore", | ||
"test": "echo nothing to test", | ||
"format:fix": "prettier --write \"**/*.@(js|ts|json|md)\" --ignore-path=.gitignore" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export { | ||
DEFAULT_OPEN_UI5_VERSION, | ||
DEFAULT_UI5_FRAMEWORK, | ||
DEFAULT_UI5_VERSION, | ||
DEFAULT_UI5_VERSION_BASE, | ||
OPEN_FRAMEWORK, | ||
UI5_FRAMEWORK_CDN_BASE_URL, | ||
} from "./constant"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export const OPEN_FRAMEWORK = "OpenUI5"; | ||
export const DEFAULT_UI5_FRAMEWORK = "SAPUI5"; | ||
|
||
export const DEFAULT_UI5_VERSION = "1.71.70"; | ||
export const DEFAULT_OPEN_UI5_VERSION = "1.71.67"; | ||
export const DEFAULT_UI5_VERSION_BASE = "1.71"; | ||
|
||
export const UI5_FRAMEWORK_CDN_BASE_URL = { | ||
OpenUI5: "https://sdk.openui5.org/", | ||
SAPUI5: "https://ui5.sap.com/", | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"extends": "../../tsconfig.base.json", | ||
"compilerOptions": { | ||
"rootDir": ".", | ||
"outDir": "lib", | ||
"baseUrl": "." | ||
}, | ||
"include": ["src/**/*", "api.d.ts"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.