{"id":17760688,"url":"https://github.com/mbasso/asm-dom-boilerplate","last_synced_at":"2025-03-15T09:31:45.243Z","repository":{"id":41128673,"uuid":"121645490","full_name":"mbasso/asm-dom-boilerplate","owner":"mbasso","description":"A simple boilerplate to start using asm-dom without configuration.","archived":false,"fork":false,"pushed_at":"2023-06-24T16:39:15.000Z","size":17,"stargazers_count":54,"open_issues_count":3,"forks_count":9,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-27T00:04:29.968Z","etag":null,"topics":["asmjs","vdom","vdom-library","virtual-dom","wasm","webassembly"],"latest_commit_sha":null,"homepage":"","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mbasso.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-15T15:27:39.000Z","updated_at":"2025-01-09T20:20:20.000Z","dependencies_parsed_at":"2022-09-07T20:21:00.716Z","dependency_job_id":null,"html_url":"https://github.com/mbasso/asm-dom-boilerplate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbasso%2Fasm-dom-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbasso%2Fasm-dom-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbasso%2Fasm-dom-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbasso%2Fasm-dom-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mbasso","download_url":"https://codeload.github.com/mbasso/asm-dom-boilerplate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243713357,"owners_count":20335564,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asmjs","vdom","vdom-library","virtual-dom","wasm","webassembly"],"created_at":"2024-10-26T19:07:40.789Z","updated_at":"2025-03-15T09:31:44.984Z","avatar_url":"https://github.com/mbasso.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# asm-dom-boilerplate\n\nA simple boilerplate to start using [asm-dom](https://github.com/mbasso/asm-dom) without configuration.\nThis includes:\n\n- `asm-dom`\n- `CPX support: JSX like syntax in C++`\n- `parcel-bundler` (`npm i --save-dev parcel-bundler@1.12.3`)\n- `autoprefixer`\n\nThe boilerplate automatically compiles C++ code to WebAssembly and asm.js, the client will dinamically require the first if supported, the second otherwise.\n\n## Prerequisites\n\n- [node](https://nodejs.org)\n- [npm](http://npmjs.com/)\n- [make](https://www.gnu.org/software/make/)\n- [emcc](http://webassembly.org/getting-started/developers-guide/)\n- [java](https://www.java.com)\n\nPlease make sure to have `emcc` set as an environment variable and the lastest version of `node` to make parcel work. So, to validate the installation, please run the following commands:\n\n```bash\nnode -v\nnpm -v\nmake -v\nemcc -v\njava -version\n```\n\n## Getting started\n\nClone and install dependencies:\n\n```bash\ngit clone https://github.com/mbasso/asm-dom-boilerplate.git\ncd asm-dom-boilerplate\nnpm install # or make install\n\n# if you are using windows, you have to make a little change to the Makefile in the root of the project, just open it and follow the instructions at the top\n\nnpm start # or make start\n```\n\nThen open `http://localhost:1234` to see the example app. You can now edit `index.cpp` and rerun `npm start` to recompile and see the changes.\n\n## Building for Production\n\n```bash\n# just run:\nmake\n```\n\nThis will compile your C++ and copy your `index.html` to the `dist` folder which you can deploy.\n\n## Makefile\n\nBy default the boilerplate preprocess the `.cpp` files in the `src` folder with [gccx](https://github.com/mbasso/gccx) and automatically includes them when compiling. If you want to include external dependencies or add some C flags, you can modify the `Makefile` in the root of the project.\n\n## CSS\n\n[Parcel uses PostCSS plugins to manage CSS assets](https://parceljs.org/transforms.html#postcss).\nThe boilerplate includes `autoprefixer` for vendor prefixing, you can find and modify the PostCSS setup in `.postcssrc`.\n\n## Authors\n\n**Matteo Basso**\n- [github/mbasso](https://github.com/mbasso)\n- [@teo_basso](https://twitter.com/teo_basso)\n\n## Copyright and License\nCopyright (c) 2018, Matteo Basso.\n\nasm-dom-boilerplate source code is licensed under the [MIT License](https://github.com/mbasso/asm-dom-boilerplate/blob/master/LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbasso%2Fasm-dom-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmbasso%2Fasm-dom-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbasso%2Fasm-dom-boilerplate/lists"}