Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
vue3-lottie
Advanced tools
A simple but complete library template for Vue 3 + TypeScript
Getting the code by git clone
or click Use this template
right above.
Then use yarn
or other package manager to install dependencies.
This template includes Scss
with it. Scoped style in Vue SFC is also supported. All the styles will be build into a index.css
right in the project root.
When using your library by npm package in another project, you can import this css by
import '{YOUR_LIB_NAME}/index.css'
The dev server is provided by Vite
. To start the dev server, run
yarn dev
Simply creating a folder in packages
and add it to packages/index.ts
, and it's done.
yarn build
Will build your packages in two format ( esm
and CommonJS
) using rollup instead of Vite due to the issue when generating .d.ts
file.
Once everything done, you can pack your library by npm pack
or publish it by npm publish
If you want to exclude your dependencies from your build result:
peerDependencies
in package.json
external
in rollup.config.js
When using this library, remember to install these peerDependencies
.
d.ts
TypeScript declaration files will generated into lib
folder once you build this template. That means the decalration files will be published in the npm package.
Also, .vue.d.ts
will be generated for Vue SFC.
FAQs
Add Lottie animations to your Vue 3 or Nuxt 3 application.
The npm package vue3-lottie receives a total of 34,807 weekly downloads. As such, vue3-lottie popularity was classified as popular.
We found that vue3-lottie demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.