Skip to content

Commit

Permalink
Merge pull request #9 from chemmedia/vite-migration
Browse files Browse the repository at this point in the history
[KNOW-11217] migrate to vite, update dependencies
  • Loading branch information
martinkutter authored Apr 23, 2024
2 parents ad03e8e + 941a1ca commit 749606e
Show file tree
Hide file tree
Showing 12 changed files with 1,152 additions and 44 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.idea
node_modules
/lib
/dist
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ If you are starting from scratch, we highly recommend to fork one of our example
To install the API library, use your preferred package manager, e.g.

```sh
$ yarn add knowledgeworker-embedded-asset-api
$ pnpm install knowledgeworker-embedded-asset-api
```

## Usage
Expand Down Expand Up @@ -222,6 +222,7 @@ interface LMSData {
export enum ContextType {
MEDIUM = 'medium',
QUESTION = 'question',
ASSESSMENT= 'assessment',
SECTION = 'section',
CONTENT = 'content',
CHAPTER = 'chapter',
Expand Down Expand Up @@ -372,7 +373,7 @@ To use native-looking Knowledgeworker Create UI elements in your rich content pa
See docs there on how to use it.

## Deprecation
Version 1 of knowledgeworker-embedded-asset-api is now deprecated but will be supported until end of 2022.
Version 2 of knowledgeworker-embedded-asset-api is now deprecated but will be supported until end of 2024.

## Versioning

Expand Down
32 changes: 21 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,41 @@
{
"name": "knowledgeworker-embedded-asset-api",
"version": "2.1.0",
"version": "3.0.0",
"author": "chemmedia AG",
"description": "A javascript library to integrate rich content packages into responsive Knowledgeworker Create contents.",
"keywords": [
"knowledgeworker"
],
"scripts": {
"build": "tsc",
"prepare": "yarn run build"
},
"homepage": "https://knowledgeworker.com",
"bugs": "https://github.com/chemmedia/knowledgeworker-embedded-asset-api/issues",
"license": "LGPL-3.0",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/chemmedia/knowledgeworker-embedded-asset-api.git"
},
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": "./dist/index.js"
},
"files": [
"lib/**/*"
"dist/**/*"
],
"devDependencies": {
"typescript": "^4.7.2"
"scripts": {
"build": "tsc && vite build",
"prepare": "pnpm build"
},
"dependencies": {
"knowledgeworker-embedded-asset-api-ui": "^1.0.0"
"knowledgeworker-embedded-asset-api-ui": "^2.0.0"
},
"devDependencies": {
"@types/node": "^18.19.31",
"typescript": "^5.4.3",
"vite": "^5.2.8",
"vite-plugin-dts": "^3.8.1"
},
"engines": {
"node": ">=18"
}
}
Loading

0 comments on commit 749606e

Please sign in to comment.