Skip to content

Commit

Permalink
chore(cli-template-contracts-foundry): add prepublish script (#927)
Browse files Browse the repository at this point in the history
chore(cli-template-contracts-foundry): add prepublish script to publish foundry template
  • Loading branch information
vplasencia authored Dec 18, 2024
1 parent afae06e commit ac4ddfc
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 5 deletions.
13 changes: 13 additions & 0 deletions packages/cli-template-contracts-foundry/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#root = true

[*]
indent_style = space
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 120
indent_size = 4

[*.md]
trim_trailing_whitespace = false
30 changes: 30 additions & 0 deletions packages/cli-template-contracts-foundry/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# dependencies
node_modules
package-lock.json
yarn.lock
.yarn

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# testing
coverage
coverage.json

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Foundry artifact
cache/
out/

# artifact for deploying on local Anvil node
**/31337
13 changes: 8 additions & 5 deletions packages/cli-template-contracts-foundry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"lint": "yarn solhint \"{script,src,test}/**/*.sol\"",
"prettier": "prettier -c \"**/*.{json,md,svg,yml,sol}\"",
"prettier:write": "prettier -w \"**/*.{json,md,svg,yml,sol}\"",
"check": "yarn test & yarn lint & yarn prettier"
"check": "yarn test & yarn lint & yarn prettier",
"prepublish": "tar -czf files.tgz .gitignore .yarn .yarnrc.yml"
},
"files": [
"src",
Expand All @@ -32,10 +33,12 @@
"package.json",
"foundry.toml",
"remappings.txt",
"README.md"
"README.md",
"files.tgz",
".editorconfig",
".env.example",
".prettierignore",
".prettierrc.json"
],
"publishConfig": {
"access": "public"
},
"packageManager": "yarn@4.1.0"
}
1 change: 1 addition & 0 deletions typedoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const EXCLUDE_PKGS = [
"cli-template-contracts-hardhat",
"cli-template-monorepo-ethers",
"cli-template-monorepo-subgraph",
"cli-template-contracts-foundry",
"contracts",
"core",
"hardhat"
Expand Down

0 comments on commit ac4ddfc

Please sign in to comment.