MINI uses Prettier and ESLint to keep its code consistently formatted.
Please following the instruction carefully before making a pull request!
- Node.js (minimum v14).
- Fork this repo from GitHub and clone it to your local machine:
git clone https://github.com/<username>/mini-ssg.git
- Redirect to the project folder:
cd mini-ssg/
- Install MINI:
npm install
npm run prettier-check
runs a check against the format style guide found in prettierrc.json.npm run prettier
runs the same check and adds--write
option to attempt to fix the style issues.
npm run lint [file] | [dir]
ornpm run eslint [file] | [dir]
will run all files against the linting style guide found in .eslintrc.npm run eslint-fix [file] | [dir]
will do the same as above and also "fixes" any errors.
npm test [file]
will run the test on the specified file.npm run test:watch [file]
will also run the test but in watch mode, which automatically re-runs when changes are made.