From 5516ca96b51e393a08fa3023a2c61766228f4869 Mon Sep 17 00:00:00 2001 From: Steven Hugg Date: Fri, 25 Oct 2019 20:55:50 -0500 Subject: [PATCH] refactored into composite typescript project (multiple tsconfig.json files) --- Makefile | 2 +- embed.html | 27 +-- index.html | 44 ++-- package-lock.json | 259 ++++++++++++---------- package.json | 6 +- src/{ => common}/analysis.ts | 0 src/{ => common}/audio.ts | 0 src/{ => common}/audio/testz80worker.html | 0 src/{ => common}/audio/votrax.js | 0 src/{ => common}/audio/z80worker.js | 0 src/{ => common}/baseplatform.ts | 0 src/{ => common}/cpu/6809.js | 0 src/{ => common}/cpu/MOS6502.ts | 0 src/{ => common}/cpu/ZilogZ80.ts | 0 src/{ => common}/cpu/buildz80.js | 0 src/{ => common}/cpu/disasm6502.ts | 0 src/{ => common}/cpu/disasmz80.ts | 0 src/{ => common}/cpu/z80.coffee | 0 src/{ => common}/cpu/z80.js | 0 src/{ => common}/devices.ts | 0 src/{ => common}/emu.ts | 4 +- src/{ => common}/recorder.ts | 0 src/common/tsconfig.json | 10 + src/{ => common}/util.ts | 0 src/{ => common}/video/tms9918a.ts | 0 src/{ => common}/workertypes.ts | 0 src/{ => ide}/embedui.ts | 8 +- src/{pixed => ide}/pixeleditor.ts | 4 +- src/{ => ide}/project.ts | 6 +- src/{ => ide}/services.ts | 4 +- src/{ => ide}/store.ts | 0 src/ide/tsconfig.json | 13 ++ src/{ => ide}/ui.ts | 10 +- src/{ => ide}/views.ts | 14 +- src/{ => ide}/vlist.ts | 0 src/{ => ide}/waveform.ts | 2 +- src/{ => ide}/windows.ts | 2 +- src/machine/apple2.ts | 8 +- src/machine/astrocade.ts | 10 +- src/machine/atari7800.ts | 10 +- src/machine/c64.ts | 8 +- src/machine/coleco.ts | 12 +- src/machine/kim1.ts | 8 +- src/machine/msx.ts | 12 +- src/machine/mw8080bw.ts | 8 +- src/machine/sms.ts | 12 +- src/machine/tsconfig.json | 13 ++ src/machine/vdp_z80.ts | 10 +- src/machine/vicdual.ts | 8 +- src/platform/apple2.ts | 6 +- src/platform/astrocade.ts | 6 +- src/platform/atari7800.ts | 4 +- src/platform/atari8.ts | 8 +- src/platform/c64.ts | 4 +- src/platform/coleco.ts | 4 +- src/platform/galaxian.ts | 8 +- src/platform/kim1.ts | 6 +- src/platform/markdown.ts | 4 +- src/platform/msx.ts | 4 +- src/platform/mw8080bw.ts | 6 +- src/platform/nes.ts | 14 +- src/platform/script.ts | 4 +- src/platform/sms.ts | 4 +- src/platform/sound_konami.ts | 6 +- src/platform/sound_williams.ts | 10 +- src/platform/tsconfig.json | 15 ++ src/platform/vcs.ts | 10 +- src/platform/vector.ts | 8 +- src/platform/verilog.ts | 12 +- src/platform/vicdual.ts | 6 +- src/platform/williams.ts | 8 +- src/worker/tsconfig.json | 13 ++ src/worker/workermain.ts | 2 +- test/cli/6502/test6502disasm.js | 2 +- test/cli/6502/test6502sim.js | 4 +- test/cli/testdecoder.js | 2 +- test/cli/testgithub.js | 8 +- test/cli/testpixelconvert.js | 2 +- test/cli/testplatforms.js | 14 +- test/cli/teststore.js | 6 +- test/cli/testutil.js | 4 +- test/cli/testverilog.js | 2 +- test/cli/z80/testz80disasm.js | 2 +- test/cli/z80/testzexall.js | 4 +- test/cli/z80/z80test.js | 2 +- tsconfig-base.json | 18 ++ tsconfig.json | 37 ++-- 87 files changed, 459 insertions(+), 354 deletions(-) rename src/{ => common}/analysis.ts (100%) rename src/{ => common}/audio.ts (100%) rename src/{ => common}/audio/testz80worker.html (100%) rename src/{ => common}/audio/votrax.js (100%) rename src/{ => common}/audio/z80worker.js (100%) rename src/{ => common}/baseplatform.ts (100%) rename src/{ => common}/cpu/6809.js (100%) rename src/{ => common}/cpu/MOS6502.ts (100%) rename src/{ => common}/cpu/ZilogZ80.ts (100%) rename src/{ => common}/cpu/buildz80.js (100%) rename src/{ => common}/cpu/disasm6502.ts (100%) rename src/{ => common}/cpu/disasmz80.ts (100%) rename src/{ => common}/cpu/z80.coffee (100%) rename src/{ => common}/cpu/z80.js (100%) rename src/{ => common}/devices.ts (100%) rename src/{ => common}/emu.ts (99%) rename src/{ => common}/recorder.ts (100%) create mode 100644 src/common/tsconfig.json rename src/{ => common}/util.ts (100%) rename src/{ => common}/video/tms9918a.ts (100%) rename src/{ => common}/workertypes.ts (100%) rename src/{ => ide}/embedui.ts (96%) rename src/{pixed => ide}/pixeleditor.ts (99%) rename src/{ => ide}/project.ts (98%) rename src/{ => ide}/services.ts (99%) rename src/{ => ide}/store.ts (100%) create mode 100644 src/ide/tsconfig.json rename src/{ => ide}/ui.ts (99%) rename src/{ => ide}/views.ts (99%) rename src/{ => ide}/vlist.ts (100%) rename src/{ => ide}/waveform.ts (99%) rename src/{ => ide}/windows.ts (98%) create mode 100644 src/machine/tsconfig.json create mode 100644 src/platform/tsconfig.json create mode 100644 src/worker/tsconfig.json create mode 100644 tsconfig-base.json diff --git a/Makefile b/Makefile index f8d50034..1404b911 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ -TSC=./node_modules/typescript/bin/tsc +TSC=./node_modules/typescript/bin/tsc --build all: cp nanoasm/src/assembler.ts src/worker/ diff --git a/embed.html b/embed.html index b5405b2f..d8e664b5 100644 --- a/embed.html +++ b/embed.html @@ -54,9 +54,9 @@ if (window.location.host.endsWith('8bitworkshop.com')) { - + - + @@ -75,20 +75,17 @@ function require(modname) { - - - - - - - - - - - - - + + + + + + + + + + diff --git a/index.html b/index.html index 44ab85a2..1242173c 100644 --- a/index.html +++ b/index.html @@ -534,30 +534,30 @@ function require(modname) { - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - - - + + +