- Notifications
You must be signed in to change notification settings - Fork1
Template compiler for Mikado.
License
nextapps-de/mikado-compile
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
You will find the documentation of Mikadohere.
It is recommended to install the compiler as a non-global dependency to your stack:
npm install mikado-compile
Compile a source file, takes same directory as destination:
npx mikado-compile tpl/app.html
Compile asource file to a givendestination folder:
npx mikado-compile src/tpl/app.html dest/tpl/
Compile a source file in a specific format:
npx mikado-compile src/tpl/app.html json
Compile all files which matches a given expression:
npx mikado-compile src/tpl/*.html
npx mikado-compile src/**/*.html
Compile files explicitly by using option flags:
npx mikado-compile --src src/tpl/*.html --dest dest/tpl/ --type json
Compile files explicitly by using option flag shortcuts:
npx mikado-compile -s src/tpl/*.html -d dest/tpl/ -t json
Force overwrite existing files (silent):
npx mikado-compile src/tpl/*.html --force
Compile as pretty print (non-minified):
npx mikado-compile src/tpl/*.html --pretty
You can call the compile function directly:
constcompile=require("mikado-compile");constsrc="./src/*.html";constdest="./dist/";compile(src,dest,{type:["es5","es6","json"],force:true,pretty:false});
Start the file watcher to compile templates automatically when file contents change:
npx mikado-compile src/tpl/*.html --watch
PressCTRL + C to stop the watcher.
Note: Existing files will be overridden by default when running the watcher.
About
Template compiler for Mikado.
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.