-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update templates/react-counter & Refactor create-rooch (#1743)
* Refactor create-rooch & update templates * rm test val
- Loading branch information
Showing
61 changed files
with
1,124 additions
and
14,054 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// Copyright (c) RoochNetwork | ||
// SPDX-License-Identifier: Apache-2.0 | ||
require('../dist/index.js'); |
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
sdk/typescript/rooch-create/dist/templates/react/package.json
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,39 @@ | ||
{ | ||
"name": "@roochnetwork/create-rooch", | ||
"version": "0.0.6", | ||
"version": "0.1.1", | ||
"description": "Create a new Rooch project", | ||
"license": "Apache-2.0", | ||
"author": "Rooch.network <[email protected]>", | ||
"bin": { | ||
"rooch": "dist/index.js" | ||
"rooch": "./bin/index.js" | ||
}, | ||
"files": ["dist"], | ||
"files": ["dist", "bin"], | ||
"type": "commonjs", | ||
"main": "./dist/cjs/index.js", | ||
"module": "./dist/esm/index.js", | ||
"types": "./dist/cjs/index.d.ts", | ||
"scripts": { | ||
"build": "pnpm run build:js", | ||
"build:js": "tsup && ./scripts/copy-templates.sh", | ||
"clean": "pnpm run clean:js", | ||
"clean:js": "rimraf dist", | ||
"dev": "tsup --watch", | ||
"prepublishOnly": "npm run clean && npm run build", | ||
"test": "pnpm run test:react", | ||
"test:ci": "pnpm run test", | ||
"test:react": "dist/cli.js test-project --template react && rimraf test-project" | ||
"build:js": "tsc --build && ./scripts/copy-templates.sh", | ||
"clean": "rm -rf tsconfig.tsbuildinfo ./dist", | ||
"prepublishOnly": "pnpm build", | ||
"prettier:check": "prettier -c --ignore-unknown .", | ||
"prettier:fix": "prettier -w --ignore-unknown .", | ||
"eslint:check": "eslint --max-warnings=0 .", | ||
"eslint:fix": "pnpm run eslint:check --fix", | ||
"lint": "pnpm run eslint:check && pnpm run prettier:check", | ||
"lint:fix": "pnpm run eslint:fix && pnpm run prettier:fix" | ||
}, | ||
"dependencies": { | ||
"create-create-app": "git+https://github.com/holic/create-create-app#74376c59b48a04aabbe94d9cacfe9cb1cecccd63" | ||
"typescript": "^5.1.6", | ||
"enquirer": "^2.4.1" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^18.15.13", | ||
"tsup": "^6.7.0" | ||
"@types/node": "^18.15.13" | ||
}, | ||
"publishConfig": { | ||
"access": "public", | ||
"registry": "https://registry.npmjs.org" | ||
} | ||
}, | ||
"sideEffects": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
{ | ||
"exclude": ["dist"], | ||
"extends": "../build-scripts/tsconfig.shared.json", | ||
"include": ["src"], | ||
"compilerOptions": { | ||
"target": "es2020", | ||
"module": "commonjs", | ||
"declaration": true, | ||
"inlineSourceMap": true, | ||
"outDir": "./dist", | ||
"strict": true, | ||
"esModuleInterop": true, | ||
"resolveJsonModule": true | ||
} | ||
"target": "ES2020", | ||
"module": "CommonJS", | ||
"moduleResolution": "Node", | ||
"outDir": "dist", | ||
"isolatedModules": true, | ||
"rootDir": "src", | ||
"emitDeclarationOnly": false | ||
}, | ||
"references": [{ "path": "../rooch-sdk" }, { "path": "../rooch-sdk-kit" }] | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Rooch dApp Starter Template | ||
|
||
This dApp was created using `@roochnetwork/create-rooch` that sets up a simple React | ||
Client dApp using the following tools: | ||
|
||
- [React](https://react.dev/) as the UI framework | ||
- [TypeScript](https://www.typescriptlang.org/) for type checking | ||
- [Vite](https://vitejs.dev/) for build tooling | ||
- [Radix UI](https://www.radix-ui.com/) for pre-built UI components | ||
- [ESLint](https://eslint.org/) for linting | ||
- [@roochnetwork/rooch-sdk](https://www.npmjs.com/package/@roochnetwork/rooch-sdk) | ||
- [@roochnetwork/rooch-sdk-kit](https://www.npmjs.com/package/@roochnetwork/rooch-sdk-kit) for connecting to | ||
wallets and loading data | ||
- [pnpm](https://pnpm.io/) for package management | ||
|
||
We can ensure we have some Gss in our new wallet by requesting Gas from the [faucet doc](https://rooch.network/learn/portal) Receive Gas chapter | ||
|
||
## Install [rooch cli doc](https://rooch.network/zh-CN/build/getting-started/installation) | ||
## Publish [counter package doc](https://github.com/rooch-network/rooch/tree/main/examples/counter) | ||
|
||
## Starting your dApp | ||
|
||
To install dependencies you can run | ||
|
||
```bash | ||
pnpm install | ||
``` | ||
|
||
To start your dApp in development mode run | ||
|
||
```bash | ||
pnpm dev | ||
``` | ||
|
||
## Building | ||
|
||
To build your app for deployment you can run | ||
|
||
```bash | ||
pnpm build | ||
``` |
Oops, something went wrong.