Skip to content

guesant-archived/marech

Repository files navigation

marech

Ultimate, simple, powerful and extensible precompiler.

Install & Usage

CLI

Install CLI

npm install marech-cli

Setup the marech.config.js file

// marech.config.js

const { generateConfig } = require("marech-cli");

module.exports = generateConfig(__dirname, {
  output: "./build",
  input: { path: "./src/website", match: "**/*.html" },
  // rules: {
  //   // prettier: { enabled: false, options: {} },
  //   // htmlMinifier: { enabled: false, options: {} },
  //   // mappedPaths: { "@/(**)": join(__dirname, "./src/$1") },
  // },
});

Build the project

npx marech build [-p marech.config.js]

watch mode

npx marech build --watch [-p marech.config.js]

Use the flag --watchConfig to watch the marech.config.js file.

Have fun!

Features

Core

  • AbstractFileSystem.

  • AbstractTransformer.

Command-Line Interface

See also

Greats projects used or that have inspired the marech project:

License

Author

About

[WIP] Ultimate, simple, powerful and extensible precompiler.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published