Skip to content

Commit 928a7d9

Browse files
Merge pull request #966 from ProvableHQ/fix/create-leo-app-vanilla-template-adjustments
WIP - create leo app vanilla template fixes
2 parents b90cb1a + b77d0f7 commit 928a7d9

File tree

9 files changed

+17
-11
lines changed

9 files changed

+17
-11
lines changed

.github/workflows/staging-website.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
override: true
2323
components: rustfmt, rust-src
2424

25-
- uses: actions/cache@v2
25+
- uses: actions/cache@v4
2626
with:
2727
path: |
2828
~/.cargo/registry

.github/workflows/test-website.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
override: true
2020
components: rustfmt, rust-src
2121

22-
- uses: actions/cache@v2
22+
- uses: actions/cache@v4
2323
with:
2424
path: |
2525
~/.cargo/registry

.github/workflows/website.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
override: true
2323
components: rustfmt, rust-src
2424

25-
- uses: actions/cache@v2
25+
- uses: actions/cache@v4
2626
with:
2727
path: |
2828
~/.cargo/registry

create-leo-app/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ npm create leo-app@latest
1313

1414
Then follow the prompts!
1515

16-
You can also directly specify the project name and the template you want to use via additional command line options. For example, to scaffold an Aleo + React project, run:
16+
You can also directly specify the project name you want to use via additional command line options. For example, to scaffold a Leo project, run:
1717

1818
```bash
1919
# npm 6.x
20-
npm create leo-app@latest my-leo-app --template react
20+
npm create leo-app@latest my-leo-app
2121

2222
# npm 7+, extra double-dash is needed:
23-
npm create leo-app@latest my-leo-app -- --template react
23+
npm create leo-app@latest my-leo-app
2424
```
2525

2626
Currently supported template presets include:

create-leo-app/template-react-leo/vite.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ import react from "@vitejs/plugin-react";
44
// https://vitejs.dev/config/
55
export default defineConfig({
66
plugins: [react()],
7+
assetsInclude: ['**/*.wasm'],
78
optimizeDeps: {
8-
exclude: ["@provablehq/wasm", "@provablehq/sdk"],
9+
exclude: ["@provablehq/wasm"],
910
},
1011
server: {
1112
headers: {

create-leo-app/template-react-managed-worker/vite.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ import react from "@vitejs/plugin-react";
33

44
// https://vitejs.dev/config/
55
export default defineConfig({
6+
assetsInclude: ['**/*.wasm'],
67
plugins: [react()],
78
optimizeDeps: {
8-
exclude: ["@provablehq/wasm", "@provablehq/sdk"],
9+
exclude: ["@provablehq/wasm"],
910
},
1011
server: {
1112
// Needed if you are linking local packages for development

create-leo-app/template-react-ts/vite.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ import react from "@vitejs/plugin-react";
33

44
// https://vitejs.dev/config/
55
export default defineConfig({
6+
assetsInclude: ['**/*.wasm'],
67
plugins: [react()],
78
optimizeDeps: {
8-
exclude: ["@provablehq/wasm", "@provablehq/sdk"],
9+
exclude: ["@provablehq/wasm"],
910
},
1011
server: {
1112
headers: {

create-leo-app/template-vanilla/vite.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import { defineConfig } from "vite";
2+
23
export default defineConfig({
4+
assetsInclude: ['**/*.wasm'],
35
optimizeDeps: {
4-
exclude: ["@provablehq/wasm", "@provablehq/sdk"],
6+
exclude: ["@provablehq/wasm",],
57
},
68
server: {
79
headers: {

website/vite.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import react from "@vitejs/plugin-react-swc";
33

44
// https://vitejs.dev/config/
55
export default defineConfig({
6+
assetsInclude: ['**/*.wasm'],
67
worker: {
78
format: "es",
89
},
@@ -12,7 +13,7 @@ export default defineConfig({
1213
sourcemap: true,
1314
},
1415
optimizeDeps: {
15-
exclude: ["@provablehq/wasm", "@provablehq/sdk"],
16+
exclude: ["@provablehq/wasm"],
1617
},
1718
server: {
1819
fs: {

0 commit comments

Comments
 (0)