1.0.2 • Published 5 years ago

velar v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

Features of Velar

  • Quick start your new project
  • Download dependencies easily
  • Switch dependencies version

Installation

npm install velar

Documentation

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.

Sample Usage

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.

Dependency Name and Version

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.

Switch Dependencies Version

enter image description here

just change the version from JSON object and run velar.js again then see the magic!!! Version of your dependencies will automatically changed.

Want to Contribute?

Thanks for being interested to contribute this project. please join with Velar Community on discord server also this link will help you.