@iota/create-dapp 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/README.md +5 -1
- package/package.json +4 -3
- package/templates/react-client-dapp/README.md +1 -1
- package/templates/react-client-dapp/eslint.config.js +28 -0
- package/templates/react-client-dapp/package.json +10 -8
- package/templates/react-e2e-counter/README.md +2 -5
- package/templates/react-e2e-counter/eslint.config.js +28 -0
- package/templates/react-e2e-counter/package.json +10 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @iota/create-dapp
|
|
2
2
|
|
|
3
|
+
## 0.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 8c3a220: Update some outdated eslint dependencies of the `@iota/create-dapp` templates, to their
|
|
8
|
+
eslint v9-compatible versions
|
|
9
|
+
|
|
10
|
+
## 0.2.2
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [9864dcb]
|
|
15
|
+
- @iota/iota-sdk@0.4.0
|
|
16
|
+
- @iota/dapp-kit@0.3.2
|
|
17
|
+
|
|
18
|
+
## 0.2.1
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- 220fa7a: First public release.
|
|
23
|
+
- Updated dependencies [220fa7a]
|
|
24
|
+
- @iota/dapp-kit@0.3.1
|
|
25
|
+
- @iota/iota-sdk@0.3.1
|
|
26
|
+
|
|
3
27
|
## 0.2.0
|
|
4
28
|
|
|
5
29
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# @iota/create-dapp
|
|
2
2
|
|
|
3
|
+
`@iota/create-dapp` is part of the **IOTA Rebased SDK**, designed specifically for interacting with the IOTA Rebased protocol.
|
|
4
|
+
|
|
5
|
+
> **Note**: This package is currently supported **only in Testnet and Devnet**, it is **not yet supported in Mainnet**.
|
|
6
|
+
|
|
3
7
|
`@iota/create-dapp` is a CLI tool that helps you to create a new dApp project.
|
|
4
8
|
|
|
5
9
|
You can get started quickly by running the following command:
|
|
@@ -27,7 +31,7 @@ you including:
|
|
|
27
31
|
- [Vite](https://vitejs.dev/)
|
|
28
32
|
- [Radix UI](https://www.radix-ui.com/)
|
|
29
33
|
- [ESLint](https://eslint.org/)
|
|
30
|
-
- [`@iota/dapp-kit`](https://
|
|
34
|
+
- [`@iota/dapp-kit`](https://docs.iota.org/references/ts-sdk/dapp-kit)
|
|
31
35
|
|
|
32
36
|
These templates are still new, and would love to get feedback and suggestions for improvements or
|
|
33
37
|
future templates. Please open an issue on GitHub if you have any feedback.
|
package/package.json
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
"name": "@iota/create-dapp",
|
|
3
3
|
"author": "IOTA Foundation <info@iota.org>",
|
|
4
4
|
"description": "A CLI for creating new IOTA dApps",
|
|
5
|
-
"
|
|
5
|
+
"homepage": "https://docs.iota.org/references/ts-sdk/typescript/",
|
|
6
|
+
"version": "0.3.0",
|
|
6
7
|
"license": "Apache-2.0",
|
|
7
8
|
"files": [
|
|
8
9
|
"CHANGELOG.md",
|
|
@@ -26,8 +27,8 @@
|
|
|
26
27
|
"dependencies": {
|
|
27
28
|
"@types/node": "^20.14.10",
|
|
28
29
|
"enquirer": "^2.4.1",
|
|
29
|
-
"@iota/dapp-kit": "0.3.
|
|
30
|
-
"@iota/iota-sdk": "0.
|
|
30
|
+
"@iota/dapp-kit": "0.3.2",
|
|
31
|
+
"@iota/iota-sdk": "0.4.0"
|
|
31
32
|
},
|
|
32
33
|
"sideEffects": false,
|
|
33
34
|
"bin": "./bin/index.js",
|
|
@@ -8,7 +8,7 @@ Client dApp using the following tools:
|
|
|
8
8
|
- [Vite](https://vitejs.dev/) for build tooling
|
|
9
9
|
- [Radix UI](https://www.radix-ui.com/) for pre-built UI components
|
|
10
10
|
- [ESLint](https://eslint.org/)
|
|
11
|
-
- [`@iota/dapp-kit`](https://
|
|
11
|
+
- [`@iota/dapp-kit`](https://docs.iota.org/references/ts-sdk/dapp-kit) for
|
|
12
12
|
connecting to wallets and loading data
|
|
13
13
|
- [pnpm](https://pnpm.io/) for package management
|
|
14
14
|
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import eslint from "@eslint/js";
|
|
2
|
+
import tseslint from "typescript-eslint";
|
|
3
|
+
import react from "eslint-plugin-react";
|
|
4
|
+
import reactHooks from "eslint-plugin-react-hooks";
|
|
5
|
+
import reactRefresh from "eslint-plugin-react-refresh";
|
|
6
|
+
|
|
7
|
+
export default tseslint.config(
|
|
8
|
+
{
|
|
9
|
+
files: ["**/*.{js,jsx,mjs,cjs,ts,tsx}"],
|
|
10
|
+
plugins: {
|
|
11
|
+
react,
|
|
12
|
+
reactHooks,
|
|
13
|
+
reactRefresh,
|
|
14
|
+
},
|
|
15
|
+
settings: {
|
|
16
|
+
version: "18",
|
|
17
|
+
},
|
|
18
|
+
languageOptions: {
|
|
19
|
+
parserOptions: {
|
|
20
|
+
ecmaFeatures: {
|
|
21
|
+
jsx: true,
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
eslint.configs.recommended,
|
|
27
|
+
tseslint.configs.recommended,
|
|
28
|
+
);
|
|
@@ -6,28 +6,30 @@
|
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "vite",
|
|
8
8
|
"build": "tsc && vite build",
|
|
9
|
-
"lint": "eslint .
|
|
10
|
-
"preview": "vite preview"
|
|
9
|
+
"lint": "eslint .",
|
|
10
|
+
"preview": "vite preview",
|
|
11
|
+
"format": "prettier -w ."
|
|
11
12
|
},
|
|
12
13
|
"dependencies": {
|
|
13
14
|
"@iota/dapp-kit": "workspace:*",
|
|
14
15
|
"@iota/iota-sdk": "workspace:*",
|
|
15
|
-
"@radix-ui/colors": "^3.0.0",
|
|
16
|
-
"@radix-ui/react-icons": "^1.3.0",
|
|
17
16
|
"@radix-ui/themes": "^3.1.1",
|
|
18
17
|
"@tanstack/react-query": "^5.50.1",
|
|
19
18
|
"react": "^18.3.1",
|
|
20
19
|
"react-dom": "^18.3.1"
|
|
21
20
|
},
|
|
22
21
|
"devDependencies": {
|
|
22
|
+
"@eslint/js": "^9.17.0",
|
|
23
23
|
"@types/react": "^18.3.3",
|
|
24
24
|
"@types/react-dom": "^18.3.0",
|
|
25
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
26
|
-
"@typescript-eslint/parser": "^
|
|
25
|
+
"@typescript-eslint/eslint-plugin": "^8.18.0",
|
|
26
|
+
"@typescript-eslint/parser": "^8.18.0",
|
|
27
27
|
"@vitejs/plugin-react-swc": "^3.7.0",
|
|
28
|
-
"eslint": "^9.
|
|
29
|
-
"eslint-plugin-react-hooks": "^
|
|
28
|
+
"eslint": "^9.17.0",
|
|
29
|
+
"eslint-plugin-react-hooks": "^5.1.0",
|
|
30
30
|
"eslint-plugin-react-refresh": "^0.4.7",
|
|
31
|
+
"eslint-plugin-react": "^7.37.2",
|
|
32
|
+
"typescript-eslint": "^8.18.0",
|
|
31
33
|
"prettier": "^3.3.2",
|
|
32
34
|
"typescript": "^5.5.3",
|
|
33
35
|
"vite": "^5.3.3"
|
|
@@ -8,20 +8,17 @@ Client dApp using the following tools:
|
|
|
8
8
|
- [Vite](https://vitejs.dev/) for build tooling
|
|
9
9
|
- [Radix UI](https://www.radix-ui.com/) for pre-built UI components
|
|
10
10
|
- [ESLint](https://eslint.org/) for linting
|
|
11
|
-
- [`@iota/dapp-kit`](https://
|
|
11
|
+
- [`@iota/dapp-kit`](https://docs.iota.org/references/ts-sdk/dapp-kit) for
|
|
12
12
|
connecting to wallets and loading data
|
|
13
13
|
- [pnpm](https://pnpm.io/) for package management
|
|
14
14
|
|
|
15
|
-
For a full guide on how to build this dApp from scratch, visit this
|
|
16
|
-
[guide](http://wiki.iota.org/guides/developer/app-examples/e2e-counter#frontend).
|
|
17
|
-
|
|
18
15
|
## Deploying your Move code
|
|
19
16
|
|
|
20
17
|
### Install IOTA cli
|
|
21
18
|
|
|
22
19
|
Before deploying your move code, ensure that you have installed the IOTA CLI.
|
|
23
20
|
You can follow the
|
|
24
|
-
[IOTA installation instruction](https://
|
|
21
|
+
[IOTA installation instruction](https://docs.iota.org/developer/getting-started/install-iota) to get
|
|
25
22
|
everything set up.
|
|
26
23
|
|
|
27
24
|
This template uses `testnet` by default, so we'll need to set up a testnet
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import eslint from "@eslint/js";
|
|
2
|
+
import tseslint from "typescript-eslint";
|
|
3
|
+
import react from "eslint-plugin-react";
|
|
4
|
+
import reactHooks from "eslint-plugin-react-hooks";
|
|
5
|
+
import reactRefresh from "eslint-plugin-react-refresh";
|
|
6
|
+
|
|
7
|
+
export default tseslint.config(
|
|
8
|
+
{
|
|
9
|
+
files: ["**/*.{js,jsx,mjs,cjs,ts,tsx}"],
|
|
10
|
+
plugins: {
|
|
11
|
+
react,
|
|
12
|
+
reactHooks,
|
|
13
|
+
reactRefresh,
|
|
14
|
+
},
|
|
15
|
+
settings: {
|
|
16
|
+
version: "18",
|
|
17
|
+
},
|
|
18
|
+
languageOptions: {
|
|
19
|
+
parserOptions: {
|
|
20
|
+
ecmaFeatures: {
|
|
21
|
+
jsx: true,
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
eslint.configs.recommended,
|
|
27
|
+
tseslint.configs.recommended,
|
|
28
|
+
);
|
|
@@ -6,28 +6,30 @@
|
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "vite",
|
|
8
8
|
"build": "tsc && vite build",
|
|
9
|
-
"lint": "eslint .
|
|
10
|
-
"preview": "vite preview"
|
|
9
|
+
"lint": "eslint .",
|
|
10
|
+
"preview": "vite preview",
|
|
11
|
+
"format": "prettier -w ."
|
|
11
12
|
},
|
|
12
13
|
"dependencies": {
|
|
13
14
|
"@iota/dapp-kit": "workspace:*",
|
|
14
15
|
"@iota/iota-sdk": "workspace:*",
|
|
15
|
-
"@radix-ui/colors": "^3.0.0",
|
|
16
|
-
"@radix-ui/react-icons": "^1.3.0",
|
|
17
16
|
"@radix-ui/themes": "^3.1.1",
|
|
18
17
|
"@tanstack/react-query": "^5.50.1",
|
|
19
18
|
"react": "^18.3.1",
|
|
20
19
|
"react-dom": "^18.3.1"
|
|
21
20
|
},
|
|
22
21
|
"devDependencies": {
|
|
22
|
+
"@eslint/js": "^9.17.0",
|
|
23
23
|
"@types/react": "^18.3.3",
|
|
24
24
|
"@types/react-dom": "^18.3.0",
|
|
25
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
26
|
-
"@typescript-eslint/parser": "^
|
|
25
|
+
"@typescript-eslint/eslint-plugin": "^8.18.0",
|
|
26
|
+
"@typescript-eslint/parser": "^8.18.0",
|
|
27
27
|
"@vitejs/plugin-react-swc": "^3.7.0",
|
|
28
|
-
"eslint": "^
|
|
29
|
-
"eslint-plugin-react-hooks": "^
|
|
28
|
+
"eslint": "^9.17.0",
|
|
29
|
+
"eslint-plugin-react-hooks": "^5.1.0",
|
|
30
30
|
"eslint-plugin-react-refresh": "^0.4.7",
|
|
31
|
+
"eslint-plugin-react": "^7.37.2",
|
|
32
|
+
"typescript-eslint": "^8.18.0",
|
|
31
33
|
"prettier": "^3.3.2",
|
|
32
34
|
"typescript": "^5.5.3",
|
|
33
35
|
"vite": "^5.3.3"
|