Skip to content

Commit

Permalink
chore: improve building of examples
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnowack committed Dec 4, 2023
1 parent 3af825b commit a6effb9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions examples/appwrite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"copy": "rimraf ../../docs/public/examples/appwrite && cp -R out ../../docs/public/examples/appwrite",
"start": "next start",
"lint": "next lint"
},
Expand Down
1 change: 1 addition & 0 deletions examples/firebase/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"copy": "rimraf ../../docs/public/examples/firebase && cp -R out ../../docs/public/examples/firebase",
"start": "next start",
"lint": "next lint"
},
Expand Down
1 change: 1 addition & 0 deletions examples/rxdb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"copy": "rimraf ../../docs/public/examples/rxdb && cp -R out ../../docs/public/examples/rxdb",
"start": "next start",
"lint": "next lint"
},
Expand Down
1 change: 1 addition & 0 deletions examples/supabase/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"copy": "rimraf ../../docs/public/examples/supabase && cp -R out ../../docs/public/examples/supabase",
"start": "next start",
"lint": "next lint"
},
Expand Down
7 changes: 1 addition & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,8 @@
"coverage": "vitest run --coverage",
"build": "npm run build -ws",
"type-check": "tsc --noEmit",
"examples:copy": "npm run example:rxdb:copy && npm run example:firebase:copy && npm run example:appwrite:copy && npm run example:supabase:copy",
"example:rxdb:copy": "rimraf docs/public/examples/rxdb && cp -R examples/rxdb/out docs/public/examples/rxdb",
"example:firebase:copy": "rimraf docs/public/examples/firebase && cp -R examples/firebase/out docs/public/examples/firebase",
"example:appwrite:copy": "rimraf docs/public/examples/appwrite && cp -R examples/appwrite/out docs/public/examples/appwrite",
"example:supabase:copy": "rimraf docs/public/examples/supabase && cp -R examples/supabase/out docs/public/examples/supabase",
"docs:dev": "vitepress dev docs",
"docs:build": "npm run build && npm run examples:copy && vitepress build docs",
"docs:build": "npm run build && npm run copy -w examples && vitepress build docs",
"docs:preview": "vitepress preview docs"
},
"author": "Max Nowack <max.nowack@gmail.com>",
Expand Down

0 comments on commit a6effb9

Please sign in to comment.