This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #97 from brawaru/feat/typescript-hell-yeah
Enable TypeScript support
- Loading branch information
Showing
13 changed files
with
779 additions
and
150 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
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
fetch-retry-mintimeout=20000 | ||
fetch-retry-maxtimeout=120000 | ||
auto-install-peers=true |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export * from './highlight' | ||
export * from './parse' | ||
export * from './utils' | ||
export * from './highlight.js' | ||
export * from './parse.js' | ||
export * from './utils.js' |
This file was deleted.
Oops, something went wrong.
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,16 @@ | ||
import * as components from './components/index.js' | ||
import FloatingVue from 'floating-vue' | ||
import { Plugin } from 'vue' | ||
|
||
const plugin: Plugin = (app) => { | ||
for (const key in components) { | ||
app.component(key, components[key as keyof typeof components]) | ||
} | ||
app.use(FloatingVue) | ||
} | ||
|
||
export default plugin | ||
export * from './components/index.js' | ||
export * from './helpers/index.js' | ||
|
||
import './assets/omorphia.scss' |
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,2 @@ | ||
/// <reference types="vite/client" /> | ||
/// <reference types="vite-svg-loader" /> |
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 |
---|---|---|
|
@@ -3,20 +3,20 @@ | |
"type": "module", | ||
"version": "0.5.1", | ||
"files": [ | ||
"dist", | ||
"lib" | ||
"dist" | ||
], | ||
"main": "./dist/omorphia.umd.cjs", | ||
"module": "./dist/omorphia.js", | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/omorphia.js", | ||
"require": "./dist/omorphia.umd.cjs" | ||
"require": "./dist/omorphia.cjs" | ||
}, | ||
"./dist/style.css": "./dist/style.css" | ||
}, | ||
"scripts": { | ||
"build": "vite build", | ||
"build": "vue-tsc && vite build", | ||
"lint:js": "eslint --ext .js,.vue,.ts,.jsx,.tsx,.html,.vue .", | ||
"lint": "pnpm run lint:js && prettier --check .", | ||
"fix": "eslint --fix --ext .js,.vue,.ts,.jsx,.tsx,.html,.vue . && prettier --write .", | ||
|
@@ -31,13 +31,14 @@ | |
"highlight.js": "^11.8.0", | ||
"markdown-it": "^13.0.1", | ||
"qrcode.vue": "^3.4.0", | ||
"vue": "^3.3.4", | ||
"vue-chartjs": "^5.2.0", | ||
"vue-router": "^4.2.1", | ||
"vue-select": "^4.0.0-beta.6", | ||
"xss": "^1.0.14" | ||
}, | ||
"devDependencies": { | ||
"@typescript-eslint/eslint-plugin": "^6.7.4", | ||
"@typescript-eslint/parser": "^6.7.4", | ||
"@vitejs/plugin-vue": "^4.2.3", | ||
"eslint": "^8.41.0", | ||
"eslint-config-prettier": "^8.8.0", | ||
|
@@ -46,12 +47,19 @@ | |
"postcss": "^8.4.24", | ||
"postcss-prefix-selector": "^1.16.0", | ||
"prettier": "^2.8.8", | ||
"rollup-plugin-node-externals": "^6.1.2", | ||
"sass": "^1.62.1", | ||
"sass-loader": "^13.3.1", | ||
"typescript": "^5.2.2", | ||
"vite": "^4.3.9", | ||
"vite-plugin-dts": "^3.6.0", | ||
"vite-plugin-eslint": "^1.8.1", | ||
"vite-svg-loader": "^4.0.0", | ||
"vitepress": "^1.0.0-beta.1" | ||
"vitepress": "^1.0.0-beta.1", | ||
"vue-tsc": "^1.8.16" | ||
}, | ||
"peerDependencies": { | ||
"vue": "^3.3.4" | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
Oops, something went wrong.