Coder Social home page Coder Social logo

vlite's Introduction

VLITE

A Package manager for the lite text editor written in V.

Purpose

lite is a lightweight text editor written mostly in Lua โ€” it aims to provide something practical, pretty, small and fast, implemented as simply as possible; easy to modify and extend, or to use without doing either.

You can read this blog post for a bit more about lite or go directly to the github repo

So, following the lite philosophy of being lightweight and blazing fast, i started building this package manager in v instead of rust because the binaries generated by rust were way too big for what i needed, after compilation, this package manager takes only 400kb

Also, the though of making a package manager that automates for me the process of installing new packages for the lite text editor was also a good learning opportunity of the V programming language , it's not really complete and i had to do some small hack for this to work perfectly.

Install

Go to the release page and download the package corresponding to your os and modify the conf.json file after extracting the archive like this:

{
	"version": "0.5",
	"author": "freeman",
	"lite_path": "/home/free/lite/",   // <- modify this to point to your lite location
	....
}

Build

ignore the following step if you used the precompiled releases.

If you don't have vlang installed yet, follow the installation steps of vlang:

On debian based linux distros run: sudo apt install libssl-dev

On rheel distros: sudo dnf install libssl-devel

On windows,mac and arch-based distros: You can skip this steps.

Then modify conf.json for the lite path, by replacing the field of lite_path with your lite path

To build and run, type:

v vlite.v
./vlite

Then update your conf.json file by editing the lite directory like this:

{
	"version": "0.5",
	"author": "freeman",
	"lite_path": "/home/free/lite/",   // <- modify this to point to your lite location
	....
}

Always be sure to have the conf.json file in the same directory as the binary

Contributing

PRs are more than welcome, if you don't know yet vlang, good news you can learn it in under an hour at: https://github.com/vlang/v/blob/master/doc/docs.md

I tried to make the code as obvious as possible for any contributor, so you should find your way very easily.

Running tests:

To check that everything is up and running, just use:

v test utils_test.v

License

Licensed under MIT

vlite's People

Contributors

nedimf avatar snow-blade avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

irwin1985

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.