0.1.9071 • Published 3 years ago

@hagbardpaulson/spatial-beta v0.1.9071

Weekly downloads
67
License
-
Repository
-
Last release
3 years ago

Spatial Design Beta

Component library built with Vue CLI 3.

Demo & Documentation

Sooner or later, you will find that creating a component library is much better than having all components inside your app project. A component library force you remove app specific logic from your components, makes it possible to reuse them in other apps.

Once the components are in a libraray, documentation becomes critical. This starter project includes a documentation app powered by VuePress. It not only documents the usage of the component, but also provides a testing bed during the development of components. See the generated documentation app here.

Setup

# install dependencies
npm install

# start the doc app with hot reload, great for testing components
npm run docs:dev

# build the library, available under dist
npm run build

# build the doc app, available under docs/.vuepress/dist
npm run docs:build

Use your component library

You may publish your component library to NPM repository. If you prefer to use/test your component library locally in a client app, you may use npm link or install-local.

If your app is not using a bundler, the following is the example of how to use the library in vanilla HTML page.

<!DOCTYPE html>
<html>
  <head><title>Demo app</title></head>
  <body>
    <div id="app">
      <p>Component A: <component-a/></p>
      <p>Component B: <component-b @click="onClick"/></p>
    </div>
  </body>

  <script src="https://unpkg.com/vue"></script>
  <script src="dist/my-lib.umd.js"></script>
  <script>
      console.log(window['my-lib'])
      var app = new Vue({
        el: '#app',
        methods: {
          onClick (message) {
            alert(message)
          }
        }
      })
    </script>
</html>
0.1.9070

3 years ago

0.1.9071

3 years ago

0.1.9069

3 years ago

0.1.9068

3 years ago

0.1.9067

3 years ago

0.1.9065

3 years ago

0.1.9066

3 years ago

0.1.9060

3 years ago

0.1.9061

3 years ago

0.1.9062

3 years ago

0.1.9059

3 years ago

0.1.9058

3 years ago

0.1.9057

3 years ago

0.1.9056

3 years ago

0.1.9055

4 years ago

0.1.9054

4 years ago

0.1.9053

4 years ago

0.1.9052

4 years ago

0.1.9050

4 years ago

0.1.9051

4 years ago

0.1.9048

4 years ago

0.1.9049

4 years ago

0.1.9047

4 years ago

0.1.9046

4 years ago

0.1.9045

4 years ago

0.1.9044

4 years ago

0.1.9042

4 years ago

0.1.9043

4 years ago

0.1.9041

4 years ago

0.1.9040

5 years ago

0.1.9039

5 years ago

0.1.9038

5 years ago

0.1.9037

5 years ago

0.1.9036

5 years ago

0.1.9035

5 years ago

0.1.9034

5 years ago

0.1.9033

5 years ago

0.1.9032

5 years ago

0.1.9031

5 years ago

0.1.9030

5 years ago

0.1.9029

5 years ago

0.1.9028

5 years ago

0.1.9027

5 years ago

0.1.9026

5 years ago

0.1.9025

5 years ago

0.1.9024

5 years ago

0.1.9023

5 years ago

0.1.9022

5 years ago

0.1.9021

5 years ago

0.1.9020

5 years ago

0.1.9018

5 years ago

0.1.9017

5 years ago

0.1.9015

5 years ago

0.1.9014

5 years ago

0.1.9013

5 years ago

0.1.9012

5 years ago

0.1.9011

5 years ago

0.1.9009

5 years ago

0.1.9008

5 years ago

0.1.9007

5 years ago

0.1.9005

5 years ago

0.1.9004

5 years ago

0.1.9003

5 years ago

0.1.9002

5 years ago

0.1.9001

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago