Project structure policy
![Greenkeeper badge](https://badges.greenkeeper.io/SlimIO/psp.svg)
SlimIO - Project Structure Policy. A policy aims to accurately describe the constituent elements of a project. This CLI has been created to apply the following Specification.
⚠️ This project has been created for SlimIO (it will not work outside). Feel free to replicate the idea / core concept.
Requirements
Getting Started
This package is available in the Node Package Repository and can be easily installed with npm or yarn.
$ npm i @slimio/psp
$ yarn add @slimio/psp
Usage example
When installed globally the psp executable will be exposed in your terminal.
$ psp
If you want to continue the execution even for critical warnings, just run with force mode:
$ psp --force
Arguments
name | description |
---|
-h --help | Show help |
--force | Enable force mode |
--gitignore | Show .gitignore file |
--npmignore | Show .npmignore file |
--editorconfig | Show .editorconfig file |
API
PSP is available in API mode too.
const psp = require("@slimio/psp");
async function main() {
const { warn, crit } = await psp({
forceMode: true,
CWD: "./dir",
isCLI: false,
verbose: false
});
console.log(`warn => ${warn}, crit => ${crit}`);
}
main().catch(console.error);
Get a global overview of many projects
The SlimIO Sync project allow to run a command to get a global overview of warnings of all projects in the current working dir.
Dependencies
License
MIT