create-towns-protocol-app 0.0.431 → 0.0.433
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/README.md +6 -6
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ This package is used to scaffold a new React Towns Protocol app.
|
|
|
9
9
|
By default, the script will create a new app using the Playground template: a full-featured example application.
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
|
|
12
|
+
bun create towns-protocol-app my-app
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
### React Templates
|
|
@@ -21,16 +21,16 @@ Then, it will install the necessary dependencies: `@towns-protocol/sdk` and `@to
|
|
|
21
21
|
Finally, it will add the `vite-plugin-node-polyfills` to the `vite.config.ts` file to ensure compatibility with Node.js native modules that are used by the Towns Protocol SDK.
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
|
-
|
|
24
|
+
bun create towns-protocol-app my-app --template react-ts
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
## Usage
|
|
28
28
|
|
|
29
29
|
You can use your preferred package manager to run the command.
|
|
30
|
-
Example using `
|
|
30
|
+
Example using `bun`:
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
|
-
|
|
33
|
+
bun create towns-protocol-app
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
This will create a new React Towns Protocol app in the current directory.
|
|
@@ -38,13 +38,13 @@ This will create a new React Towns Protocol app in the current directory.
|
|
|
38
38
|
If you want to create a new app in a different directory, you can specify the directory name as an argument:
|
|
39
39
|
|
|
40
40
|
```bash
|
|
41
|
-
|
|
41
|
+
bun create towns-protocol-app my-app
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
You can specify a template using the `-t` or `--template` flag:
|
|
45
45
|
|
|
46
46
|
```bash
|
|
47
|
-
|
|
47
|
+
bun create towns-protocol-app my-app --template react-ts
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
Available templates:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-towns-protocol-app",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.433",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "tsup",
|
|
6
6
|
"watch": "tsup --watch"
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"publishConfig": {
|
|
31
31
|
"access": "public"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "0fe7289140a4eb11ccc26cc9deb3c1818d0d5ea3"
|
|
34
34
|
}
|