Skip to content

Commit

Permalink
refactor: rename examples/js directory to examples/wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
RubixDev committed Sep 20, 2023
1 parent fc604c7 commit 1908906
Show file tree
Hide file tree
Showing 42 changed files with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,22 +205,22 @@ 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
npm run build
- 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
Expand All @@ -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
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 1908906

Please sign in to comment.