Coder Social home page Coder Social logo

library-template.lua's Introduction

library-template.lua

Integration LuaRocks

A template to create pure Lua libraries

Using

Clone/download it locally and change the references to my_user, my_library accordingly to your new library name.

You'll need to install Lua and LuaRocks.

Testing

This uses busted, luassert and matcher_combinators to define tests in spec/ directory. To run them just execute

$ luarocks test --local

If you have entr(1) installed you may use it to run all tests whenever a file is changed using:

$ find spec/ src/ -name '*.lua' | entr luarocks test --local

Publishing

Your library must be hosted on github before making the first release. First, create a LuaRocks account and generate a new API key. This key must be used exclusively by the release Github Action, so copy and add it to the Secrets of your repo under the name LUAROCKS_KEY.

For the first release you just need to run the following commands:

$ git tag v0.1.0
$ git push --tags

For the next releases remember that you'll need to modify and copy/rename the .rockspec file to reflect the new version.

library-template.lua's People

Contributors

m00qek avatar

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.