svelte-tuicss
v0.0.4
Published
Svelte component library for the Tuicss UI framework.
Downloads
472
Maintainers
Readme
svelte-tuicss
This is currently experimental.
Alternative to react-tuicss
This library is a component library built on TuiCss.
I built this as a way to learn svelte.
Installing
npm i svelte-tuicss
Then add code like this to your .svelte
file
import { TuiPanel, TuiScreen, TuiTabs } from "svelte-tuicss";
I will eventually write better docs, but you can get plenty of examples from the docs site and the docs code.
Developing
To develop normally, you probably want to use the docs site as a test bed for what you're doing.
To test that your stuff compiles, there are multiple commands for doing that, including...
npm run check
npm run check:watch
npm run build
Run the format and lint commands before committing/pushing to prevent unneeded CI fails.
npm run format
npm run lint
Tests can be run with
# for normal test running
npm run test
# for coverage
npm run coverage
Tests can be debugged in vscode
by hitting F5
on the test file you wish to debug.
[!NOTE] The workspace file at the root folder of this repo should be opened in vscode as it has the configuration for this.
Releasing
- Get changes into
main
- Pull latest code to local
- Create a branch on your local
- Run
npm run tag-release
(this will analyse commits, generate a changelog entry, bump npm and create a corresponding git tag).- advise configuring git to follow tags on push, eg.
git config --global push.followTags true
- You need to push the branch commits and tag to the remote
- advise configuring git to follow tags on push, eg.
- Get this release PR merged to
main
- Create a new release against the tag you just created.
- When the release is published, the workflow will handle the rest
Changelog
See here