mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-03-21 17:50:29 -05:00
Add sourceMaps and vscode debug configurations (#1707)
* launch json * vscode updates * clientUrl rename
This commit is contained in:
parent
e1ab227783
commit
1f3c8cf450
3
.babelrc
3
.babelrc
|
|
@ -31,5 +31,6 @@
|
|||
],
|
||||
"compact": true,
|
||||
"comments": false,
|
||||
"retainLines": true
|
||||
"retainLines": true,
|
||||
"sourceMaps": true
|
||||
}
|
||||
|
|
|
|||
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -13,7 +13,6 @@ Thumbs.db
|
|||
npm-debug.log
|
||||
package-lock.json
|
||||
/vendor/
|
||||
.vscode
|
||||
|
||||
/js/battle.js
|
||||
/js/battledata.js
|
||||
|
|
@ -43,6 +42,7 @@ package-lock.json
|
|||
/js/panel-teamdropdown.js
|
||||
/js/panel-battle.js
|
||||
/js/replay-embed.js
|
||||
/js/*.js.map
|
||||
|
||||
/replays/caches/
|
||||
/replays/replay-config.inc.php
|
||||
|
|
|
|||
23
.vscode/launch.json
vendored
Normal file
23
.vscode/launch.json
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Chrome: Test Client Beta (Preact)",
|
||||
"port": 9222,
|
||||
"request": "launch",
|
||||
"url": "${config:showdown.clientUrl}/testclient-beta.html${config:showdown.server}",
|
||||
"type": "pwa-chrome",
|
||||
"webRoot": "${workspaceFolder}",
|
||||
"preLaunchTask": "npm: build"
|
||||
},
|
||||
{
|
||||
"name": "Chrome: Test Client",
|
||||
"port": 9222,
|
||||
"request": "launch",
|
||||
"url": "${config:showdown.clientUrl}/testclient.html${config:showdown.server}",
|
||||
"type": "pwa-chrome",
|
||||
"webRoot": "${workspaceFolder}",
|
||||
"preLaunchTask": "npm: build"
|
||||
}
|
||||
]
|
||||
}
|
||||
5
.vscode/settings.json
vendored
Normal file
5
.vscode/settings.json
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"editor.formatOnSave": false,
|
||||
"showdown.server": "", // e.g., "?~~localhost:8000"
|
||||
"showdown.clientUrl": "http://localhost:8080"
|
||||
}
|
||||
|
|
@ -82,7 +82,7 @@ if (process.argv[2] === 'full') {
|
|||
} catch (e) {}
|
||||
}
|
||||
|
||||
child_process.execSync(`node build-tools/babel-cli/bin/babel.js src --out-dir js --extensions ".ts,.tsx" --incremental${ignoreGraphics}`);
|
||||
child_process.execSync(`node build-tools/babel-cli/bin/babel.js src --out-dir js --extensions ".ts,.tsx" --incremental${ignoreGraphics} --source-maps`);
|
||||
|
||||
let textData = '';
|
||||
try {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user