@tuwaio/create-cosmos-playground 0.0.2 ā 0.0.4
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 +14 -0
- package/README.md +16 -17
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
- package/tsconfig.json +9 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.4](https://github.com/TuwaIO/cosmos-playground/compare/create-cosmos-playground-v0.0.3...create-cosmos-playground-v0.0.4) (2025-09-19)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* update readme's ([dacfc2c](https://github.com/TuwaIO/cosmos-playground/commit/dacfc2ca54e91fe7784482608f97191335b0ef11))
|
|
9
|
+
|
|
10
|
+
## [0.0.3](https://github.com/TuwaIO/cosmos-playground/compare/create-cosmos-playground-v0.0.2...create-cosmos-playground-v0.0.3) (2025-09-19)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* update examples to proper work with create-cosmos-playground ([57a4599](https://github.com/TuwaIO/cosmos-playground/commit/57a4599598c41af9ad6eeb7902f13ef41d263780))
|
|
16
|
+
|
|
3
17
|
## [0.0.2](https://github.com/TuwaIO/cosmos-playground/compare/create-cosmos-playground-v0.0.1...create-cosmos-playground-v0.0.2) (2025-09-19)
|
|
4
18
|
|
|
5
19
|
|
package/README.md
CHANGED
|
@@ -4,42 +4,41 @@ A CLI tool to scaffold new Cosmos Playground examples quickly and easily. This t
|
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
## Features
|
|
7
|
+
## ⨠Features
|
|
8
8
|
|
|
9
9
|
- **Intuitive prompts:** Easily select from available project templates and name your new project.
|
|
10
|
-
- **Automated setup:** The tool automatically downloads
|
|
11
|
-
- **
|
|
10
|
+
- **Automated setup:** The tool automatically downloads your chosen project template from the GitHub repository.
|
|
11
|
+
- **Seamless dependencies:** Dependencies are automatically installed using `pnpm` after scaffolding.
|
|
12
12
|
- **Multiple templates:** Supports a variety of templates for different web3 frameworks and chains.
|
|
13
13
|
|
|
14
14
|
---
|
|
15
15
|
|
|
16
|
-
##
|
|
16
|
+
## š Prerequisites
|
|
17
17
|
|
|
18
|
-
-
|
|
19
|
-
- An internet connection
|
|
18
|
+
- Node.js >= 20.0.0
|
|
19
|
+
- An internet connection is required to download templates and dependencies.
|
|
20
20
|
|
|
21
21
|
---
|
|
22
22
|
|
|
23
|
-
## Usage
|
|
23
|
+
## š Usage
|
|
24
24
|
|
|
25
|
-
To use
|
|
25
|
+
To use this tool, simply run the `npx` command in your terminal:
|
|
26
26
|
|
|
27
27
|
```bash
|
|
28
28
|
npx @tuwaio/create-cosmos-playground
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
The CLI will guide you through the process:
|
|
31
|
+
### The CLI will then guide you through the process:
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
- You'll be prompted to select a project template from a list of available options.
|
|
34
|
+
- You will be asked to enter a name for your new project.
|
|
35
|
+
- The tool will download the selected template, install dependencies with pnpm, and provide you with final instructions to start your application.
|
|
34
36
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
It will automatically download the chosen template and install its dependencies.
|
|
38
|
-
|
|
39
|
-
Example
|
|
37
|
+
### Example
|
|
40
38
|
Here is a typical workflow:
|
|
39
|
+
|
|
41
40
|
```bash
|
|
42
|
-
#
|
|
41
|
+
# Run the CLI tool
|
|
43
42
|
npx @tuwaio/create-cosmos-playground
|
|
44
43
|
|
|
45
44
|
# Example prompts and output:
|
|
@@ -53,7 +52,7 @@ npx @tuwaio/create-cosmos-playground
|
|
|
53
52
|
# ... (pnpm install output) ...
|
|
54
53
|
|
|
55
54
|
# Done! Now run:
|
|
56
|
-
# cd my-new-app
|
|
55
|
+
# cd ./my-new-app
|
|
57
56
|
# pnpm dev
|
|
58
57
|
```
|
|
59
58
|
|
package/dist/index.js
CHANGED
|
@@ -62,7 +62,7 @@ async function main() {
|
|
|
62
62
|
console.log(`\nš¦ Installing dependencies with pnpm...`);
|
|
63
63
|
await (0, execa_1.execa)('pnpm', ['install'], { cwd: projectPath, stdio: 'inherit' });
|
|
64
64
|
console.log(`\nDone! Next steps:`);
|
|
65
|
-
console.log(`cd
|
|
65
|
+
console.log(`cd ./${projectName}`);
|
|
66
66
|
console.log(`pnpm dev`);
|
|
67
67
|
}
|
|
68
68
|
catch (error) {
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -73,7 +73,7 @@ async function main() {
|
|
|
73
73
|
await execa('pnpm', ['install'], { cwd: projectPath, stdio: 'inherit' });
|
|
74
74
|
|
|
75
75
|
console.log(`\nDone! Next steps:`);
|
|
76
|
-
console.log(`cd
|
|
76
|
+
console.log(`cd ./${projectName}`);
|
|
77
77
|
console.log(`pnpm dev`);
|
|
78
78
|
} catch (error) {
|
|
79
79
|
console.error(`\nā An error occurred: ${error}`);
|
package/tsconfig.json
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
-
"extends": "../../tsconfig.json",
|
|
3
2
|
"compilerOptions": {
|
|
4
3
|
"outDir": "dist",
|
|
5
4
|
"rootDir": "src",
|
|
6
5
|
"module": "commonjs",
|
|
7
|
-
"moduleResolution": "node"
|
|
6
|
+
"moduleResolution": "node",
|
|
7
|
+
"target": "ESNext",
|
|
8
|
+
"lib": ["DOM", "ESNext"],
|
|
9
|
+
"jsx": "react-jsx",
|
|
10
|
+
"strict": true,
|
|
11
|
+
"esModuleInterop": true,
|
|
12
|
+
"skipLibCheck": true
|
|
8
13
|
},
|
|
9
|
-
"include": ["src/**/*.ts"]
|
|
14
|
+
"include": ["src/**/*.ts"],
|
|
15
|
+
"exclude": ["node_modules", "**/dist", "**/*.stories.tsx"]
|
|
10
16
|
}
|