- Quick start your new project
- Download dependencies easily
- Switch dependencies version
npm install velar
Velar provide only one method. It is create(arg1, arg2) where argument arg1 is a JSON object of your dependencies and arg2 is the directory where vendor folder will be created. Inside the vendor folder all of you dependencies will be placed.
create velar.js file on root folder of you project and paste the following code.
const velar = require('velar')
var dir = 'src/assets/',
vendor = {
"jquery": "3.3.1",
"OwlCarousel2": "2.3.4",
"twitter-bootstrap": "4.3.1",
"vue": "2.6.8"
}
velar.create(vendor, dir)
Then run
node velar.js
from your terminal.
arg1 is all about a JSON object which contain information about dependencies and their version. Dependencies name should be matched with cdnjs as Velar download all dependencies from cdnjs.
just change the version from JSON object and run velar.js again then see the magic!!! Version of your dependencies will automatically changed.
Thanks for being interested to contribute this project. Here's the github link this link.