## Deploy ##
# md to react
npx ts-node --project ./scripts/tsconfig.json scripts/md-to-react.ts src/pages/0.5/array
# md to react all pages
find src/pages -type d -not -path "*/__snapshots__" -exec npx ts-node --project ./scripts/tsconfig.json scripts/md-to-react.ts {} \;
# build routes
npx ts-node --project ./scripts/tsconfig.json scripts/build-routes.ts
# deploy
npm run deploy
## Compile Solidity ##
# compile single file
docker run -v $PWD/src:/src ethereum/solc:0.7.6 /src/pages/hello-world/HelloWorld.sol
# find and compile sol
find src/pages/hacks -name "*.sol" -exec docker run -v $PWD/src:/src ethereum/solc:0.7.6 {} \;
## Mics ##
# rename files
find . -type f -name "index.test.js" -exec sh -c 'mv "$0" "${0%.test.js}.test.tsx"' {} \;
forked from Cyfrin/solidity-by-example.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Solidity By Example
License
andrewjiang/solidity-by-example.github.io
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Solidity By Example
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- TypeScript 78.6%
- Solidity 20.2%
- Other 1.2%