Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thlorenz/babylon-plain-js
Project setup to hack on babylonjs apps using plain JavaScript with as little transpilation as possible.
https://github.com/thlorenz/babylon-plain-js
Last synced: 13 days ago
JSON representation
Project setup to hack on babylonjs apps using plain JavaScript with as little transpilation as possible.
- Host: GitHub
- URL: https://github.com/thlorenz/babylon-plain-js
- Owner: thlorenz
- License: mit
- Created: 2018-11-23T20:35:20.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-23T23:57:27.000Z (about 6 years ago)
- Last Synced: 2024-12-10T08:26:32.359Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# babylon-plain-js
Project setup to hack on [babylonjs](https://www.babylonjs.com/) apps using plain JavaScript
with as little transpilation as possible.## Installation
Clone this repo + run `npm install`.
## Usage
Run `npm start` to start watching and serving your game page.
Run `npm run build` to create a distributable version of your game inside `./dist`.
## Setup
[parceljs](https://parceljs.org/) is used to bundle and serve JavaScript.
As transpilation cannot be turned off entirely at this point the below setting in
`package.json` keeps transpilation to a mimimum during development.```js
"browserslist": {
"development": [
"last 1 chrome version"
]
}
```[hot module replacement](https://parceljs.org/hmr.html) is also enabled (see `./main.js`).
Basically the game is recreated with a new Canvas after the old Canvas was removed from the
page. This means that when serving your game via `npm start` you can simply make edits and save
and see the browser page update itself.## License
MIT