@millimetr/cli
v1.2.3
Published
Contains all CLI scripts used in millimetr projects
Downloads
4
Readme
⚙️ Millimetr CLI
Contains all CLI scripts used in millimetr projects
Files
index.js
Entry file that destructures passed arguements and loads either build.js
or serve.js
depending on passed command.
core.js
File that contains the primary logic that consumes the millimetr.config.js
file and compiles all relevant files into the designated output directory.
build.js
Runs core.js
once.
serve.js
Runs core.js
and then initialises a watcher script that reruns core.js
if any files in the designated input
directory changes.
Technologies
- Watch and Browser Sync used for live reloading during development.
- Chalk and Pluralize is used to display pretty messages to the terminal/command-line.
- EJS is used to compile EJS templates into HTML and Pretty is used to format output HTML.
- Yargs is used to parse arguments passed via the terminal/command-line.
- fs-extra and mkdirp is used to create output folder and file structure.