Skip to content

Commit 13f5129

Browse files
committed
Website: move demo build dir out of public/
The build-emscripten directory should not be served by local development web servers. Ensure there is no accidental dependency by moving the build directory outside the public folder. The CI scripts already have the build directory outside the public folder.
1 parent 8b418c4 commit 13f5129

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

website/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
/build-emscripten/
12
/node_modules/

website/public/demo/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
/build-emscripten/
21
/dist/

website/public/demo/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
To build the demo, install the [emscripten SDK][emscripten-sdk] and
44
[Ninja][], then run the following commands:
55

6-
$ cd website/public/demo # Navigate to this directory.
7-
$ emcmake cmake -S ../../.. -B build-emscripten -G Ninja -DCMAKE_BUILD_TYPE=Release
6+
$ cd website
7+
$ emcmake cmake -S .. -B build-emscripten -G Ninja -DCMAKE_BUILD_TYPE=Release
88
$ emmake ninja -C build-emscripten quick-lint-js-wasm-demo quick-lint-js-wasm-demo-licenses
9-
$ emmake cmake --install build-emscripten --component wasm-demo --prefix .
9+
$ emmake cmake --install build-emscripten --component wasm-demo --prefix public/demo
1010

1111
To run the demo on your own machine, execute the build instructions above, then
1212
run a static file server in the `website` directory:

0 commit comments

Comments
 (0)