Giter VIP home page Giter VIP logo

qova-template's Introduction

The Qova Template

Golang Error Handling | Automatic Imports | Easy to use tsx

About

The Qova Template provides an easy to use - go-like - standard library (__stdlib__) and builder program (run.exe) built with esbuild in go.

The Builder

The builder program requires specific flags to perform actions:

  1. Build

    IMPORTANT: YOU NEED TO NAME THE ENTRYPOINT OF THE ./source DIRECTORY AS
    [main] <name>.ts(x)

    You need to specify which parts of your project you want to build/rebuild.

    This can be done by using the -b:src (for the ./source directory) and the -b:app (for the ./app directory) flags.

    ./run -b:src -b:app
  2. Include

    You might want to import some .ts or .tsx scripts automatically; Qova's got you covered!

    In the [main] <name>.ts(x) file you can auto import scripts like this:

    /** @field ./mydir */
    /** @close ./mydir */
    
    // Rest of the script here

    Between the /** @field ./mydir */ start tag and the /** @close ./mydir */ end tag every script will be imported from the ./mydir directory.

    To include the scripts run the builder with the flag -i:

    ./run -i
  3. Run

    If you want to automatically run the built files, you can use the -r flag:

    ./run -r

    If a target wasn't specified it will be set to electron.

  4. Target

    You can set a taget for the builder with the -r flag:

    ./run -r:electron -r:node -r:bun
    • -r:el / -r:electron: target = "electron"
    • -r:n / -r:node: target = "node"
    • -r:b / -r:bun: target = "bun"

qova-template's People

Contributors

zewenn avatar

Stargazers

 avatar

qova-template's Issues

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.