0.2.2 • Published 5 years ago
vue-cookie-box v0.2.2
Status
Work in progress...
Usage
Installation
npm install vue-cookie-box --saveComponent
<template>
<CookieBox /><script>
import "vue-cookie-box/dist/vue-cookie-box.css"
import {CookieBox} from "vue-cookie-box"
export default {
components: {
CookieBox
}
}<style>
/* Or use CookieBox's bannerStyle property. */
.cookie-box-banner {
background-color: blue;
}paths (tsconfig)
Don't use path subsitution (e.g. import X from @/src/...) inside src. It breaks emitted typings when imported as npm package.
Ok to use in tests.
Styles
Don't scope styles of components which should accept overrides by consumer.
Todo
- [] allow custom content via
<slot> - [] i18n
- [] make
ConsentStoreSourcestring enum and export it
Contribution
Project setup
npm installCompiles and hot-reloads for development
npm run serveCompiles and minifies for production
npm run buildRun your unit tests
npm run test:unitLints and fixes files
npm run lint