0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-11-30 10:20:52 -05:00

added examples to dev server bundle and commit built examples

This commit is contained in:
liabru 2020-12-05 23:32:47 +00:00
parent 864452db04
commit fe80478725
5 changed files with 5714 additions and 47 deletions

1
.gitignore vendored
View file

@ -7,7 +7,6 @@ RELEASE.md
build/matter-dev.js build/matter-dev.js
build/matter-dev.min.js build/matter-dev.min.js
demo/js/lib/matter-dev.js demo/js/lib/matter-dev.js
demo/js/Examples.js
demo/js/Examples.min.js demo/js/Examples.min.js
examples/build examples/build
test/browser/diffs test/browser/diffs

View file

@ -16,6 +16,9 @@
<script type="text/javascript" src="./lib/decomp.js"></script> <script type="text/javascript" src="./lib/decomp.js"></script>
<script type="text/javascript" src="./lib/pathseg.js"></script> <script type="text/javascript" src="./lib/pathseg.js"></script>
<!-- Examples -->
<script src="./js/Examples.js"></script>
<!-- Matter --> <!-- Matter -->
<script src="../build/matter.js"></script> <script src="../build/matter.js"></script>
@ -28,51 +31,6 @@
<!-- Plugins --> <!-- Plugins -->
<script src="./lib/matter-wrap.js"></script> <script src="./lib/matter-wrap.js"></script>
<!-- Examples -->
<script src="../examples/airFriction.js"></script>
<script src="../examples/avalanche.js"></script>
<script src="../examples/ballPool.js"></script>
<script src="../examples/bridge.js"></script>
<script src="../examples/broadphase.js"></script>
<script src="../examples/car.js"></script>
<script src="../examples/catapult.js"></script>
<script src="../examples/chains.js"></script>
<script src="../examples/circleStack.js"></script>
<script src="../examples/cloth.js"></script>
<script src="../examples/collisionFiltering.js"></script>
<script src="../examples/compositeManipulation.js"></script>
<script src="../examples/compound.js"></script>
<script src="../examples/compoundStack.js"></script>
<script src="../examples/concave.js"></script>
<script src="../examples/constraints.js"></script>
<script src="../examples/doublePendulum.js"></script>
<script src="../examples/events.js"></script>
<script src="../examples/friction.js"></script>
<script src="../examples/gravity.js"></script>
<script src="../examples/gyro.js"></script>
<script src="../examples/manipulation.js"></script>
<script src="../examples/mixed.js"></script>
<script src="../examples/newtonsCradle.js"></script>
<script src="../examples/ragdoll.js"></script>
<script src="../examples/pyramid.js"></script>
<script src="../examples/raycasting.js"></script>
<script src="../examples/restitution.js"></script>
<script src="../examples/rounded.js"></script>
<script src="../examples/sensors.js"></script>
<script src="../examples/sleeping.js"></script>
<script src="../examples/slingshot.js"></script>
<script src="../examples/softBody.js"></script>
<script src="../examples/sprites.js"></script>
<script src="../examples/stack.js"></script>
<script src="../examples/staticFriction.js"></script>
<script src="../examples/stress.js"></script>
<script src="../examples/stress2.js"></script>
<script src="../examples/svg.js"></script>
<script src="../examples/terrain.js"></script>
<script src="../examples/timescale.js"></script>
<script src="../examples/views.js"></script>
<script src="../examples/wreckingBall.js"></script>
<style type="text/css"> <style type="text/css">
* { * {
box-sizing: border-box; box-sizing: border-box;

5705
demo/js/Examples.js Normal file

File diff suppressed because it is too large Load diff

3
demo/js/Server.js Normal file
View file

@ -0,0 +1,3 @@
// bundle entry point for the development server
Example = require('../../examples/index.js');
module.exports = require('../../src/module/main.js');

View file

@ -24,8 +24,10 @@ module.exports = (env = {}) => {
${alpha ? alphaInfo : ''}${pkg.homepage} ${alpha ? alphaInfo : ''}${pkg.homepage}
License ${pkg.license}${!minimize ? '\n\n' + license : ''}`; License ${pkg.license}${!minimize ? '\n\n' + license : ''}`;
const entry = isDevServer ? './demo/js/Server.js' : './src/module/main.js';
return { return {
entry: { [name]: './src/module/main.js' }, entry: { [name]: entry },
output: { output: {
library: 'Matter', library: 'Matter',
libraryTarget: 'umd', libraryTarget: 'umd',