create-dao
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -89,2 +89,6 @@ const path = require('path'); | ||
'next', | ||
'@chakra-ui/react', | ||
'@emotion/react@^11', | ||
'@emotion/styled@^11', | ||
'framer-motion@^4', | ||
]; | ||
@@ -136,2 +140,9 @@ /** | ||
cwd: path.join(__dirname, 'template'), //for single template | ||
filter: (name) => { | ||
// console.log('file name : ', name); | ||
if (name.relativePath === 'package.json') { | ||
return false; | ||
} | ||
return true; | ||
}, | ||
rename: (name) => { | ||
@@ -138,0 +149,0 @@ switch (name) { |
{ | ||
"name": "create-dao", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "", | ||
"private": false, | ||
"scripts": { | ||
"start": "node ./index.js" | ||
"dev": "yarn workspace @create-dao/next-app dev", | ||
"build": "yarn workspace @create-dao/next-app build", | ||
"start": "yarn workspace @create-dao/next-app start", | ||
"lint": "yarn workspace @create-dao/next-app lint", | ||
"chain": "yarn workspace @create-dao/next-app chain", | ||
"compile": "yarn workspace @create-dao/next-app compile", | ||
"deploy": "yarn workspace @create-dao/next-app deploy" | ||
}, | ||
@@ -25,3 +32,6 @@ "keywords": [], | ||
"node": ">=14" | ||
} | ||
}, | ||
"workspaces": [ | ||
"template" | ||
] | ||
} |
# create-dao | ||
## For development | ||
1. Run `yarn` | ||
2. In one terminal | ||
3. Run `yarn chain` | ||
4. In another terminal | ||
5. Run `yarn deploy` | ||
6. Run `yarn dev` | ||
## What this is supposed to be | ||
@@ -4,0 +13,0 @@ |
import '../styles/globals.css'; | ||
import { ChakraProvider } from '@chakra-ui/react'; | ||
function MyApp({ Component, pageProps }) { | ||
return <Component {...pageProps} />; | ||
return ( | ||
<ChakraProvider> | ||
<Component {...pageProps} /> | ||
</ChakraProvider> | ||
); | ||
} | ||
export default MyApp; |
@@ -1,7 +0,5 @@ | ||
import Head from 'next/head'; | ||
import Image from 'next/image'; | ||
import styles from '../styles/Home.module.css'; | ||
import { useState } from 'react'; | ||
import { useEffect, useState } from 'react'; | ||
import { ethers } from 'ethers'; | ||
import Greeter from '../src/artifacts/contracts/Greeter.sol/Greeter.json'; | ||
import { Button, Input, Container, VStack, HStack, Heading } from '@chakra-ui/react'; | ||
@@ -52,14 +50,21 @@ // Update with the contract address logged out to the CLI when it was deployed | ||
useEffect(() => { | ||
setGreeting(); | ||
}, []); | ||
return ( | ||
<div className='App'> | ||
<header className='App-header'> | ||
<button onClick={fetchGreeting}>Fetch Greeting</button> | ||
<button onClick={setGreeting}>Set Greeting</button> | ||
<input | ||
<Container> | ||
<VStack mt="50"> | ||
<Heading>{greeting}</Heading> | ||
<Input | ||
onChange={(e) => setGreetingValue(e.target.value)} | ||
placeholder='Set greeting' | ||
placeholder="Set greeting" | ||
/> | ||
</header> | ||
</div> | ||
<HStack> | ||
<Button onClick={fetchGreeting}>Fetch Greeting</Button> | ||
<Button onClick={setGreeting}>Set Greeting</Button> | ||
</HStack> | ||
</VStack> | ||
</Container> | ||
); | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
34921
31
829
52
4