Skip to content

Commit ac4ddfc

Browse files
authored
chore(cli-template-contracts-foundry): add prepublish script (#927)
chore(cli-template-contracts-foundry): add prepublish script to publish foundry template
1 parent afae06e commit ac4ddfc

File tree

4 files changed

+52
-5
lines changed

4 files changed

+52
-5
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#root = true
2+
3+
[*]
4+
indent_style = space
5+
end_of_line = lf
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
insert_final_newline = true
9+
max_line_length = 120
10+
indent_size = 4
11+
12+
[*.md]
13+
trim_trailing_whitespace = false
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# dependencies
2+
node_modules
3+
package-lock.json
4+
yarn.lock
5+
.yarn
6+
7+
# debug
8+
npm-debug.log*
9+
yarn-debug.log*
10+
yarn-error.log*
11+
12+
# testing
13+
coverage
14+
coverage.json
15+
16+
# misc
17+
.DS_Store
18+
*.pem
19+
20+
# debug
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*
24+
25+
# Foundry artifact
26+
cache/
27+
out/
28+
29+
# artifact for deploying on local Anvil node
30+
**/31337

packages/cli-template-contracts-foundry/package.json

+8-5
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
"lint": "yarn solhint \"{script,src,test}/**/*.sol\"",
2424
"prettier": "prettier -c \"**/*.{json,md,svg,yml,sol}\"",
2525
"prettier:write": "prettier -w \"**/*.{json,md,svg,yml,sol}\"",
26-
"check": "yarn test & yarn lint & yarn prettier"
26+
"check": "yarn test & yarn lint & yarn prettier",
27+
"prepublish": "tar -czf files.tgz .gitignore .yarn .yarnrc.yml"
2728
},
2829
"files": [
2930
"src",
@@ -32,10 +33,12 @@
3233
"package.json",
3334
"foundry.toml",
3435
"remappings.txt",
35-
"README.md"
36+
"README.md",
37+
"files.tgz",
38+
".editorconfig",
39+
".env.example",
40+
".prettierignore",
41+
".prettierrc.json"
3642
],
37-
"publishConfig": {
38-
"access": "public"
39-
},
4043
"packageManager": "[email protected]"
4144
}

typedoc.js

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const EXCLUDE_PKGS = [
88
"cli-template-contracts-hardhat",
99
"cli-template-monorepo-ethers",
1010
"cli-template-monorepo-subgraph",
11+
"cli-template-contracts-foundry",
1112
"contracts",
1213
"core",
1314
"hardhat"

0 commit comments

Comments
 (0)