A web-native NES development playground, with the intention of teaching NES/6502 development using assembly.
- Update all the dependencies - Add a new `svelte.config.js` file. For some reason, the Typescript integration was not working just by enabling the Svelte + Astro integration in `astro.config.mjs`. |
||
|---|---|---|
| .vscode | ||
| nesasm-wasm | ||
| public | ||
| src | ||
| .editorconfig | ||
| .gitignore | ||
| astro.config.mjs | ||
| LICENSE | ||
| LICENSE-nes-rust | ||
| package.json | ||
| README.md | ||
| svelte.config.js | ||
| tsconfig.json | ||
| yarn.lock | ||
NES development on the web
🚀 Project Structure
Inside of your Astro project, you'll see the following folders and files:
/
├── public/
│ └── favicon.svg
├── src/
│ ├── component-instances/
│ │ └── BackgroundColorDemo.svelte
│ ├── components/
│ │ └── NesRomRunner.svelte
│ ├── layouts/
│ │ └── Layout.astro
│ └── pages/
│ └── index.astro
└── package.json
Astro looks for .astro or .md files in the src/pages/ directory. Each page is exposed as a route based on its file name.
Any static assets, like images, can be placed in the public/ directory.
🧞 Commands
All commands are run from the root of the project, from a terminal:
| Command | Action |
|---|---|
yarn install |
Installs dependencies |
yarn run dev |
Starts local dev server at localhost:4321 |
yarn run build |
Build your production site to ./dist/ |
yarn run preview |
Preview your build locally, before deploying |
yarn run astro ... |
Run CLI commands like astro add, astro check |
yarn run astro -- --help |
Get help using the Astro CLI |
👀 Want to learn more?
Feel free to check our documentation or jump into our Discord server.