Skip to content

Commit

Permalink
Merge pull request #7 from signchain/codebase-refactor-feature
Browse files Browse the repository at this point in the history
Codebase refactor to make it light weight
  • Loading branch information
koshikraj authored Jan 4, 2021
2 parents af946eb + 9670de9 commit 5215178
Show file tree
Hide file tree
Showing 53 changed files with 142,055 additions and 1,330 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build and Deploy
on: [push]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/[email protected] # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
with:
persist-credentials: false

- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
run: |
yarn install
CI=false yarn build
env:
REACT_APP_STORAGE: FLEEK
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: packages/react-app/build # The folder the action should deploy.
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ packages/buidler/*.txt

# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
**/node_modules
packages/buidler/artifacts
packages/react-app/src/contracts
packages/buidler/cache
packages/hardhat/artifacts/
packages/hardhat/cache

# dependencies
/node_modules
Expand Down
43 changes: 20 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@scaffold-eth/monorepo",
"name": "@signchain/monorepo",
"version": "1.0.0",
"keywords": [
"ethereum",
Expand All @@ -11,28 +11,25 @@
"private": true,
"scripts": {
"ceramic": "ceramic daemon",
"react-app:build": "yarn workspace @scaffold-eth/react-app build --max-old-space-size=12288",
"react-app:eject": "yarn workspace @scaffold-eth/react-app eject",
"react-app:start": "yarn workspace @scaffold-eth/react-app start",
"react-app:test": "yarn workspace @scaffold-eth/react-app test",
"build": "yarn workspace @scaffold-eth/react-app build --max-old-space-size=12288",
"chain": "yarn workspace @scaffold-eth/buidler chain",
"node": "yarn workspace @scaffold-eth/buidler chain",
"test": "yarn workspace @scaffold-eth/buidler test",
"start": "yarn workspace @scaffold-eth/react-app start",
"compile": "yarn workspace @scaffold-eth/buidler compile",
"deploy": "yarn workspace @scaffold-eth/buidler deploy",
"watch": "yarn workspace @scaffold-eth/buidler watch",
"accounts": "yarn workspace @scaffold-eth/buidler accounts",
"balance": "yarn workspace @scaffold-eth/buidler balance",
"send": "yarn workspace @scaffold-eth/buidler send",
"ipfs": "yarn workspace @scaffold-eth/react-app ipfs",
"surge": "yarn workspace @scaffold-eth/react-app surge",
"s3": "yarn workspace @scaffold-eth/react-app s3",
"ship": "yarn workspace @scaffold-eth/react-app ship",
"generate": "cd packages/buidler && npx buidler generate",
"account": "cd packages/buidler && npx buidler account",
"flatten": "cd packages/buidler && npx buidler flatten"
"react-app:build": "yarn workspace @signchain/react-app build --max-old-space-size=12288",
"react-app:eject": "yarn workspace @signchain/react-app eject",
"react-app:start": "yarn workspace @signchain/react-app start",
"react-app:test": "yarn workspace @signchain/react-app test",
"build": "yarn workspace @signchain/react-app build --max-old-space-size=12288",
"chain": "yarn workspace @signchain/hardhat chain",
"node": "yarn workspace @signchain/hardhat chain",
"test": "yarn workspace @signchain/hardhat test",
"start": "yarn workspace @signchain/react-app start",
"compile": "yarn workspace @signchain/hardhat compile",
"deploy": "yarn workspace @signchain/hardhat deploy",
"watch": "yarn workspace @signchain/hardhat watch",
"accounts": "yarn workspace @signchain/hardhat accounts",
"balance": "yarn workspace @signchain/hardhat balance",
"send": "yarn workspace @signchain/hardhat send",
"ipfs": "yarn workspace @signchain/react-app ipfs",
"generate": "cd packages/hardhat && npx hardhat generate",
"account": "cd packages/hardhat && npx hardhat account",
"flatten": "cd packages/hardhat && npx hardhat flatten"
},
"workspaces": {
"packages": [
Expand Down
240 changes: 0 additions & 240 deletions packages/buidler/buidler.config.js

This file was deleted.

34 changes: 0 additions & 34 deletions packages/buidler/package.json

This file was deleted.

2 changes: 1 addition & 1 deletion packages/contracts/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@scaffold-eth/contracts",
"name": "@signchain/contracts",
"version": "1.0.0",
"main": "./src/index.js"
}
File renamed without changes.
Loading

0 comments on commit 5215178

Please sign in to comment.