0.0.1-alpha14 • Published 2 years ago
@omerlo/omerlo-webkit v0.0.1-alpha14
Omerlo's webkit (alpha)
Speed up your website development using the Omerlo's webkit.
The webkit export:
- utilities to request the API
- stores to speed your website runtime
- helpers to focus on what really matters
Installation
We highly recommand to use the boilerplate (coming soon).
Otherwise you can simply use npm.
npm i @omerlo/omerlo-webkit
Configuration
The omerlo webkit needs 2 variables:
VITE_PUBLIC_BASE_API_URL
: base URL of the public api.VITE_PUBLIC_MEDIA_ID
: the media you want to display in your website.
// vite.config.ts or vite.config.js
// ...
const config: UserConfig = {
plugins: [sveltekit()],
define: {
'process.env': {
VITE_PUBLIC_MEDIA_ID: 'id-of-the-media',
VITE_PUBLIC_BASE_API_URL: 'https://example.com/'
}
}
};
// ...
Auto complete
Expends your types using the following piece of code:
// tsconfig.js
{
"compilerOptions": {
"types": [
"@omerlo/omerlo-webkit/types/omerlo-webkit-config"
]
}
}
Maintainers
- Alexandre Lepretre (Matsa59)
0.0.1-alpha14
2 years ago
0.0.1-alpha13
2 years ago
0.0.1-alpha12
2 years ago
0.0.1-alpha11
2 years ago
0.0.1-alpha10
2 years ago
0.0.1-alpha9
2 years ago
0.0.1-alpha8
2 years ago
0.0.1-alpha7
2 years ago
0.0.1-alpha6
2 years ago
0.0.1-alpha5
2 years ago
0.0.1-alpha4
2 years ago
0.0.1-alpha3
2 years ago
0.0.1-alpha2
2 years ago
0.0.1-alpha1
2 years ago
0.0.1
2 years ago