Skip to content

Commit

Permalink
Merge pull request #21 from tikui/improve-library
Browse files Browse the repository at this point in the history
Make a font and a prism theme available
  • Loading branch information
Gnuk authored Oct 5, 2021
2 parents ee3f44b + 705f56e commit c20806f
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 5 deletions.
7 changes: 6 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tikui/core",
"version": "1.4.0",
"version": "1.5.0",
"description": "Tikui core",
"main": "src/tikui.js",
"scripts": {
Expand All @@ -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",
Expand Down
22 changes: 19 additions & 3 deletions src/lib-resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ interface LibResource {
from: string
}

interface LibResources {
[module: string]: LibResource[];
}
type LibResources = Record<string, LibResource[]>;

export const libResources: LibResources = {
'prismjs': [
Expand All @@ -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'
},
]
};


Expand Down

0 comments on commit c20806f

Please sign in to comment.