Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Link your Piwik/Matomo installation
npm install --save vue-piwik
import Vue from 'vue'
import VuePiwik from 'vue-piwik'
// You need a specific loader for CSS files like https://github.com/webpack/css-loader
import 'vue-piwik/dist/vue-piwik.css'
Vue.use(VuePiwik, {
host: 'https://matomo.example.com',
siteId: 5,
router: router // Enables automatically registering pageviews on the router
})
// Now you can access piwik api in components through
this.$piwik
For available operations see the piwik api docs
<!-- Include after Vue -->
<!-- Local files -->
<link rel="stylesheet" href="vue-piwik/dist/vue-piwik.css"></link>
<script src="vue-piwik/dist/vue-piwik.js"></script>
<!-- From CDN -->
<link rel="stylesheet" href="https://unpkg.com/vue-piwik/dist/vue-piwik.css"></link>
<script src="https://unpkg.com/vue-piwik"></script>
npm run dev
npm run dev:coverage
Bundle the js and css of to the dist
folder:
npm run build
The prepublish
hook will ensure dist files are created before publishing. This
way you don't need to commit them in your repository.
# Bump the version first
# It'll also commit it and create a tag
npm version
# Push the bumped package and tags
git push --follow-tags
# Ship it 🚀
npm publish
FAQs
Link your Piwik/Matomo installation
The npm package vue-piwik receives a total of 0 weekly downloads. As such, vue-piwik popularity was classified as not popular.
We found that vue-piwik demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.