diff --git a/_posts/2023-05-20-mediaengagement-technical-docs.md b/_posts/2023-05-20-mediaengagement-technical-docs.md index 0ec092e..6055ae0 100644 --- a/_posts/2023-05-20-mediaengagement-technical-docs.md +++ b/_posts/2023-05-20-mediaengagement-technical-docs.md @@ -1359,3 +1359,32 @@ Before you export the new duplicate local site you need to delete these: - all .* files in siteRoot/app/public/ - siteRoot/app/public/enp-quiz-database-config.php - siteRoot/app/public/LocalValetDriver.php + +## Manage dependencies (for project leads only) + +### Using `npx npm-check` + +We use `npx npm-check` to monitor and manage the dependencies in our project. This tool helps us: + +1. **Identify Outdated Dependencies**: `npx npm-check` shows any packages that have newer versions available, allowing us to keep our dependencies up to date. +2. **Find Unused Dependencies**: It helps us find and remove packages that are listed in our `package.json` but are no longer being used in the codebase. +3. **Identify Missing Dependencies**: It flags missing dependencies, which might be required by the project but are not installed in `node_modules`. + +### How to Run `npx npm-check` + +To check the status of the project’s dependencies, run: + +```bash +npx npm-check +``` + +This will display a report that lists: +- Packages that have newer versions available. +- Packages that are no longer being used in the code. +- Missing packages that need to be installed. + +This ensures that the project stays clean, up-to-date, and avoids any unnecessary dependencies. + +### .npmcheckrc: + +Ignore Certain Packages: You can tell npm-check to skip specific packages that might be falsely flagged as unused or missing. diff --git a/_posts/2023-05-21-mediaengagement.md b/_posts/2023-05-21-mediaengagement.md index 65ff83d..4f99a0c 100644 --- a/_posts/2023-05-21-mediaengagement.md +++ b/_posts/2023-05-21-mediaengagement.md @@ -10,10 +10,6 @@ github: https://github.com/engagingnewsproject/enp-platform github_shortname: engagingnewsproject/enp-platform --- -## CME (Engage) Website Documentation - -### Introduction - Welcome to the CME (Engage) Website documentation. This guide covers everything you need to know to work on the [WordPress site](https://mediaengagement.org/), including local development setup, theme structure, and best practices. ---