All Projects → RaananW → Babylonjs Webpack Es6

RaananW / Babylonjs Webpack Es6

Licence: apache-2.0
Babylon.js basic scene with typescript, webpack, es6 modules, editorconfig, eslint, hot loading and more. Will even make coffee if you ask nicely.

Programming Languages

typescript
32286 projects

Labels

Projects that are alternatives of or similar to Babylonjs Webpack Es6

Leo Javascript
欢迎关注公众号“前端自习课”,本仓库包含丰富的 JavaScript 学习资料,包括 JavaScript、前端框架、HTTP、GraphQL、TS、Webpack等,还有很多我的原创文章,喜欢的朋友欢迎stat。🚀持续更新中...
Stars: ✭ 647 (+1220.41%)
Mutual labels:  webpack4
Kanban React
The Kanban Application with multiple backend languages.
Stars: ✭ 15 (-69.39%)
Mutual labels:  webpack4
Tris Webpack Boilerplate
A Webpack boilerplate for static websites that has all the necessary modern tools and optimizations built-in. Score a perfect 10/10 on performance.
Stars: ✭ 1,016 (+1973.47%)
Mutual labels:  webpack4
React Design Editor
React Design Editor has started to developed direct manipulation of editable design tools like Powerpoint, We've developed it with reactjs, ant.design, fabricjs
Stars: ✭ 687 (+1302.04%)
Mutual labels:  webpack4
Easy Vue
Learn vueJS Easily 👻
Stars: ✭ 896 (+1728.57%)
Mutual labels:  webpack4
Webpack4
Webpack4 + Typescript + React 踩坑配置之旅
Stars: ✭ 28 (-42.86%)
Mutual labels:  webpack4
Cordova Template Framework7 Vue Webpack
Framework7 - Vue - Webpack Cordova Template with Webpack Dev Server and Hot Module Replacement
Stars: ✭ 630 (+1185.71%)
Mutual labels:  webpack4
React Redux Antdesign Webpack Starter
react + redux + ant design + react-router 4 + webpack 4 starter
Stars: ✭ 44 (-10.2%)
Mutual labels:  webpack4
Webpackery
Webpack 4 Orchestration Layer allows for automated async code splitting of anything
Stars: ✭ 26 (-46.94%)
Mutual labels:  webpack4
Web Extension Starter
🖥🔋Web Extension starter to build "Write Once Run on Any Browser" extension
Stars: ✭ 987 (+1914.29%)
Mutual labels:  webpack4
React Boilerplate
🔥 A highly scalable, offline-first foundation with the best developer experience and a focus on performance and best practices.
Stars: ✭ 28,151 (+57351.02%)
Mutual labels:  webpack4
React Latest Framework
a client framework of React
Stars: ✭ 835 (+1604.08%)
Mutual labels:  webpack4
Html Sass Babel Webpack Boilerplate
Webpack 4 + Babel + ES6 + SASS + HTML Modules + Livereload
Stars: ✭ 35 (-28.57%)
Mutual labels:  webpack4
Vue Admin Webapp
this is a admin project
Stars: ✭ 673 (+1273.47%)
Mutual labels:  webpack4
Push Starter
React Redux Starter with SSR 🤖
Stars: ✭ 43 (-12.24%)
Mutual labels:  webpack4
Webpack Demos
📦 Demos && Courses for Webpack 4
Stars: ✭ 632 (+1189.8%)
Mutual labels:  webpack4
Reactspa
combination of react teconology stack
Stars: ✭ 911 (+1759.18%)
Mutual labels:  webpack4
Html Inline Css Webpack Plugin
☄️ A webpack plugin for convert external stylesheet to the embedded stylesheet
Stars: ✭ 48 (-2.04%)
Mutual labels:  webpack4
Typescript Hapi React Hot Loader Example
Simple TypeScript React Hot Loading example with Hapi Server-side rendering
Stars: ✭ 44 (-10.2%)
Mutual labels:  webpack4
Figmagic Example
Using Figmagic (simplifying design token generation and asset extraction) with Webpack 5, React 16, Styled Components.
Stars: ✭ 37 (-24.49%)
Mutual labels:  webpack4

Babylon.js, webpack and es6 modules

A Babylon.js sample project using typescript, latest babylon.js es6 core module, webpack 4 with webpack dev server, hot loading, eslint, vscode support and more.

Before getting started

This is a basic demo using Babylon's core module only. It is based on the Getting started guide at the documentation page. A lot of the engine's features are not covered here. I will slowly add more and more projects and more examples.

If you have any questions, you are very much invited to the Babylon.js forum where I am hanging around almost daily.

Getting started

To run the basic scene:

  1. Clone / download this repository
  2. run npm install to install the needed dependencies.
  3. run npm start
  4. A new window should open in your default browser. if it doesn't, open http://localhost:8080
  5. ????
  6. Profit

Running npm start will start the webpack dev server with hot-reloading turned on. Open your favorite editor (mine is VSCode, but you can use nano. we don't discriminate) and start editing.

The entry point for the entire TypeScript application is ./src/index.ts. Any other file imported in this file will be included in the build.

To debug, open the browser's dev tool. Source maps are ready to be used. In case you are using VSCode, simply run the default debugger task (Launch Chrome against localhost) while making sure npm start is still running. This will allow you to debug your application straight in your editor.

Loading different examples

The ./src/scenes directory contains a few examples of scenes that can be loaded. To load a specific scene, add a ?scene=FILENAME to the URL (i.e. to load the ammo physics demo, use http://localhost:8080/?scene=physicsWithAmmo).

More and more scenes will be slowly added.

What else can I do

To lint your source code run npm run lint

To build the bundle in order to host it, run npm run build. This will bundle your code in production mode, meaning is will minify the code.

Building will take some time, as it will build each sample (and create a different module for each). If you want to speed up the process, define the scene you want to render in createScene.ts (you can see the comment there)

What is this

That's an abstract question! What is which one of those wonderful things?

Babylon.js is the world's leading WebGL engine that starts with a 'b'. You should give it a try and leave those other numbers and letters behind. To read more about it and see some amazing samples, go to the Babylon.js website, Babylon's Playground or Babylon's documentation.

The rest? You should know already, this is why you are here.

What is covered

  • Latest typescript version
  • Simple texture loading (using url-loader)
  • dev-server will start on command (webpack-dev-server)
  • A working core-only example of babylon
  • Full debugging with any browser AND VS Code
  • (production) bundle builder.
  • eslint default typescript rules integrated
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].