Skip to content

Commit 0d727a3

Browse files
committed
v1.2.0
1 parent 4f6339d commit 0d727a3

File tree

7 files changed

+50
-8
lines changed

7 files changed

+50
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-tinybase",
3-
"version": "1.1.3",
3+
"version": "1.2.0",
44
"author": "jamesgpearce",
55
"repository": {
66
"type": "git",

screenshots/chat.png

-230 Bytes
Loading

screenshots/drawing.png

-3 Bytes
Loading

screenshots/game.png

-5 Bytes
Loading

templates/client/package.json.hbs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
{{includeFile template="client/index.html.hbs" output="client/index.html"}}
2+
{{includeFile template="client/.npmrc.hbs" output="client/.npmrc"}}
13
{
24
"name": "{{projectName}}{{#if server}}-client{{/if}}",
35
"version": "1.0.0",
46
"scripts": {
57
{{#list}}
6-
{{includeFile template="client/index.html.hbs" output="client/index.html"}}
78
"dev": "vite"
89
{{#if typescript}}
910
{{#if svelte}}
@@ -90,9 +91,6 @@
9091
{{#if prettier}}
9192
{{includeFile template="client/.prettierrc.json.hbs" output="client/.prettierrc.json"}}
9293
{{/if}}
93-
{{#if svelte}}
94-
{{includeFile template="client/.npmrc.hbs" output="client/.npmrc"}}
95-
{{/if}}
9694
{{#if eslint}}
9795
{{includeFile template="client/eslint.config.js.hbs" output="client/eslint.config.js"}}
9896
{{/if}}
@@ -102,4 +100,4 @@
102100
{{#if typescript}}
103101
{{includeFile template="client/tsconfig.json.hbs" output="client/tsconfig.json"}}
104102
{{includeFile template="client/vite-env.d.ts.hbs" output="client/src/vite-env.d.ts"}}
105-
{{/if}}
103+
{{/if}}

templates/server/package.json.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
{{includeFile template="server/index.ts.hbs" output="server/index.ts"}}
12
{
23
"name": "{{projectName}}-server",
34
"version": "1.0.0",
45
"type": "module",
56
"main": "index.ts",
67
"scripts": {
78
{{#list}}
8-
{{includeFile template="server/index.ts.hbs" output="server/index.ts"}}
99
{{#if (eq serverType "node")}}
1010
"dev": "tsx watch index.ts"
1111
"start": "node index.js"
@@ -46,4 +46,4 @@
4646
{{/if}}
4747
{{/list}}
4848
}
49-
}
49+
}

test/__snapshots__/cli.test.ts.snap

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ with the store.
6060

6161
- [TinyBase Documentation](https://tinybase.org)
6262
- [TinyBase Examples](https://tinybase.org/demos/)
63+
",
64+
"client/.npmrc": "legacy-peer-deps=true
6365
",
6466
"client/index.html": "<!doctype html>
6567
<html lang="en">
@@ -779,6 +781,8 @@ with the store.
779781

780782
- [TinyBase Documentation](https://tinybase.org)
781783
- [TinyBase Examples](https://tinybase.org/demos/)
784+
",
785+
"client/.npmrc": "legacy-peer-deps=true
782786
",
783787
"client/index.html": "<!doctype html>
784788
<html lang="en">
@@ -1596,6 +1600,8 @@ with the store.
15961600

15971601
- [TinyBase Documentation](https://tinybase.org)
15981602
- [TinyBase Examples](https://tinybase.org/demos/)
1603+
",
1604+
"client/.npmrc": "legacy-peer-deps=true
15991605
",
16001606
"client/index.html": "<!doctype html>
16011607
<html lang="en">
@@ -2361,6 +2367,8 @@ with the store.
23612367

23622368
- [TinyBase Documentation](https://tinybase.org)
23632369
- [TinyBase Examples](https://tinybase.org/demos/)
2370+
",
2371+
"client/.npmrc": "legacy-peer-deps=true
23642372
",
23652373
"client/index.html": "<!doctype html>
23662374
<html lang="en">
@@ -3064,6 +3072,8 @@ with the store.
30643072

30653073
- [TinyBase Documentation](https://tinybase.org)
30663074
- [TinyBase Examples](https://tinybase.org/demos/)
3075+
",
3076+
"client/.npmrc": "legacy-peer-deps=true
30673077
",
30683078
"client/index.html": "<!doctype html>
30693079
<html lang="en">
@@ -3779,6 +3789,8 @@ The \`server\` directory contains your Cloudflare Durable Objects WebSocket serv
37793789

37803790
- [TinyBase Documentation](https://tinybase.org)
37813791
- [TinyBase Examples](https://tinybase.org/demos/)
3792+
",
3793+
"client/.npmrc": "legacy-peer-deps=true
37823794
",
37833795
"client/index.html": "<!doctype html>
37843796
<html lang="en">
@@ -7266,6 +7278,8 @@ Your data is automatically saved and restored when you reload the page.
72667278

72677279
- [TinyBase Documentation](https://tinybase.org)
72687280
- [TinyBase Examples](https://tinybase.org/demos/)
7281+
",
7282+
"client/.npmrc": "legacy-peer-deps=true
72697283
",
72707284
"client/index.html": "<!doctype html>
72717285
<html lang="en">
@@ -7920,6 +7934,8 @@ Your data is automatically saved and restored when you reload the page.
79207934

79217935
- [TinyBase Documentation](https://tinybase.org)
79227936
- [TinyBase Examples](https://tinybase.org/demos/)
7937+
",
7938+
"client/.npmrc": "legacy-peer-deps=true
79237939
",
79247940
"client/index.html": "<!doctype html>
79257941
<html lang="en">
@@ -8610,6 +8626,8 @@ The app uses **TinyBase** to manage application state in a reactive data store.
86108626

86118627
- [TinyBase Documentation](https://tinybase.org)
86128628
- [TinyBase Examples](https://tinybase.org/demos/)
8629+
",
8630+
"client/.npmrc": "legacy-peer-deps=true
86138631
",
86148632
"client/index.html": "<!doctype html>
86158633
<html lang="en">
@@ -9293,6 +9311,8 @@ Your data is automatically saved and restored when you reload the page.
92939311

92949312
- [TinyBase Documentation](https://tinybase.org)
92959313
- [TinyBase Examples](https://tinybase.org/demos/)
9314+
",
9315+
"client/.npmrc": "legacy-peer-deps=true
92969316
",
92979317
"client/index.html": "<!doctype html>
92989318
<html lang="en">
@@ -9912,6 +9932,8 @@ Your data is automatically saved and restored when you reload the page.
99129932

99139933
- [TinyBase Documentation](https://tinybase.org)
99149934
- [TinyBase Examples](https://tinybase.org/demos/)
9935+
",
9936+
"client/.npmrc": "legacy-peer-deps=true
99159937
",
99169938
"client/index.html": "<!doctype html>
99179939
<html lang="en">
@@ -10517,6 +10539,8 @@ with the store.
1051710539

1051810540
- [TinyBase Documentation](https://tinybase.org)
1051910541
- [TinyBase Examples](https://tinybase.org/demos/)
10542+
",
10543+
"client/.npmrc": "legacy-peer-deps=true
1052010544
",
1052110545
"client/index.html": "<!doctype html>
1052210546
<html lang="en">
@@ -11333,6 +11357,8 @@ The \`server\` directory contains your Node.js WebSocket server.
1133311357

1133411358
- [TinyBase Documentation](https://tinybase.org)
1133511359
- [TinyBase Examples](https://tinybase.org/demos/)
11360+
",
11361+
"client/.npmrc": "legacy-peer-deps=true
1133611362
",
1133711363
"client/index.html": "<!doctype html>
1133811364
<html lang="en">
@@ -12184,6 +12210,8 @@ with the store.
1218412210

1218512211
- [TinyBase Documentation](https://tinybase.org)
1218612212
- [TinyBase Examples](https://tinybase.org/demos/)
12213+
",
12214+
"client/.npmrc": "legacy-peer-deps=true
1218712215
",
1218812216
"client/index.html": "<!doctype html>
1218912217
<html lang="en">
@@ -12998,6 +13026,8 @@ with the store.
1299813026

1299913027
- [TinyBase Documentation](https://tinybase.org)
1300013028
- [TinyBase Examples](https://tinybase.org/demos/)
13029+
",
13030+
"client/.npmrc": "legacy-peer-deps=true
1300113031
",
1300213032
"client/index.html": "<!doctype html>
1300313033
<html lang="en">
@@ -13748,6 +13778,8 @@ with the store.
1374813778

1374913779
- [TinyBase Documentation](https://tinybase.org)
1375013780
- [TinyBase Examples](https://tinybase.org/demos/)
13781+
",
13782+
"client/.npmrc": "legacy-peer-deps=true
1375113783
",
1375213784
"client/index.html": "<!doctype html>
1375313785
<html lang="en">
@@ -14474,6 +14506,8 @@ with the store.
1447414506

1447514507
- [TinyBase Documentation](https://tinybase.org)
1447614508
- [TinyBase Examples](https://tinybase.org/demos/)
14509+
",
14510+
"client/.npmrc": "legacy-peer-deps=true
1447714511
",
1447814512
"client/index.html": "<!doctype html>
1447914513
<html lang="en">
@@ -24403,6 +24437,8 @@ Your data is automatically saved and restored when you reload the page.
2440324437

2440424438
- [TinyBase Documentation](https://tinybase.org)
2440524439
- [TinyBase Examples](https://tinybase.org/demos/)
24440+
",
24441+
"client/.npmrc": "legacy-peer-deps=true
2440624442
",
2440724443
"client/index.html": "<!doctype html>
2440824444
<html lang="en">
@@ -25112,6 +25148,8 @@ Your data is automatically saved and restored when you reload the page.
2511225148

2511325149
- [TinyBase Documentation](https://tinybase.org)
2511425150
- [TinyBase Examples](https://tinybase.org/demos/)
25151+
",
25152+
"client/.npmrc": "legacy-peer-deps=true
2511525153
",
2511625154
"client/index.html": "<!doctype html>
2511725155
<html lang="en">
@@ -25859,6 +25897,8 @@ Your data is automatically saved and restored when you reload the page.
2585925897

2586025898
- [TinyBase Documentation](https://tinybase.org)
2586125899
- [TinyBase Examples](https://tinybase.org/demos/)
25900+
",
25901+
"client/.npmrc": "legacy-peer-deps=true
2586225902
",
2586325903
"client/index.html": "<!doctype html>
2586425904
<html lang="en">
@@ -26522,6 +26562,8 @@ Your data is automatically saved and restored when you reload the page.
2652226562

2652326563
- [TinyBase Documentation](https://tinybase.org)
2652426564
- [TinyBase Examples](https://tinybase.org/demos/)
26565+
",
26566+
"client/.npmrc": "legacy-peer-deps=true
2652526567
",
2652626568
"client/index.html": "<!doctype html>
2652726569
<html lang="en">
@@ -27240,6 +27282,8 @@ Your data is automatically saved and restored when you reload the page.
2724027282

2724127283
- [TinyBase Documentation](https://tinybase.org)
2724227284
- [TinyBase Examples](https://tinybase.org/demos/)
27285+
",
27286+
"client/.npmrc": "legacy-peer-deps=true
2724327287
",
2724427288
"client/index.html": "<!doctype html>
2724527289
<html lang="en">

0 commit comments

Comments
 (0)