Update docs, change some dev-related stuff to look better in docs lol
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -10,7 +10,7 @@
|
||||
<script type="module">
|
||||
import PlApiClient from './lib/client.ts';
|
||||
|
||||
window.client = PlApiClient;
|
||||
window.PlApiClient = PlApiClient;
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@ -8,7 +8,7 @@ import { mimeSchema } from './utils';
|
||||
*/
|
||||
const blurhashSchema = v.pipe(v.string(), v.check(
|
||||
(value) => isBlurhashValid(value).result,
|
||||
'invalid blurhash', // .errorReason
|
||||
'invalid blurhash',
|
||||
));
|
||||
|
||||
const baseAttachmentSchema = v.object({
|
||||
|
||||
@ -12,7 +12,8 @@
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "tsc --p ./tsconfig-build.json && vite build",
|
||||
"build": "vite build",
|
||||
"watch": "vite build --watch",
|
||||
"preview": "vite preview",
|
||||
"lint": "npx eslint --ext .js,.jsx,.cjs,.mjs,.ts,.tsx . --cache"
|
||||
},
|
||||
|
||||
@ -1,4 +0,0 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"include": ["lib"]
|
||||
}
|
||||
@ -20,5 +20,5 @@
|
||||
"noUnusedParameters": true,
|
||||
"noFallthroughCasesInSwitch": true
|
||||
},
|
||||
"include": ["src", "lib"]
|
||||
"include": ["lib"]
|
||||
}
|
||||
|
||||
@ -21,4 +21,7 @@ export default defineConfig({
|
||||
external: Object.keys(pkg.dependencies),
|
||||
},
|
||||
},
|
||||
server: {
|
||||
port: Number(process.env.PORT ?? 7313),
|
||||
},
|
||||
});
|
||||
|
||||
@ -29,7 +29,7 @@ const config = defineConfig(({ command }) => ({
|
||||
},
|
||||
assetsInclude: ['**/*.oga'],
|
||||
server: {
|
||||
port: Number(process.env.PORT ?? 3036),
|
||||
port: Number(process.env.PORT ?? 7312),
|
||||
hmr: process.env.HMR_DISABLED === 'true' ? false : undefined,
|
||||
},
|
||||
plugins: [
|
||||
|
||||
Reference in New Issue
Block a user