Restarfall
is a JavaScript library for creating business logic and data management.
import { create, use } from "restarfall";
const $count = create.store<number>(0);
const inc = create.event<void>();
const counter = create.unit(() => {
const incEvent = use.depend(inc);
const count = use.value($count);
const setCount = use.dispatch($count);
if (incEvent.called) setCount(count + 1);
return null;
});
const shape = create.shape();
shape.attach(counter());
Create commits by conventional-commits. For one use commitlint
.
For relase use standard-version
.
npm run release -- --first-release
npm run release
After push to remote-repo run workflow Publish to npmjs
from actions
tab into GitHub.