1.0.1 • Published 4 years ago

slim-demon v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

🔖 Description

Slim Demon is a micro library based on the native NodeJS API using the core and the native libraries.

You can define a directory and one or more types of files that will be listened to, if any of these files change the application will be restarted quickly and automatically.

📐 How to work with this project

1️⃣ Install this module into your project.

npm i slim-demon --save-dev

2️⃣ Configure the demon

Include the demon configuration in your main package.json file.

PropertyTypeDescription
rootDirectorystringThe main folder of your NodeJS Application.
extensionsFileArrayFile extensions to review.
mainApplicationstringCommand to execute when a change is detected in the files.

Example

"demon": {
  "rootDirectory": "./src",
  "extensionsFile": [
    "js"
  ],
  "mainApplication": "npm run start"
}

3️⃣ Add a custom script

Include the following sentence into your scripts of your packate.json file:

"scripts": {
  "start:watch": "node node_modules/slim-demon"
}

4️⃣ Run

Run this command in your terminal.

$npm run start:watch

📂 Code Scaffolding

/
├── assets 🌈                   # Images Sources.
├── doc                         # QAC Documentation.
├── example                     # Local example.
├── src 📦                      # Main file library.
└── ...

⛽️ Review and Update Sependencies

For review and update all npm dependencies of this project you need install in global npm package "npm-check-updates" npm module.

# Install and Run
$npm i -g npm-check-updates
$ncu

License

MIT

Happy Code

Created with JavaScript, lot of ❤️ and a few ☕️

This README.md file has been written keeping in mind

GitHub Markdown \ Emoji Cheat Sheet