@hkdigital/lib-sveltekit-test v0.0.25
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
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago