Skip to content
Snippets Groups Projects
Verified Commit da02b8ba authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

feat: renaming of examples into frontends

Better exaplains the structure of the repository
parent eb360860
No related branches found
No related tags found
1 merge request!16Support for Game Boy Color (CGB) 😎🖍️
Pipeline #1621 passed
Showing
with 14 additions and 14 deletions
...@@ -6,4 +6,4 @@ Cargo.lock ...@@ -6,4 +6,4 @@ Cargo.lock
/target /target
/res/roms.prop /res/roms.prop
/examples/*/target /frontends/*/target
...@@ -43,18 +43,18 @@ build-wasm: ...@@ -43,18 +43,18 @@ build-wasm:
- rustup override set $RUST_VERSION - rustup override set $RUST_VERSION
- rustc --version - rustc --version
- cargo install wasm-pack - cargo install wasm-pack
- wasm-pack build --release --target=web --out-dir=examples/web/lib -- --features wasm - wasm-pack build --release --target=web --out-dir=frontends/web/lib -- --features wasm
- cd examples/web && npm install && npm run build - cd frontends/web && npm install && npm run build
artifacts: artifacts:
paths: paths:
- examples/web/dist - frontends/web/dist
- examples/web/lib - frontends/web/lib
expire_in: 1 day expire_in: 1 day
deploy-netlify-preview: deploy-netlify-preview:
stage: deploy stage: deploy
script: script:
- cd examples/web/dist - cd frontends/web/dist
- cp -rp ../static/* . - cp -rp ../static/* .
- npm_config_yes=true npx --package=netlify-cli netlify deploy --dir=. - npm_config_yes=true npx --package=netlify-cli netlify deploy --dir=.
dependencies: dependencies:
...@@ -65,7 +65,7 @@ deploy-netlify-preview: ...@@ -65,7 +65,7 @@ deploy-netlify-preview:
deploy-netlify-prod: deploy-netlify-prod:
stage: deploy stage: deploy
script: script:
- cd examples/web/dist - cd frontends/web/dist
- cp -rp ../static/* . - cp -rp ../static/* .
- npm_config_yes=true npx --package=netlify-cli netlify deploy --dir=. --prod - npm_config_yes=true npx --package=netlify-cli netlify deploy --dir=. --prod
dependencies: dependencies:
...@@ -76,7 +76,7 @@ deploy-netlify-prod: ...@@ -76,7 +76,7 @@ deploy-netlify-prod:
deploy-cloudfare-master: deploy-cloudfare-master:
stage: deploy stage: deploy
script: script:
- cd examples/web/dist - cd frontends/web/dist
- cp -rp ../static/* . - cp -rp ../static/* .
- npm_config_yes=true npx wrangler pages publish . --project-name=boytacean --branch master - npm_config_yes=true npx wrangler pages publish . --project-name=boytacean --branch master
dependencies: dependencies:
...@@ -87,7 +87,7 @@ deploy-cloudfare-master: ...@@ -87,7 +87,7 @@ deploy-cloudfare-master:
deploy-cloudfare-stable: deploy-cloudfare-stable:
stage: deploy stage: deploy
script: script:
- cd examples/web/dist - cd frontends/web/dist
- cp -rp ../static/* . - cp -rp ../static/* .
- npm_config_yes=true npx wrangler pages publish . --project-name=boytacean --branch stable - npm_config_yes=true npx wrangler pages publish . --project-name=boytacean --branch stable
dependencies: dependencies:
...@@ -98,7 +98,7 @@ deploy-cloudfare-stable: ...@@ -98,7 +98,7 @@ deploy-cloudfare-stable:
deploy-cloudfare-prod: deploy-cloudfare-prod:
stage: deploy stage: deploy
script: script:
- cd examples/web/dist - cd frontends/web/dist
- cp -rp ../static/* . - cp -rp ../static/* .
- npm_config_yes=true npx wrangler pages publish . --project-name=boytacean --branch prod - npm_config_yes=true npx wrangler pages publish . --project-name=boytacean --branch prod
dependencies: dependencies:
...@@ -120,7 +120,7 @@ deploy-npm: ...@@ -120,7 +120,7 @@ deploy-npm:
stage: deploy stage: deploy
script: script:
- echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc - echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
- cd examples/web/lib && npm publish - cd frontends/web/lib && npm publish
dependencies: dependencies:
- build-wasm - build-wasm
only: only:
......
...@@ -26,5 +26,5 @@ opt-level = 3 ...@@ -26,5 +26,5 @@ opt-level = 3
[workspace] [workspace]
members = [ members = [
".", ".",
"examples/sdl", "frontends/sdl",
] ]
...@@ -44,8 +44,8 @@ wasm-pack build --release --target=nodejs -- --features wasm ...@@ -44,8 +44,8 @@ wasm-pack build --release --target=nodejs -- --features wasm
```bash ```bash
cargo install wasm-pack cargo install wasm-pack
wasm-pack build --release --target=web --out-dir=examples/web/lib -- --features wasm wasm-pack build --release --target=web --out-dir=frontends/web/lib -- --features wasm
cd examples/web cd frontends/web
npm install && npm run build npm install && npm run build
cd dist && python3 -m http.server cd dist && python3 -m http.server
``` ```
......
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment