Vectorized / soledge

Solidity snippets too edgy to be in Solady
MIT License
109 stars 3 forks source link

✨ Automate branding, solidity version sanity, and upgrades #11

Open raxhvl opened 7 months ago

raxhvl commented 7 months ago

Few tasks are somewhat monotonous, and rather easy to miss when porting from solady to soledge:

I'm thinking I could automate this by adding following npm commands:

  1. npm run rebrand: Migrate from solady to soledge comment blocks.
  2. npm run powerup: Upgrade to latest solidity version.
  3. Add a pre-commit hook to ensure all files are on the latest solidity version.
Vectorized commented 7 months ago

Avoid node dependencies. The scripts should be written entirely in shell script, or in vanilla JS without dependencies.

Vectorized commented 7 months ago

I'm also ok with doing it the manual way. There are not many files, and each one of them needs special care.

raxhvl commented 7 months ago

Agree with writing them in shell. Don't mean this to be part of build process, these could be helpful tool to be used by contributors so they can choose to automate if required.