From 2f99f84bb6a18736a0dfa2251b7107449f212ae6 Mon Sep 17 00:00:00 2001 From: Elliot Winkler Date: Fri, 13 Oct 2023 12:45:17 -0600 Subject: [PATCH] Properly initialize this repo Follow the instructions that we have in the module template (see "Template Instructions" in the README, which are being deleted in this commit) for new repos in order to customize the README, `package.json`, and pull request template for this repo. --- .github/pull_request_template.md | 8 ------ README.md | 47 ++++++++------------------------ package.json | 10 +++---- 3 files changed, 17 insertions(+), 48 deletions(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 65171ad..5fc5fea 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -9,11 +9,3 @@ Are there any issues or other links reviewers should consult to understand this * Fixes #12345 * See: #67890 --> - -## Examples - - diff --git a/README.md b/README.md index ff02483..b44c3c7 100644 --- a/README.md +++ b/README.md @@ -1,47 +1,24 @@ -# MetaMask Module Template - -This TypeScript module is maintained in the style of the MetaMask team. - -## Template Instructions - -Follow these instructions when using this template. - -- Update the package name, referenced in the following places: - - The `name` field of `package.json` - - The README title - - The README "Usage" section -- Update the package description - - The package description is referenced at the beginning of the README, and in the `description` field of `package.json`. -- Update the repository URL, referenced in the following places: - - `repository` field of `package.json` - - The links in the API section of the README -- If your project has side effects, update the `sideEffects` field of - `package.json` to `true`, or an array of file globs that match the files that - have side effects. -- Update the pull request template (`.github/pull_request_template.md`) to remove the `Examples` section that is specific to this template. -- Update the README "Usage" section, or remove it if it's not needed. -- Update the CODEOWNERS file to set the appropriate code owners for the repository (typically one or more engineering teams) - - Ensure each referenced team has write permission, and that the engineering team still has write permission. -- Delete these instructions. +# @metamask/module-lint -## Installation +This repo provides a tool which can be used to analyze one or more repos, running defined checks that measure divergence from a template repo, and outputs a report of the results. -`yarn add @metamask/this-module` +At the moment, this tool only processes MetaMask repositories using the [MetaMask module template](https://github.com/MetaMask/metamask-module-template) as a basis, and all of the checks are predefined and cannot be customized. -or +## Installation -`npm install @metamask/this-module` +This tool is designed to be used globally and does not need to be installed within an individual project. ## Usage -_Add examples here_ - -## API +To use the tool, run: -See our documentation: +``` +# Yarn +yarn dlx @metamask/module-lint -- [Latest published API documentation](https://metamask.github.io/metamask-module-template/latest/) -- [Latest development API documentation](https://metamask.github.io/metamask-module-template/staging/) +# NPM +npx @metamask/module-lint +``` ## Contributing diff --git a/package.json b/package.json index c71c555..9b07e70 100644 --- a/package.json +++ b/package.json @@ -1,14 +1,14 @@ { - "name": "@metamask/module-template", + "name": "@metamask/module-lint", "version": "0.0.0", - "description": "The MetaMask Node module template", - "homepage": "https://github.com/MetaMask/metamask-module-template#readme", + "description": "Analyzes one or more repos for divergence from a template repo", + "homepage": "https://github.com/MetaMask/module-lint#readme", "bugs": { - "url": "https://github.com/MetaMask/metamask-module-template/issues" + "url": "https://github.com/MetaMask/module-lint/issues" }, "repository": { "type": "git", - "url": "https://github.com/MetaMask/metamask-module-template.git" + "url": "https://github.com/MetaMask/module-lint.git" }, "sideEffects": false, "exports": {