Gathering detailed insights and metrics for @morgul/snowpack-plugin-vue2
Gathering detailed insights and metrics for @morgul/snowpack-plugin-vue2
Gathering detailed insights and metrics for @morgul/snowpack-plugin-vue2
Gathering detailed insights and metrics for @morgul/snowpack-plugin-vue2
npm install @morgul/snowpack-plugin-vue2
Typescript
Module System
Node Version
NPM Version
JavaScript (81.07%)
Vue (14.94%)
HTML (2.18%)
TypeScript (1.81%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
23,996
Last Day
2
Last Week
27
Last Month
146
Last Year
3,187
MIT License
6 Stars
21 Commits
2 Forks
3 Watchers
1 Branches
2 Contributors
Updated on Mar 16, 2022
Latest Version
0.4.2
Package Id
@morgul/snowpack-plugin-vue2@0.4.2
Unpacked Size
41.21 kB
Size
10.99 kB
File Count
33
NPM Version
7.16.0
Node Version
14.16.0
Cumulative downloads
Total Downloads
Last Day
-33.3%
2
Compared to previous day
Last Week
-3.6%
27
Compared to previous week
Last Month
-22.3%
146
Compared to previous month
Last Year
-28.5%
3,187
Compared to previous year
1
This is a snowpack plugin for Vue v2.X, based off of the official Vue v3 plugin, @snowpack/plugin-vue. The primary goal of this plugin is to provide an 'adapter' layer for @vue/component-compiler-utils and vue-template-compiler to reuse as much of the official snowpack vue plugin as possible. With that goal in mind, this repo is set up with /plugin
corresponding to a copy of the /plugins/plugin-vue
code, so that should there ever be interest in making snowpack work with Vue2, the effort to port my changes to the vue plugin is minimal.
Currently, even https://vuejs.org/ points to the v2.x documentation. It's not that Vue 3 is bad, by any means. It will eventually, take over as the leading version of Vue. The problem is, most libraries haven't updated yet, including a lot of the popular front-end frameworks. They won't have alpha versions for several more months, and probably won't have production versions till year's end. And those are just the popular, large projects. As a developer of dozens of Vue sites, I doubt I'll have my projects converted for at least a year, if not two.
I don't know about you, but I don't see why I should have to wait to start using Snowpack.
Simply install the plugin:
npm
:
1$ npm install -D @morgul/snowpack-plugin-vue2
yarn
:
1$ yarn add -D @morgul/snowpack-plugin-vue2
Then, add it to your snowpack.config.js
:
1// snowpack.config.json 2{ 3 "plugins": [ 4 "@morgul/snowpack-plugin-vue2" 5 ] 6}
This plugin is definitely me scratching my own itch. And I haven't even decided if I like snowpack yet. But there's a need, and while there's about three or four vue2 plugins... none of them worked when I tried. So, here's a more formal engineered solution.
Digging through the source code to vue-loader, I came upon @vue/component-compiler-utils, which appears to have been created after @vue/compiler-sfc, with the same API, as a way of centralizing the code for doing all of this. I agree that something like @vue/compiler-sfc is required, but that's Vue 3 only, so I'm glad they backported that design to Vue2. It makes my life significantly easier.
Note: As more development has happened, it's become clear that @vue/component-compiler-utils doesn't do everything that @vue/compiler-sfc, instead relying on vue-loader to do some of it. That's fine, we can slowly intriduce vue-loader code as needed to handle these edge cases.
These are the guidelines for working on this project.
/compiler
./plugin
.The bulk of this project's code lives in /compiler
. The /plugin
is a verbatim copy of @snowpack/plugin-vue, with as few changes as possible. (Even the original package.json
is kept around.) There is also a sample project contained in /example
, to act as both a test for the plugin, and a usage guide.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 1/19 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
30 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-02-10
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More