willybrauner / smoovy

A collection of small and useful js packages (smooth scrolling, router, parallax, utils, etc.) preventing copy & paste

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

smoovy

Build Status Codecov contributions welcome License

A collection of small and useful js packages for simple preventing copy & paste. The goal is to use as few dependencies as possible to guarantee a small final bundle.

Packages

Name Version
 @smoovy/composer Version
 @smoovy/scroller Version
 @smoovy/observer Version
 @smoovy/parallax Version
 @smoovy/tween Version
 @smoovy/ticker Version
 @smoovy/emitter Version
 @smoovy/listener Version
 @smoovy/router Version
 @smoovy/webgl Version
 @smoovy/utils Version

Getting started

Choose a package you want to install. It's as easy as that:

yarn add @smoovy/<package>

or

npm install --save @smoovy/<package>

Workflow

This is a simple monorepo consisting of some of the packages mentioned above.

Building a package

To ensure the best result, packages are created with esbuild and tsc.

yarn build --scope=<name>

Testing a package

Packages will be tested with vitest.

yarn test --scope=<name>

Some packages are still missing tests. These will be excluded from the code coverage completely.

Serving a package demo

The demo will be served and bundled with vite. Every demo must have a index.html file.

yarn dev --scope=<name>

Linting a package

The ESLinter is being used for linting packages. Everything except the src folder will be ignored.

yarn lint --scope=<name>

License

See the LICENSE file for license rights and limitations (MIT).

About

A collection of small and useful js packages (smooth scrolling, router, parallax, utils, etc.) preventing copy & paste

License:MIT License


Languages

Language:TypeScript 93.3%Language:HTML 5.4%Language:SCSS 1.1%Language:Shell 0.1%Language:JavaScript 0.0%