Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.
/ vaceline Public archive

Toolchains for VCL that parses, lints, formats, and transpiles

Notifications You must be signed in to change notification settings

shqld/vaceline

Repository files navigation

Vaceline — VCL Transpiler

Vaceline is a tool for trasforming VCL with JS plugins via AST.

NOTE: this project is still in development.

You can try it on the Web now (also still beta)

Install

yarn add -D vaceline

Usage

yarn vaceline src -d dist
$ yarn vaceline --help

vaceline [source]

Transpile VCL

Positionals:
  source  Source file/dir to transpile                                  [string]

Options:
  --ast          Output as AST                                         [boolean]
  --out-dir, -d  Output dir                                             [string]
  --silent, -s   Disable any logging                  [boolean] [default: false]
  --debug        Enable debug logging                 [boolean] [default: false]
  --minify                                             [boolean] [default: true]
  --no-comments                                        [boolean] [default: true]
  --printWidth                                            [number] [default: 80]
  --tabWidth                                               [number] [default: 2]
  --useTabs                                           [boolean] [default: false]
  -h, --help     Show help                                             [boolean]
  -v, --version  Show version number                                   [boolean]

Examples:
  - vaceline path/to/file.vcl
  - vaceline path/to/dir
  - cat file | vaceline
  - vaceline file -d dist