0.0.25 • Published 8 months ago

@hkdigital/lib-sveltekit-test v0.0.25

Weekly downloads
-
License
ISC
Repository
-
Last release
8 months ago

HKdigital's lib Sveltekit

EARLY DEVELOPMENT RELEASE

This is a library for SvelteKit projects, that contains common code and components that we use to create our projects.

Using the library

Install

The library can be installed as a normal NPM library.

pnpm add @hkdigital/lib-sveltekit

Update

ncu "@hkdigital/*" -u && pnpm install

Import JS & Svelte

All exports are in subfolders.

For example to import a constant from constants/regexp/index.js

import { CHAR } from '@hkdigital/lib-sveltekit-test/constants/regexp';

import CSS

Vite should include postcss-import, but the only solution to get it working for now is to use a relative path to the node_modules folder.

For example:

/* src/app.css */
@import '../node_modules/@hkdigital/lib-sveltekit-test/dist/css/utilities.postcss';

Building the showcase app

To build your library:

npm run package

To create a production version of your showcase app:

npm run build

You can preview the production build with npm run preview.

To deploy your app, you may need to install an adapter for your target environment.

Developing

To develop this library, clone the repository and install the dependencies, then start the development server of the test runners. Checkout the package.json file for more details.

Everything inside src/lib is part of the library, everything inside src/routes is the showcase app of this library.

Publishing

The name of this library is @hkdigital/lib-sveltekit and it is published on NPM. You need NPM credentials to publish in the scope @hkdigital.

Contribute

If your wish to contribute to this library, please contact us HKdigital. Alternatively, the license permits you to fork the library and publish under an alternative name. Change the package name in package.json to do so.

npm login
npm version patch
npm publish --access public
0.0.25

8 months ago

0.0.24

8 months ago

0.0.23

8 months ago

0.0.22

8 months ago

0.0.21

8 months ago

0.0.20

8 months ago

0.0.19

8 months ago

0.0.18

8 months ago

0.0.17

8 months ago

0.0.16

8 months ago

0.0.15

8 months ago

0.0.14

8 months ago

0.0.13

8 months ago

0.0.12

8 months ago

0.0.11

8 months ago

0.0.10

8 months ago

0.0.8

8 months ago

0.0.7

8 months ago

0.0.6

8 months ago

0.0.5

8 months ago

0.0.4

8 months ago

0.0.3

8 months ago

0.0.2

8 months ago

0.0.1

8 months ago