reza-ssgapp v1.0.4
StaticSiteGenerator
This is a Simple CLI tool based on nodejs for generating html files from our text files.
Getting Started
clone the repository
git clone https://github.com/Reza9472/StaticSiteGenerator.gitInstall dependencies
npm i
Features
Display version of the tool:
reza-ssg --versionDisplay command instructions (help):
reza-ssg --helpCreate an html file from a text or markdown file:
reza-ssg --index "Silver Blaze".txtreza-ssg -i Silver.mdCreate html files from all the text or markdown files inside the 'text files' folder:
reza-ssg --index "text files"Add your options like input, output, stylesheet and lang to a JSON file and pass it to the program.
reza-ssg -c config1.json
Unit Tests
- Run tests on the code to make sure the functions work
npm test
Format the code
Formatting the code using prettier:
npm run prettier
Run the Linter
Running the Linter on the project:
npm run eslint
License
This project is licensed under the MIT license
Author
Reza Poursafa