0.0.1-alpha14 • Published 3 years ago

@omerlo/omerlo-webkit v0.0.1-alpha14

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

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

0.0.1-alpha14

3 years ago

0.0.1-alpha13

3 years ago

0.0.1-alpha12

3 years ago

0.0.1-alpha11

3 years ago

0.0.1-alpha10

3 years ago

0.0.1-alpha9

3 years ago

0.0.1-alpha8

3 years ago

0.0.1-alpha7

3 years ago

0.0.1-alpha6

3 years ago

0.0.1-alpha5

3 years ago

0.0.1-alpha4

3 years ago

0.0.1-alpha3

3 years ago

0.0.1-alpha2

3 years ago

0.0.1-alpha1

3 years ago

0.0.1

3 years ago