add release build. Use FPS Camera and better input.

This commit is contained in:
Julian
2020-02-18 18:02:37 +01:00
parent 0fa7230d07
commit 7231fd7964
4 changed files with 53 additions and 16 deletions

View File

@@ -4,8 +4,11 @@
"description": "Simulating a ocean with typescript and webgl.",
"main": "index.html",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "tsc && browserify ./build/main.js -o ./build/app.js"
"livedev": "concurrently --kill-others \"npm-watch\"",
"build:release": "tsc && browserify ./build/main.js | uglifyjs > ./build/app.js",
"build:debug": "tsc && browserify --debug ./build/main.js -o ./build/app.js",
"build:tsc": "tsc",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"webgl",
@@ -20,7 +23,9 @@
"devDependencies": {
"@types/gl-matrix": "^2.4.5",
"browserify": "^16.5.0",
"typescript": "^3.7.5"
"concurrently": "^5.1.0",
"typescript": "^3.7.5",
"uglifyjs": "^2.4.11"
},
"dependencies": {
"gl-matrix": "^3.1.0"