Skip to content

cukurovablock/Turkce-Solidity-Ornekleri

 
 

Repository files navigation

solidity-by-example.github.io

Solidity By Example

License

MIT License

Development

npm i
npm start

Production

npm run build
# Preview produciton
npm run preview
# Deploy
npm run deploy

Memo

TODO: code split / dynamic imports TODO: side nav

## Deploy ##
# md to react
npx ts-node --project ./scripts/tsconfig.json scripts/md-to-react.ts src/pages/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

# build search index
npx ts-node --project ./scripts/tsconfig.json scripts/build-search-index.ts

## Compile Solidity ##
solc-select install 0.8.20
solc-select use 0.8.20

# compile single file
solc src/pages/hello-world/HelloWorld.sol

# find and compile sol
find src/pages/hacks -name "*.sol" solc {} \;
find src/pages -type f -name "*.sol" -exec sh -c 'solc "$0"' {} \;

## Mics ##
# rename files
find . -type f -name "index.test.js" -exec sh -c 'mv "$0" "${0%.test.js}.test.tsx"' {} \;

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 83.8%
  • Solidity 15.5%
  • Other 0.7%