diff --git a/packages/cli-template-contracts-foundry/.editorconfig b/packages/cli-template-contracts-foundry/.editorconfig new file mode 100644 index 000000000..c94bae0f3 --- /dev/null +++ b/packages/cli-template-contracts-foundry/.editorconfig @@ -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 diff --git a/packages/cli-template-contracts-foundry/.prettierignore b/packages/cli-template-contracts-foundry/.prettierignore new file mode 100644 index 000000000..3fc0c6af4 --- /dev/null +++ b/packages/cli-template-contracts-foundry/.prettierignore @@ -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 diff --git a/packages/cli-template-contracts-foundry/package.json b/packages/cli-template-contracts-foundry/package.json index 6fe8645ab..6106ca727 100644 --- a/packages/cli-template-contracts-foundry/package.json +++ b/packages/cli-template-contracts-foundry/package.json @@ -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", @@ -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" } diff --git a/typedoc.js b/typedoc.js index 5aed16412..4ca9ddeca 100644 --- a/typedoc.js +++ b/typedoc.js @@ -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"