# Clean Project

The 'Clean Project' function normalizes a Shell Template project. It scans the `/app/project` directory and:

- removes redundant, deprecated and design-tool-only `ch5-*` attributes,
- removes dead / invalid SCSS declarations and unused design-tool selectors,
- reformats the HTML and SCSS files (and `package.json`), and
- raises advisory suggestions (e.g. broken asset references, duplicate ids, conversion candidates).

This command takes no additional parameters. A summary of every change and suggestion is written to `cleanup-report.html` and `output.log` at the root of the project.

## How to Use

Go to the command-prompt or terminal of the Shell Template project, and execute `ch5-shell-cli clean:project`.
The package.json has scripts to handle this execution - for npm `npm run clean:project`. The short hand for it is `npm run clean:p` within scripts of package.json.

To access help, execute `ch5-shell-cli clean:project --help`. Note that replacing `ch5-shell-cli` with `npm run` will also execute the script.

```bash
Usage:
    ch5-shell-cli clean:project

You could use the shortcut alias:
    ch5-shell-cli clean:p

You could also use `npm run` to clean the project:
    npm run clean:project
    npm run clean:p

Options:
    -h, --help          Display help for command
    --verbose           Get detailed output of the process
```
