0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-12-23 13:19:01 -05:00

updated demo matter-tools

This commit is contained in:
liabru 2021-01-12 23:04:12 +00:00
parent be592fdddb
commit a694ae522a
6 changed files with 2852 additions and 2478 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

54
package-lock.json generated
View file

@ -1731,6 +1731,12 @@
}
}
},
"dat.gui": {
"version": "0.7.7",
"resolved": "https://registry.npmjs.org/dat.gui/-/dat.gui-0.7.7.tgz",
"integrity": "sha512-sRl/28gF/XRC5ywC9I4zriATTsQcpSsRG7seXCPnTkK8/EQMIbCu5NPMpICLGxX9ZEUvcXR3ArLYCtgreFoMDw==",
"dev": true
},
"eslint": {
"version": "6.8.0",
"resolved": "https://registry.npmjs.org/eslint/-/eslint-6.8.0.tgz",
@ -7558,12 +7564,60 @@
}
}
},
"jquery": {
"version": "3.5.1",
"resolved": "https://registry.npmjs.org/jquery/-/jquery-3.5.1.tgz",
"integrity": "sha512-XwIBPqcMn57FxfT+Go5pzySnm4KWkT1Tv7gjrpT1srtf8Weynl6R273VJ5GjkRb51IzMp5nbaPjJXMWeju2MKg==",
"dev": true
},
"json-stringify-pretty-compact": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/json-stringify-pretty-compact/-/json-stringify-pretty-compact-2.0.0.tgz",
"integrity": "sha512-WRitRfs6BGq4q8gTgOy4ek7iPFXjbra0H3PmDLKm2xnZ+Gh1HUhiKGgCZkSPNULlP7mvfu6FV/mOLhCarspADQ==",
"dev": true
},
"jstree": {
"version": "3.3.11",
"resolved": "https://registry.npmjs.org/jstree/-/jstree-3.3.11.tgz",
"integrity": "sha512-9ZJKroPjCyjb6JLPuAbBrLJKT6pS1f4m5gkwoEagG5oQWtvzm0IiDsntXTxeFtz7AmqrKfij+gLfF9MgWriNxg==",
"dev": true,
"requires": {
"jquery": ">=1.9.1"
},
"dependencies": {
"jquery": {
"version": "3.5.1",
"resolved": "https://registry.npmjs.org/jquery/-/jquery-3.5.1.tgz",
"integrity": "sha512-XwIBPqcMn57FxfT+Go5pzySnm4KWkT1Tv7gjrpT1srtf8Weynl6R273VJ5GjkRb51IzMp5nbaPjJXMWeju2MKg==",
"dev": true
}
}
},
"keymaster": {
"version": "1.6.2",
"resolved": "https://registry.npmjs.org/keymaster/-/keymaster-1.6.2.tgz",
"integrity": "sha1-4a5U0OqUiPn2C2a2aPAumhlGxus=",
"dev": true
},
"matter-js": {
"version": "0.15.0",
"resolved": "https://registry.npmjs.org/matter-js/-/matter-js-0.15.0.tgz",
"integrity": "sha512-+SXrgSz0IbbXo5pifWnw/IlWVrkrZXPI+2gMdvI6BCHpXrgRsmlj2wGKVBmjZC6qzBNM2ImqHCRuYhmEmwTOlA==",
"dev": true
},
"matter-tools": {
"version": "0.12.2",
"resolved": "https://registry.npmjs.org/matter-tools/-/matter-tools-0.12.2.tgz",
"integrity": "sha512-C9cyoT4guftKqCHYyqXmOVh8/R6JWtDQMcIpJ68r2s517VtmRfMSJktdUxZogZEaE0EbwxcvGbLSX3rfQPFH9Q==",
"dev": true,
"requires": {
"dat.gui": "^0.7.7",
"jquery": "^3.5.1",
"jstree": "^3.3.11",
"keymaster": "^1.6.2",
"matter-js": "^0.15.0"
}
},
"puppeteer-core": {
"version": "5.5.0",
"resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-5.5.0.tgz",

View file

@ -25,6 +25,7 @@
"jest": "^25.1.0",
"jest-worker": "^24.9.0",
"json-stringify-pretty-compact": "^2.0.0",
"matter-tools": "^0.12.2",
"puppeteer-core": "^5.5.0",
"webpack": "^4.46.0",
"webpack-cli": "^3.3.11",

View file

@ -60,7 +60,7 @@ License ${pkg.license}${!minimize ? '\n\n' + license : ''}`;
contentBase: [
path.resolve(__dirname, './demo'),
path.resolve(__dirname, './examples'),
path.resolve(__dirname, './build')
path.resolve(__dirname, './node_modules/matter-tools/build/')
],
open: true,
openPage: '',
@ -74,6 +74,18 @@ License ${pkg.license}${!minimize ? '\n\n' + license : ''}`;
'/examples': {
target: 'http://localhost:8000/',
pathRewrite: { '^/examples' : '/' }
},
'/lib/matter-tools.demo.js': {
target: 'http://localhost:8000/',
pathRewrite: { '^/lib/matter-tools.demo.js' : '/matter-tools.demo.js' }
},
'/lib/matter-tools.inspector.js': {
target: 'http://localhost:8000/',
pathRewrite: { '^/lib/matter-tools.inspector.js' : 'matter-tools.inspector.js' }
},
'/lib/matter-tools.gui.js': {
target: 'http://localhost:8000/',
pathRewrite: { '^/lib/matter-tools.gui.js' : 'matter-tools.gui.js' }
}
}
}