diff --git a/package-lock.json b/package-lock.json index 23602cc..9458430 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@tikui/core", - "version": "1.4.0", + "version": "1.5.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -758,6 +758,11 @@ "@cspotcode/source-map-consumer": "0.8.0" } }, + "@fontsource/montserrat": { + "version": "4.5.1", + "resolved": "https://registry.npmjs.org/@fontsource/montserrat/-/montserrat-4.5.1.tgz", + "integrity": "sha512-xdMkzsnFlzDt5Vj9+AWuUp4Vd9F3hYN2I0GTZZYscWN/bQ20wVOGtdWLO8Okfv7SZ9t/z39/EayAAt+f/8tAvw==" + }, "@istanbuljs/load-nyc-config": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", diff --git a/package.json b/package.json index 9e650f4..b337fef 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tikui/core", - "version": "1.4.0", + "version": "1.5.0", "description": "Tikui core", "main": "src/tikui.js", "scripts": { @@ -21,6 +21,7 @@ }, "homepage": "https://github.com/tikui/tikui-core#readme", "dependencies": { + "@fontsource/montserrat": "^4.5.1", "commander": "^8.2.0", "concurrently": "^6.3.0", "cors": "^2.8.5", diff --git a/src/lib-resources.ts b/src/lib-resources.ts index 9cf5623..8aad8de 100644 --- a/src/lib-resources.ts +++ b/src/lib-resources.ts @@ -5,9 +5,7 @@ interface LibResource { from: string } -interface LibResources { - [module: string]: LibResource[]; -} +type LibResources = Record; export const libResources: LibResources = { 'prismjs': [ @@ -23,7 +21,25 @@ export const libResources: LibResources = { from: 'themes/prism.css', to: 'prism.css', }, + { + from: 'themes/prism-okaidia.css', + to: 'prism-okaidia.css', + }, ], + '@fontsource/montserrat': [ + { + from: 'files', + to: 'files' + }, + { + from: 'index.css', + to: 'index.css' + }, + { + from: '700.css', + to: '700.css' + }, + ] };