0.1.8 • Published 9 months ago

@viamrobotics/prime-blocks v0.1.8

Weekly downloads
-
License
-
Repository
github
Last release
9 months ago

@viamrobotics/prime-blocks

Getting started

@viamrobotics/prime-blocks is a collection of Svelte components that host more complex behaviors than prime-core. These components may be able to do many things, but are able to be self-contained to a single component with the intention of being dropped into any environment easily. If prime-core is on the atoms / molecules side of atomic design then prime-blocks is on the organisms side.

Installation

Add PRIME blocks using your package manager of choice:

pnpm add --save-dev @viamrobotics/prime-blocks

Additionally, @viamrobotics/prime-core must be installed, and all of its installation steps must be followed.

Import the stylesheet. If you are using SvelteKit, you can do this in src/routes/+layout.svelte.

import '@viamrobotics/prime-blocks/prime.css';

You can now use the components in your app:

<script lang="ts">
  import { SlamMap } from '@viamrobotics/prime-blocks';
</script>

<SlamMap {cloud} />

Playground

The playground can be used during development but is not used outside of the package.

pnpm install
pnpm -C packages/blocks dev

Linting

To lint and typecheck:

pnpm -C packages/blocks check        # check svelte and lint
pnpm -C packages/blocks check-svelte # check svelte only
pnpm -C packages/blocks check-lint   # check lint only with prettier and eslint
pnpm -C packages/blocks format       # format with prettier

Testing

To test with vitest:

pnpm -C packages/blocks test        # run once
pnpm -C packages/blocks test:watch  # watch tests
0.1.8

9 months ago

0.1.7

9 months ago

0.1.6

11 months ago

0.1.5

11 months ago

0.1.4

12 months ago

0.1.3

12 months ago

0.1.2

12 months ago

0.1.0

1 year ago

0.1.1

1 year ago

0.0.30

1 year ago

0.0.29

1 year ago

0.0.28

1 year ago

0.0.27

2 years ago

0.0.26

2 years ago

0.0.24

2 years ago

0.0.25

2 years ago

0.0.23

2 years ago

0.0.22

2 years ago

0.0.21

2 years ago

0.0.20

2 years ago

0.0.19

2 years ago

0.0.18

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago