0.5.0 • Published 3 years ago
marech-cli v0.5.0
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
Follows marech.config.js.
marech build
andmarech build --watch
.
See also
Greats projects used or that have inspired the marech project:
License
- MIT - see LICENSE.mit.txt or https://opensource.org/licenses/MIT
Author
- Gabriel Rodrigues - https://github.com/guesant