Thanks to visit codestin.com
Credit goes to github.com

Skip to content

This repository contains numerous template examples that have been implemented with KoliBri.

Notifications You must be signed in to change notification settings

public-ui/templates

Repository files navigation

KoliBri Templates

This repository holds most of the official starter templates for KoliBri library.

Learn more on the KoliBri website.

Introduction

Those templates dependencies are maintained via pnpm via pnpm up -Lri.

This is the reason you see a pnpm-lock.yaml. That being said, any package manager will work. This file can be safely be removed once you clone a template.

Get started

These templates are meant to be used as is via the degit utility.

Application templates

Client side rendering

Angular webpack template
$ npx degit public-ui/templates/csr/angular-webpack my-kolibri-project
$ cd my-kolibri-project
$ npm i # or pnpm i or yarn
Preact webpack template
$ npx degit public-ui/templates/csr/preact-webpack my-kolibri-project
$ cd my-kolibri-project
$ npm i # or pnpm i or yarn
React vite template
$ npx degit public-ui/templates/csr/react-vite my-kolibri-project
$ cd my-kolibri-project
$ npm i # or pnpm i or yarn
React webpack template
$ npx degit public-ui/templates/csr/react-webpack my-kolibri-project
$ cd my-kolibri-project
$ npm i # or pnpm i or yarn
Solid webpack template
$ npx degit public-ui/templates/csr/solid-webpack my-kolibri-project
$ cd my-kolibri-project
$ npm i # or pnpm i or yarn
Static page template
$ npx degit public-ui/templates/csr/static-page my-kolibri-project
$ cd my-kolibri-project
$ npm i # or pnpm i or yarn
Vue vite template
$ npx degit public-ui/templates/csr/vue-vite my-kolibri-project
$ cd my-kolibri-project
$ npm i # or pnpm i or yarn
Vue webpack template
$ npx degit public-ui/templates/csr/vue-webpack my-kolibri-project
$ cd my-kolibri-project
$ npm i # or pnpm i or yarn

Server side rendering

Not ready yet! Coming soon.

Astro template
$ npx degit public-ui/templates/ssr/astro my-kolibri-project
$ cd my-kolibri-project
$ npm i # or pnpm i or yarn
Express template
$ npx degit public-ui/templates/ssr/express my-kolibri-project
$ cd my-kolibri-project
$ npm i # or pnpm i or yarn
Next.js template
$ npx degit public-ui/templates/ssr/next.js my-kolibri-project
$ cd my-kolibri-project
$ npm i # or pnpm i or yarn
Remix template
$ npx degit public-ui/templates/ssr/remix my-kolibri-project
$ cd my-kolibri-project
$ npm i # or pnpm i or yarn

Library templates

KoliBri library template

$ npx degit public-ui/templates/kolibri/library my-kolibri-project
$ cd my-kolibri-project
$ pnpm i # no npm or yarn

KoliBri theme template

$ npx degit public-ui/templates/kolibri/theme my-kolibri-project
$ cd my-kolibri-project
$ npm i # or pnpm i or yarn

Here a short shell script to make a full round trip:

#!/bin/bash
set -euo pipefail

# Vorhandenes Verzeichnis löschen
rm -rf my-own-kolibri-theme

# Repository klonen
npx degit public-ui/templates/kolibri/theme my-own-kolibri-theme

# Wechsel in das neue Verzeichnis
cd my-own-kolibri-theme || { echo "Verzeichniswechsel fehlgeschlagen"; exit 1; }

# VS Code im aktuellen Verzeichnis öffnen
if command -v code >/dev/null 2>&1; then
  code .
else
  echo "VS Code (code) ist nicht installiert oder nicht im PATH."
fi

# Abhängigkeiten installieren mit pnpm@^10
npx --yes pnpm@^10 install

# Git-Repository initialisieren und initialen Commit machen
git init
git add .
git commit -m "chore: commit initial code"

# Snapshot-Tests aktualisieren
npm run test-update || true

# Neue Snapshots committen
git add .
git commit -m "chore: commit initial snapshots"

# Projekt starten
npm start

Other templates

Svg2Font template

$ npx degit public-ui/templates/svg2font my-kolibri-project
$ cd my-kolibri-project
$ npm i # or pnpm i or yarn

About

This repository contains numerous template examples that have been implemented with KoliBri.

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •