Selaa lähdekoodia

chore: delete Husky configuration

build: add "rimraf" dev dep
build: remove "shx" dev dep
build: remove unused Node.js deps
chore: delete Commitlint configuration
chore: delete unneeded ".solhintignore" file
chore: delete Lint Staged config
chore: use "rimraf" instead of "shx" in the clean script
docs: delete "Conventional Commits" section in README
docs: delete "Git Hooks" section in README
docs: update README with latest set-up
Paul Razvan Berg 2 vuotta sitten
vanhempi
commit
7298ff7428
8 muutettua tiedostoa jossa 13 lisäystä ja 749 poistoa
  1. 0 2
      .commitlintrc.yml
  2. 0 1
      .husky/.gitignore
  3. 0 4
      .husky/commit-msg
  4. 0 4
      .husky/pre-commit
  5. 0 2
      .lintstagedrc.yml
  6. 0 14
      README.md
  7. 3 12
      package.json
  8. 10 710
      yarn.lock

+ 0 - 2
.commitlintrc.yml

@@ -1,2 +0,0 @@
-extends:
-  - "@commitlint/config-conventional"

+ 0 - 1
.husky/.gitignore

@@ -1 +0,0 @@
-_

+ 0 - 4
.husky/commit-msg

@@ -1,4 +0,0 @@
-#!/bin/sh
-. "$(dirname "$0")/_/husky.sh"
-
-yarn dlx commitlint --edit $1

+ 0 - 4
.husky/pre-commit

@@ -1,4 +0,0 @@
-#!/bin/sh
-. "$(dirname "$0")/_/husky.sh"
-
-yarn dlx lint-staged

+ 0 - 2
.lintstagedrc.yml

@@ -1,2 +0,0 @@
-"*.{js,json,md,sol,ts,yml}":
-  - prettier --write

+ 0 - 14
README.md

@@ -37,7 +37,6 @@ For example, for Hardhat, you can refer to the [Hardhat Tutorial](https://hardha
 This template comes with sensible default configurations in the following files:
 
 ```text
-├── .commitlintrc.yml
 ├── .editorconfig
 ├── .eslintignore
 ├── .eslintrc.yml
@@ -45,7 +44,6 @@ This template comes with sensible default configurations in the following files:
 ├── .prettierignore
 ├── .prettierrc.yml
 ├── .solcover.js
-├── .solhintignore
 ├── .solhint.json
 ├── .yarnrc.yml
 └── hardhat.config.ts
@@ -60,18 +58,6 @@ Note though that to make this work, you must use your `INFURA_API_KEY` and your
 
 You can edit the CI script in [.github/workflows/ci.yml](./.github/workflows/ci.yml).
 
-### Conventional Commits
-
-This template enforces the [Conventional Commits](https://www.conventionalcommits.org/) standard for git commit
-messages. This is a lightweight convention that creates an explicit commit history, which makes it easier to write
-automated tools on top of.
-
-### Git Hooks
-
-This template uses [Husky](https://github.com/typicode/husky) to run automated checks on commit messages, and
-[Lint Staged](https://github.com/okonet/lint-staged) to automatically format the code with Prettier when making a git
-commit.
-
 ## Usage
 
 ### Pre Requisites

+ 3 - 12
package.json

@@ -7,8 +7,6 @@
     "url": "https://github.com/paulrberg"
   },
   "devDependencies": {
-    "@commitlint/cli": "^17.3.0",
-    "@commitlint/config-conventional": "^17.3.0",
     "@ethersproject/abi": "^5.7.0",
     "@ethersproject/abstract-signer": "^5.7.0",
     "@ethersproject/bignumber": "^5.7.0",
@@ -29,9 +27,7 @@
     "@typescript-eslint/eslint-plugin": "^5.44.0",
     "@typescript-eslint/parser": "^5.44.0",
     "chai": "^4.3.7",
-    "commitizen": "^4.2.5",
     "cross-env": "^7.0.3",
-    "cz-conventional-changelog": "^3.3.0",
     "dotenv": "^16.0.3",
     "eslint": "^8.28.0",
     "eslint-config-prettier": "^8.5.0",
@@ -39,14 +35,11 @@
     "fs-extra": "^10.1.0",
     "hardhat": "^2.12.2",
     "hardhat-gas-reporter": "^1.0.9",
-    "husky": "^8.0.2",
-    "lint-staged": "^13.0.4",
     "lodash": "^4.17.21",
     "mocha": "^10.1.0",
-    "pinst": "^3.0.0",
     "prettier": "^2.8.4",
     "prettier-plugin-solidity": "^1.1.2",
-    "shx": "^0.3.4",
+    "rimraf": "^4.1.2",
     "solhint": "^3.4.0",
     "solhint-plugin-prettier": "^0.0.5",
     "solidity-coverage": "^0.8.2",
@@ -74,7 +67,7 @@
     "access": "public"
   },
   "scripts": {
-    "clean": "shx rm -rf ./artifacts ./cache ./coverage ./types ./coverage.json && yarn typechain",
+    "clean": "rimraf ./artifacts ./cache ./coverage ./types ./coverage.json && yarn typechain",
     "commit": "git-cz",
     "compile": "cross-env TS_NODE_TRANSPILE_ONLY=true hardhat compile",
     "coverage": "hardhat coverage --solcoverjs ./.solcover.js --temp artifacts --testfiles \"test/**/*.ts\" && yarn typechain",
@@ -82,9 +75,7 @@
     "lint": "yarn lint:sol && yarn lint:ts && yarn prettier:check",
     "lint:sol": "solhint --max-warnings 0 \"contracts/**/*.sol\"",
     "lint:ts": "eslint --ignore-path ./.eslintignore --ext .js,.ts .",
-    "postinstall": "husky install && DOTENV_CONFIG_PATH=./.env.example yarn typechain",
-    "postpublish": "pinst --enable",
-    "prepublishOnly": "pinst --disable",
+    "postinstall": "DOTENV_CONFIG_PATH=./.env.example yarn typechain",
     "prettier:check": "prettier --check \"**/*.{js,json,md,sol,ts,yml}\"",
     "prettier:write": "prettier --write \"**/*.{js,json,md,sol,ts,yml}\"",
     "test": "hardhat test",

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 10 - 710
yarn.lock


Kaikkia tiedostoja ei voida näyttää, sillä liian monta tiedostoa muuttui tässä diffissä