Skip to content

nk18chi/tempmon

Repository files navigation

tempmon

tempmon is a tool that helps develop Node.js based applications by monitoring your directory and automatically creating initial files based on your template when a new folder is created in the directory.

GitHub CI/Testing GitHub release (latest by date) GitHub all releases

sample.mov

Installation

With NPM

$ npm install tempmon

With Yarn

$ yarn add tempmon

Usage

  1. Set the template folder path, and the directory path that tempmon should monitor to create initial files under a new folder

create .env under the root. By default, the following paths automatically set up

TEMPMON_WATCH_DIRECTORY=./src/**
TEMPMON_TEMPLATE_DIRECTORY=./template
  1. Create your template files

create the folder that you set for TEMPMON_TEMPLATE_DIRECTORY in step 1 and put your template files in it.
These names in the file name and file contents are replaced with the folder name that you will create

// ex. when you create a "simpleButton" folder
${tempmon__fileName}               -> simpleButton
${tempmon__fileName__lowercase}    -> simplebutton
${tempmon__fileName__UPPERCASE}    -> SIMPLEBUTTON
${tempmon__fileName__Firstcapital} -> SimpleButton

Here is the example template https://github.com/nk18chi/tempmon/test/template

  1. Run tempmon

When tempmon is ready, the message shows up in your terminal from tempmon. And then, whenever you create a new folder, the initial files based on your templates are set in it.

About

Monitor for a created folder and automatically generate custom files based on your templates - perfect for development

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published