0.1.5 • Published 3 years ago

@thirstcreative/thirst-components v0.1.5

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

@datay/dxc-components npm version

Sample setup for creating vue lib and web component

Usage

Within node environment

$ npm install --save @datay/dxc-components
<script>
import { Button, AnotherButton } from "@datay/dxc-components"

export default {
    components: {
        Button,
        AnotherButton
    }    
}
</script>

<template>
    <div>
        <Button />
        <AnotherBUtton />
    </div>
</template>

or on existing non vue project

<script src="https://unpkg.com/vue"></script>
<script src="https://unpkg.com/@datay/dxc-components"></script>
<div id="app">
    <dxc-components-button />
</div>

Building Components

Make sure first that vue cli and vue cli-service-global was installed globally. They will be use on building packages and service components

npm install -g @vue/cli @vue/cli-service-global

To build for lib and web components

npm run build

To only build lib components

npm run build:lib

To only build web components

npm run build:wc

Working on Components

When working on the components, there are too ways to vuew the output:

  • via script tag -> wc
  • via serving the vue component -> lib

Web Components

  • Before the changes are reflected, make sure to build your changes.
npm run build:wc
  • Load demo html in ./dist/demo.html to your browser

Lib Components

  • Serve vue component
vue serve src/components/Button.vue

License

MIT © Dixie Philamerah Atay

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago