Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Template compiler for Mikado.

License

NotificationsYou must be signed in to change notification settings

nextapps-de/mikado-compile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

You will find the documentation of Mikadohere.

Install

It is recommended to install the compiler as a non-global dependency to your stack:

npm install mikado-compile

CLI

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

Node Module

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});

File Watcher

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2026 Movatter.jp