File tree 10 files changed +76
-13
lines changed
10 files changed +76
-13
lines changed Original file line number Diff line number Diff line change @@ -24,9 +24,9 @@ npm create verza@latest react my-project
24
24
25
25
## Templates
26
26
27
- | Template | Description |
28
- | ---------- | ------------------------- |
29
- | ` js ` | JavaScript template |
30
- | ` ts ` | TypeScript template |
31
- | ` react ` | React JavaScript template |
32
- | ` react-ts ` | React TypeScript template |
27
+ | Template | Description |
28
+ | ------------ | ------------------------- |
29
+ | ` javascript ` | JavaScript template |
30
+ | ` typescript ` | TypeScript template |
31
+ | ` react ` | React JavaScript template |
32
+ | ` react-ts ` | React TypeScript template |
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " create-verza" ,
3
- "version" : " 1 .0.5 " ,
3
+ "version" : " 2 .0.0 " ,
4
4
"type" : " module" ,
5
5
"license" : " MIT" ,
6
6
"author" :
" zo0r <[email protected] >" ,
7
7
"bin" : {
8
8
"create-verza" : " dist/index.js"
9
9
},
10
10
"scripts" : {
11
- "build" : " rollup -c ./rollup.config.mjs" ,
12
- "publish" : " npm publish --access public --scope=@verza"
11
+ "build" : " rollup -c ./rollup.config.mjs"
13
12
},
14
13
"files" : [
15
14
" dist/*" ,
32
31
"minimist" : " ^1.2.8" ,
33
32
"prompts" : " ^2.4.2" ,
34
33
"rollup" : " ^3.29.4"
35
- },
36
- "dependencies" : {
37
- "react" : " ^18.2.0" ,
38
- "react-dom" : " ^18.2.0"
39
34
}
40
35
}
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ import { Command , initEngine } from "@verza/sdk" ;
2
+
3
+ export default async function script ( ) {
4
+ const VERZA_TOKEN = process . env . VERZA_TOKEN ;
5
+
6
+ const engine = await initEngine ( {
7
+ accessToken : VERZA_TOKEN ,
8
+ } ) ;
9
+
10
+ engine . commands . register (
11
+ new Command ( "server" ) . on ( ( player ) => {
12
+ player . sendMessage ( "Hello from server!" ) ;
13
+ } )
14
+ ) ;
15
+
16
+ return engine ;
17
+ }
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ import { Command , initEngine } from "@verza/sdk" ;
2
+
3
+ export default async function script ( ) {
4
+ const VERZA_TOKEN = process . env . VERZA_TOKEN ;
5
+
6
+ const engine = await initEngine ( {
7
+ accessToken : VERZA_TOKEN ,
8
+ } ) ;
9
+
10
+ engine . commands . register (
11
+ new Command ( "server" ) . on ( ( player ) => {
12
+ player . sendMessage ( "Hello from server!" ) ;
13
+ } )
14
+ ) ;
15
+
16
+ return engine ;
17
+ }
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ import { Command , initEngine } from "@verza/sdk" ;
2
+
3
+ export default async function script ( ) {
4
+ const VERZA_TOKEN = process . env . VERZA_TOKEN ;
5
+
6
+ const engine = await initEngine ( {
7
+ accessToken : VERZA_TOKEN ,
8
+ } ) ;
9
+
10
+ engine . commands . register (
11
+ new Command ( "server" ) . on ( ( player ) => {
12
+ player . sendMessage ( "Hello from server!" ) ;
13
+ } )
14
+ ) ;
15
+
16
+ return engine ;
17
+ }
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ import { Command , initEngine } from "@verza/sdk" ;
2
+
3
+ export default async function script ( ) {
4
+ const VERZA_TOKEN = process . env . VERZA_TOKEN ;
5
+
6
+ const engine = await initEngine ( {
7
+ accessToken : VERZA_TOKEN ,
8
+ } ) ;
9
+
10
+ engine . commands . register (
11
+ new Command ( "server" ) . on ( ( player ) => {
12
+ player . sendMessage ( "Hello from server!" ) ;
13
+ } )
14
+ ) ;
15
+
16
+ return engine ;
17
+ }
You can’t perform that action at this time.
0 commit comments