mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-04-27 02:27:41 -05:00
Switch .gitignore back to blacklist
VS Code's search feature doesn't support .gitignore whitelisting. :( (Also don't compile .d.ts files.)
This commit is contained in:
parent
31fcd418ec
commit
6475e7a268
10
.gitignore
vendored
10
.gitignore
vendored
|
|
@ -14,8 +14,14 @@ npm-debug.log
|
||||||
package-lock.json
|
package-lock.json
|
||||||
/vendor/
|
/vendor/
|
||||||
|
|
||||||
/js/battle.js
|
/js/server/
|
||||||
/js/
|
/js/*.js.map
|
||||||
|
/js/battle*.js
|
||||||
|
/js/panel*.js
|
||||||
|
/js/replay-embed.js
|
||||||
|
/js/client-main.js
|
||||||
|
/js/client-core.js
|
||||||
|
/js/client-connection.js
|
||||||
|
|
||||||
/replays/caches/
|
/replays/caches/
|
||||||
/replays/replay-config.inc.php
|
/replays/replay-config.inc.php
|
||||||
|
|
|
||||||
|
|
@ -127,6 +127,7 @@ function compileToDir(srcDir, destDir, opts = {}) {
|
||||||
if (!relative.endsWith('.ts') && !relative.endsWith('.tsx')) {
|
if (!relative.endsWith('.ts') && !relative.endsWith('.tsx')) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
if (relative.endsWith('.d.ts')) return 0;
|
||||||
|
|
||||||
relative = relative.slice(0, relative.endsWith('.tsx') ? -4 : -3) + '.js';
|
relative = relative.slice(0, relative.endsWith('.tsx') ? -4 : -3) + '.js';
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user