Skip to content

Commit 640d0e9

Browse files
initial lerna + tsdx setup
0 parents  commit 640d0e9

19 files changed

+14668
-0
lines changed

.gitignore

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
*.log
2+
.DS_Store
3+
node_modules
4+
.cache
5+
.rts2_cache_cjs
6+
.rts2_cache_esm
7+
.rts2_cache_umd
8+
.rts2_cache_system
9+
dist

LICENSE

+674
Large diffs are not rendered by default.

README.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# web3-react
2+
3+
[![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lerna.js.org/)
4+
5+
## Local Development
6+
7+
* Clone repo\
8+
`git clone https://github.com/NoahZinsmeister/web3-react.git`
9+
10+
* Install top-level dependencies\
11+
`yarn`
12+
13+
* Install sub-dependencies\
14+
`yarn bootstrap`
15+
16+
* Build and begin watching for local changes\
17+
`yarn start`

example/README.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Example
2+
3+
## Local Development
4+
5+
Before starting, ensure you've completed the instructions in the top-level [README.md](../README.md#local-development).
6+
7+
* Install dependencies\
8+
`yarn`
9+
10+
* Serve the example on localhost\
11+
`yarn start`

example/index.html

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
7+
<title>web3-react example</title>
8+
</head>
9+
10+
<body>
11+
<div id="root"></div>
12+
<script src="./index.tsx"></script>
13+
</body>
14+
</html>

example/index.tsx

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import 'react-app-polyfill/ie11'
2+
3+
import * as React from 'react'
4+
import * as ReactDOM from 'react-dom'
5+
6+
import { Test } from '../packages/core'
7+
8+
function App() {
9+
return <Test />
10+
}
11+
12+
ReactDOM.render(<App />, document.getElementById('root'))

example/package.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"scripts": {
3+
"start": "parcel index.html",
4+
"build": "parcel build index.html"
5+
},
6+
"dependencies": {
7+
"react-app-polyfill": "^1.0.0"
8+
},
9+
"alias": {
10+
"@types/react": "../node_modules/@types/react",
11+
"@types/react-dom": "../node_modules/@types/react-dom",
12+
"react": "../node_modules/react",
13+
"react-dom": "../node_modules/react-dom/profiling",
14+
"scheduler/tracing": "../node_modules/scheduler/tracing-profiling",
15+
"typescript": "../node_modules/typescript"
16+
},
17+
"devDependencies": {
18+
"parcel": "^1.12.4"
19+
}
20+
}

example/tsconfig.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extends": "../tsconfig.json",
3+
"compilerOptions": {
4+
"module": "commonjs",
5+
"lib": ["es2015", "es2016", "dom"],
6+
"baseUrl": "."
7+
}
8+
}

0 commit comments

Comments
 (0)