Skip to content

Commit

Permalink
fix(ci): simplify repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubilmax committed Sep 14, 2023
1 parent 0000ea1 commit 93fe8ec
Show file tree
Hide file tree
Showing 11 changed files with 1,100 additions and 2,331 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,8 @@ on:
push:
branches:
- main
- next

jobs:
# test:
# uses: ./.github/workflows/test.yml
# secrets: inherit

release:
# needs: test

uses: ./.github/workflows/release.yml
secrets: inherit
43 changes: 0 additions & 43 deletions .github/workflows/test.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn commitlint --edit "${1}"
2 changes: 1 addition & 1 deletion .husky/post-checkout
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh
. "$(dirname "$0")/_/husky.sh"

git submodule update --init --recursive
Expand Down
2 changes: 1 addition & 1 deletion .husky/post-merge
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh
. "$(dirname "$0")/_/husky.sh"

git submodule update --init --recursive
Expand Down
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
4 changes: 0 additions & 4 deletions .husky/prepare-commit-msg

This file was deleted.

12 changes: 0 additions & 12 deletions .prettierrc

This file was deleted.

95 changes: 41 additions & 54 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,29 @@
"name": "create-safe-tx",
"version": "1.0.0",
"description": "📜 Useful script to build complex Gnosis Safe transactions involving Gnosis Multisend and/or Zodiac modifiers",
"license": "MIT",
"main": "lib/index.js",
"bin": "lib/cli.js",
"files": [
"lib/**/*"
],
"scripts": {
"build": "tsc --build ./tsconfig.build.json",
"prepare": "husky install",
"typecheck": "tsc --noEmit",
"cli": "ts-node src/cli.ts"
},
"repository": {
"type": "git",
"url": "git+https://github.com/morpho-labs/create-safe-tx.git"
"engines": {
"node": ">=18"
},
"license": "MIT",
"author": {
"name": "Morpho Labs",
"email": "[email protected]",
"url": "https://github.com/morpho-labs"
},
"engines": {
"node": ">=18"
"repository": {
"type": "git",
"url": "git+https://github.com/morpho-labs/create-safe-tx.git"
},
"scripts": {
"build": "tsc --build ./tsconfig.build.json",
"prepare": "husky install",
"typecheck": "tsc --noEmit",
"cli": "ts-node src/cli.ts"
},
"keywords": [
"gnosis",
Expand All @@ -40,45 +40,53 @@
},
"homepage": "https://github.com/morpho-labs/create-safe-tx#readme",
"dependencies": {
"@inquirer/prompts": "^2.3.0",
"@types/node": "^20.4.2",
"@inquirer/prompts": "^3.1.1",
"@types/node": "^20.6.0",
"command-line-args": "^5.2.1",
"command-line-usage": "^7.0.1",
"dotenv": "^16.3.1",
"ethers": "^6.6.3",
"ethers": "5.7.2",
"ethers-multisend": "^2.4.0",
"ts-node": "^10.9.1"
},
"devDependencies": {
"@trivago/prettier-plugin-sort-imports": "^4.1.1",
"@types/command-line-args": "^5.2.0",
"@commitlint/cli": "^17.7.1",
"@commitlint/config-conventional": "^17.7.0",
"@trivago/prettier-plugin-sort-imports": "^4.2.0",
"@types/command-line-args": "^5.2.1",
"@types/command-line-usage": "^5.0.2",
"@types/jest": "^29.5.3",
"@types/lodash": "^4.14.195",
"@types/lodash.debounce": "^4.0.7",
"commitizen": "^4.3.0",
"conventional-changelog-conventionalcommits": "^6.1.0",
"cz-conventional-changelog": "^3.3.0",
"@types/jest": "^29.5.4",
"@types/lodash": "^4.14.198",
"dotenv": "^16.3.1",
"husky": "^8.0.3",
"jest": "^29.6.1",
"lint-staged": "^13.2.3",
"lint-staged": "^14.0.1",
"prettier": "^2.8.8",
"ts-jest": "^29.1.1",
"typescript": "^5.1.6"
"typescript": "^5.2.2"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"lint-staged": {
"*.ts": "prettier"
},
"prettier": {
"tabWidth": 2,
"singleQuote": false,
"trailingComma": "es5",
"printWidth": 100,
"importOrder": [
"^@",
"^\\.\\.",
"^\\."
],
"importOrderSeparation": true
},
"release": {
"branches": [
"main",
"next"
"main"
],
"plugins": [
[
Expand Down Expand Up @@ -120,26 +128,5 @@
"@semantic-release/npm",
"@semantic-release/github"
]
},
"jest": {
"preset": "ts-jest",
"testEnvironment": "node",
"testTimeout": 30000,
"testMatch": [
"<rootDir>/test/**/*.spec.ts"
],
"collectCoverageFrom": [
"<rootDir>/src/**/*.ts",
"!<rootDir>/src/types/**/*.ts"
],
"transform": {
"\\.tsx?$": [
"ts-jest",
{
"diagnostics": false,
"isolatedModules": true
}
]
}
}
}
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true
},
"include": ["src", "test"]
"include": ["src"]
}
Loading

0 comments on commit 93fe8ec

Please sign in to comment.