diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ff2bd794..c0993837 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -205,7 +205,7 @@ jobs: - name: Build Vite Demo run: | - cd examples/js/vite + cd examples/wasm/vite # set base directory to `/syntastica/demos/vite/` sed -i 's#defineConfig({#\0base:"/syntastica/demos/vite/",#g' vite.config.ts npm ci @@ -213,14 +213,14 @@ jobs: - name: Build Dioxus Demo run: | - cd examples/js/dioxus + cd examples/wasm/dioxus # set base directory to `/syntastica/demos/dioxus/` sed -i -E 's#(\[web.app\])#\1\nbase_path = "syntastica/demos/dioxus"#g' Dioxus.toml dx build --release - name: Build wasm-pack + NPM Demo run: | - cd examples/js/wasm-pack-with-npm-pkg + cd examples/wasm/wasm-pack-with-npm-pkg # set base directory to `/syntastica/demos/wasm-pack-npm/` sed -i 's#defineConfig({#\0base:"/syntastica/demos/wasm-pack-npm/",#g' vite.config.ts npm ci @@ -235,11 +235,11 @@ jobs: # create the `demos` folder mkdir -p target/doc/demos # copy over the vite demo - cp -r examples/js/vite/dist target/doc/demos/vite + cp -r examples/wasm/vite/dist target/doc/demos/vite # copy over the dioxus demo - cp -r examples/js/dioxus/dist target/doc/demos/dioxus + cp -r examples/wasm/dioxus/dist target/doc/demos/dioxus # copy over the wasm-pack-npm demo - cp -r examples/js/wasm-pack-with-npm-pkg/dist target/doc/demos/wasm-pack-npm + cp -r examples/wasm/wasm-pack-with-npm-pkg/dist target/doc/demos/wasm-pack-npm - name: Deploy Docs uses: JamesIves/github-pages-deploy-action@v4 diff --git a/examples/js/dioxus/.gitignore b/examples/wasm/dioxus/.gitignore similarity index 100% rename from examples/js/dioxus/.gitignore rename to examples/wasm/dioxus/.gitignore diff --git a/examples/js/dioxus/Cargo.toml b/examples/wasm/dioxus/Cargo.toml similarity index 100% rename from examples/js/dioxus/Cargo.toml rename to examples/wasm/dioxus/Cargo.toml diff --git a/examples/js/dioxus/Dioxus.toml b/examples/wasm/dioxus/Dioxus.toml similarity index 100% rename from examples/js/dioxus/Dioxus.toml rename to examples/wasm/dioxus/Dioxus.toml diff --git a/examples/js/dioxus/LICENSE b/examples/wasm/dioxus/LICENSE similarity index 100% rename from examples/js/dioxus/LICENSE rename to examples/wasm/dioxus/LICENSE diff --git a/examples/js/dioxus/README.md b/examples/wasm/dioxus/README.md similarity index 100% rename from examples/js/dioxus/README.md rename to examples/wasm/dioxus/README.md diff --git a/examples/js/dioxus/public/style.css b/examples/wasm/dioxus/public/style.css similarity index 100% rename from examples/js/dioxus/public/style.css rename to examples/wasm/dioxus/public/style.css diff --git a/examples/js/dioxus/src/main.rs b/examples/wasm/dioxus/src/main.rs similarity index 100% rename from examples/js/dioxus/src/main.rs rename to examples/wasm/dioxus/src/main.rs diff --git a/examples/js/node/.gitignore b/examples/wasm/node/.gitignore similarity index 100% rename from examples/js/node/.gitignore rename to examples/wasm/node/.gitignore diff --git a/examples/js/node/README.md b/examples/wasm/node/README.md similarity index 100% rename from examples/js/node/README.md rename to examples/wasm/node/README.md diff --git a/examples/js/node/index.js b/examples/wasm/node/index.js similarity index 100% rename from examples/js/node/index.js rename to examples/wasm/node/index.js diff --git a/examples/js/node/package-lock.json b/examples/wasm/node/package-lock.json similarity index 100% rename from examples/js/node/package-lock.json rename to examples/wasm/node/package-lock.json diff --git a/examples/js/node/package.json b/examples/wasm/node/package.json similarity index 100% rename from examples/js/node/package.json rename to examples/wasm/node/package.json diff --git a/examples/js/vite/.gitignore b/examples/wasm/vite/.gitignore similarity index 100% rename from examples/js/vite/.gitignore rename to examples/wasm/vite/.gitignore diff --git a/examples/js/vite/.vscode/extensions.json b/examples/wasm/vite/.vscode/extensions.json similarity index 100% rename from examples/js/vite/.vscode/extensions.json rename to examples/wasm/vite/.vscode/extensions.json diff --git a/examples/js/vite/README.md b/examples/wasm/vite/README.md similarity index 100% rename from examples/js/vite/README.md rename to examples/wasm/vite/README.md diff --git a/examples/js/vite/index.html b/examples/wasm/vite/index.html similarity index 100% rename from examples/js/vite/index.html rename to examples/wasm/vite/index.html diff --git a/examples/js/vite/package-lock.json b/examples/wasm/vite/package-lock.json similarity index 100% rename from examples/js/vite/package-lock.json rename to examples/wasm/vite/package-lock.json diff --git a/examples/js/vite/package.json b/examples/wasm/vite/package.json similarity index 100% rename from examples/js/vite/package.json rename to examples/wasm/vite/package.json diff --git a/examples/js/vite/src/App.svelte b/examples/wasm/vite/src/App.svelte similarity index 100% rename from examples/js/vite/src/App.svelte rename to examples/wasm/vite/src/App.svelte diff --git a/examples/js/vite/src/app.css b/examples/wasm/vite/src/app.css similarity index 100% rename from examples/js/vite/src/app.css rename to examples/wasm/vite/src/app.css diff --git a/examples/js/vite/src/main.ts b/examples/wasm/vite/src/main.ts similarity index 100% rename from examples/js/vite/src/main.ts rename to examples/wasm/vite/src/main.ts diff --git a/examples/js/vite/src/vite-env.d.ts b/examples/wasm/vite/src/vite-env.d.ts similarity index 100% rename from examples/js/vite/src/vite-env.d.ts rename to examples/wasm/vite/src/vite-env.d.ts diff --git a/examples/js/vite/svelte.config.js b/examples/wasm/vite/svelte.config.js similarity index 100% rename from examples/js/vite/svelte.config.js rename to examples/wasm/vite/svelte.config.js diff --git a/examples/js/vite/tsconfig.json b/examples/wasm/vite/tsconfig.json similarity index 100% rename from examples/js/vite/tsconfig.json rename to examples/wasm/vite/tsconfig.json diff --git a/examples/js/vite/tsconfig.node.json b/examples/wasm/vite/tsconfig.node.json similarity index 100% rename from examples/js/vite/tsconfig.node.json rename to examples/wasm/vite/tsconfig.node.json diff --git a/examples/js/vite/vite.config.ts b/examples/wasm/vite/vite.config.ts similarity index 100% rename from examples/js/vite/vite.config.ts rename to examples/wasm/vite/vite.config.ts diff --git a/examples/js/wasm-pack-with-npm-pkg/.gitignore b/examples/wasm/wasm-pack-with-npm-pkg/.gitignore similarity index 100% rename from examples/js/wasm-pack-with-npm-pkg/.gitignore rename to examples/wasm/wasm-pack-with-npm-pkg/.gitignore diff --git a/examples/js/wasm-pack-with-npm-pkg/.vscode/extensions.json b/examples/wasm/wasm-pack-with-npm-pkg/.vscode/extensions.json similarity index 100% rename from examples/js/wasm-pack-with-npm-pkg/.vscode/extensions.json rename to examples/wasm/wasm-pack-with-npm-pkg/.vscode/extensions.json diff --git a/examples/js/wasm-pack-with-npm-pkg/Cargo.toml b/examples/wasm/wasm-pack-with-npm-pkg/Cargo.toml similarity index 100% rename from examples/js/wasm-pack-with-npm-pkg/Cargo.toml rename to examples/wasm/wasm-pack-with-npm-pkg/Cargo.toml diff --git a/examples/js/wasm-pack-with-npm-pkg/README.md b/examples/wasm/wasm-pack-with-npm-pkg/README.md similarity index 100% rename from examples/js/wasm-pack-with-npm-pkg/README.md rename to examples/wasm/wasm-pack-with-npm-pkg/README.md diff --git a/examples/js/wasm-pack-with-npm-pkg/index.html b/examples/wasm/wasm-pack-with-npm-pkg/index.html similarity index 100% rename from examples/js/wasm-pack-with-npm-pkg/index.html rename to examples/wasm/wasm-pack-with-npm-pkg/index.html diff --git a/examples/js/wasm-pack-with-npm-pkg/package-lock.json b/examples/wasm/wasm-pack-with-npm-pkg/package-lock.json similarity index 100% rename from examples/js/wasm-pack-with-npm-pkg/package-lock.json rename to examples/wasm/wasm-pack-with-npm-pkg/package-lock.json diff --git a/examples/js/wasm-pack-with-npm-pkg/package.json b/examples/wasm/wasm-pack-with-npm-pkg/package.json similarity index 100% rename from examples/js/wasm-pack-with-npm-pkg/package.json rename to examples/wasm/wasm-pack-with-npm-pkg/package.json diff --git a/examples/js/wasm-pack-with-npm-pkg/src/app.css b/examples/wasm/wasm-pack-with-npm-pkg/src/app.css similarity index 100% rename from examples/js/wasm-pack-with-npm-pkg/src/app.css rename to examples/wasm/wasm-pack-with-npm-pkg/src/app.css diff --git a/examples/js/wasm-pack-with-npm-pkg/src/lib.rs b/examples/wasm/wasm-pack-with-npm-pkg/src/lib.rs similarity index 100% rename from examples/js/wasm-pack-with-npm-pkg/src/lib.rs rename to examples/wasm/wasm-pack-with-npm-pkg/src/lib.rs diff --git a/examples/js/wasm-pack-with-npm-pkg/src/main.ts b/examples/wasm/wasm-pack-with-npm-pkg/src/main.ts similarity index 100% rename from examples/js/wasm-pack-with-npm-pkg/src/main.ts rename to examples/wasm/wasm-pack-with-npm-pkg/src/main.ts diff --git a/examples/js/wasm-pack-with-npm-pkg/src/vite-env.d.ts b/examples/wasm/wasm-pack-with-npm-pkg/src/vite-env.d.ts similarity index 100% rename from examples/js/wasm-pack-with-npm-pkg/src/vite-env.d.ts rename to examples/wasm/wasm-pack-with-npm-pkg/src/vite-env.d.ts diff --git a/examples/js/wasm-pack-with-npm-pkg/tsconfig.json b/examples/wasm/wasm-pack-with-npm-pkg/tsconfig.json similarity index 100% rename from examples/js/wasm-pack-with-npm-pkg/tsconfig.json rename to examples/wasm/wasm-pack-with-npm-pkg/tsconfig.json diff --git a/examples/js/wasm-pack-with-npm-pkg/tsconfig.node.json b/examples/wasm/wasm-pack-with-npm-pkg/tsconfig.node.json similarity index 100% rename from examples/js/wasm-pack-with-npm-pkg/tsconfig.node.json rename to examples/wasm/wasm-pack-with-npm-pkg/tsconfig.node.json diff --git a/examples/js/wasm-pack-with-npm-pkg/vite.config.ts b/examples/wasm/wasm-pack-with-npm-pkg/vite.config.ts similarity index 100% rename from examples/js/wasm-pack-with-npm-pkg/vite.config.ts rename to examples/wasm/wasm-pack-with-npm-pkg/vite.config.ts diff --git a/examples/js/wasm-pack-with-npm-pkg/vite.md b/examples/wasm/wasm-pack-with-npm-pkg/vite.md similarity index 100% rename from examples/js/wasm-pack-with-npm-pkg/vite.md rename to examples/wasm/wasm-pack-with-npm-pkg/vite.md