@hookstate/core

v3.0.6
The flexible, fast and extendable state management for React that is based on hooks and state usage tracking.

start

rollup -c -w

build

rollup -c

build:watch

yarn run start

lint

tslint --project .

clean

rimraf dist

clean-deps

rimraf node_modules

test

cross-env CI=1 react-scripts test --env=jsdom

test:watch

react-scripts test --env=jsdom --watch

check-updates

ncu

apply-updates

ncu -u

build:docs

typedoc --plugin typedoc-plugin-markdown --hideBreadcrumbs --tsconfig ./tsconfig.typedoc.json --exclude "dist/**.js" --gitRevision master --includeDeclarations --excludeExternals --excludeNotExported --categorizeByGroup false --readme none --hideGenerator --mode file --out dist/docs && concat-md --decrease-title-levels --dir-name-as-title dist/docs > dist/typedoc.md && rimraf dist/docs && replace '></a>' '/>' dist/typedoc.md && replace 'Ƭ [*][*]([A-Za-z0-9]+)[*][*]: [*](.*)[*]' 'Ƭ **$1**: *`$2`*' dist/typedoc.md && replace 'Ƭ [*][*]State[*][*]: [*](.*)[*]' 'Ƭ **State**: *[StateMixin](#interfacesstatemixinmd) & `S extends object` ? `{ readonly [K in keyof Required<S>]: State<S[K]> }` : [StateMethods](#interfacesstatemethodsmd)*' dist/typedoc.md && replace '[(]statemethods.md#\[self\][)]' '(#self)' dist/typedoc.md && replace '[(]statemixin.md#\[self\][)]' '(#self-1)' dist/typedoc.md && replace '[(]statemixindestroy.md#\[self\][)]' '(#self-2)' dist/typedoc.md && replace '# @hookstate/core' '' dist/typedoc.md && replace '<a name="readmemd"/>' ' --- id: typedoc-hookstate-core title: API @hookstate/core ---' dist/typedoc.md && replace ' (---)' '$1' dist/typedoc.md && mv dist/typedoc.md docs/index/docs/typedoc-hookstate-core.md

prepare

yarn build
npm i @hookstate/[email protected]

Metadata

  • MIT
  • >=8
  • Andrey Konstantinov
  • released 2/17/2021

Downloads

Maintainers