1.0.0 • Published 5 years ago
marech-core v1.0.0
marech
Ultimate, simple, powerful and extensible precompiler.
Install & Usage
CLI
Install CLI
npm install marech-cliSetup 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 buildandmarech 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