Skip to content

Commit

Permalink
Clean up imports
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Apr 1, 2024
1 parent d0515e8 commit f7d6ef5
Show file tree
Hide file tree
Showing 32 changed files with 19 additions and 50 deletions.
1 change: 0 additions & 1 deletion kmake/src/AssetConverter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import * as fs from 'kmake/fsextra';
import * as path from 'path';
import * as log from 'kmake/log';
import * as crypto from 'crypto';
import { Options } from 'kmake/Options';
import { Exporter } from 'kmake/Exporters/Exporter';

export class AssetConverter {
Expand Down
1 change: 0 additions & 1 deletion kmake/src/ClCompile.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Block } from './Block';
import { Configuration } from './Configuration';
import { Platform } from './Platform';

function toLine(options: any) {
Expand Down
1 change: 0 additions & 1 deletion kmake/src/Exporters/AndroidExporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { Architecture } from 'kmake/Architecture';
import { Options } from 'kmake/Options';
import * as Icon from 'kmake/Icon';
import * as fs from 'kmake/fsextra';
import { execSync } from 'child_process';
import * as os from 'os';
import * as path from 'path';
import { CompilerCommandsExporter } from 'kmake/Exporters/CompileCommandsExporter';
Expand Down
4 changes: 0 additions & 4 deletions kmake/src/Exporters/CLionExporter.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import { Project } from 'kmake/Project';
import * as fs from 'kmake/fsextra';
import * as path from 'path';
import { Platform } from 'kmake/Platform';
import * as log from 'kmake/log';
import * as os from 'os';
import * as child_process from 'child_process';
import { Exporter } from 'kmake/Exporters/Exporter';
import { CMakeExporter } from 'kmake/Exporters/CMakeExporter';

Expand Down
5 changes: 0 additions & 5 deletions kmake/src/Exporters/CMakeExporter.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
import { Project } from 'kmake/Project';
import * as fs from 'kmake/fsextra';
import * as path from 'path';
import { Platform } from 'kmake/Platform';
import * as log from 'kmake/log';
import * as os from 'os';
import * as child_process from 'child_process';
import { Exporter } from 'kmake/Exporters/Exporter';

export class CMakeExporter extends Exporter {
Expand Down
1 change: 0 additions & 1 deletion kmake/src/Exporters/FreeBSDExporter.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Exporter } from 'kmake/Exporters/Exporter';
import { GraphicsApi } from 'kmake/GraphicsApi';
import { Options } from 'kmake/Options';
import { Platform } from 'kmake/Platform';
import { Project } from 'kmake/Project';
Expand Down
3 changes: 0 additions & 3 deletions kmake/src/Exporters/JsonExporter.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import { Exporter } from 'kmake/Exporters/Exporter';
import { Project } from 'kmake/Project';
import { Options } from 'kmake/Options';
import { GraphicsApi } from 'kmake/GraphicsApi';
import * as fs from 'kmake/fsextra';
import * as path from 'path';

export class JsonExporter extends Exporter {
Expand Down
3 changes: 0 additions & 3 deletions kmake/src/Exporters/MakeExporter.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import { Exporter } from 'kmake/Exporters/Exporter';
import { Options } from 'kmake/Options';
import { Platform } from 'kmake/Platform';
import { Project } from 'kmake/Project';
import { Compiler } from 'kmake/Compiler';
import * as fs from 'kmake/fsextra';
import * as path from 'path';

Expand Down
3 changes: 0 additions & 3 deletions kmake/src/Exporters/NinjaExporter.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import { Exporter } from 'kmake/Exporters/Exporter';
import { Options } from 'kmake/Options';
import { Platform } from 'kmake/Platform';
import { Project } from 'kmake/Project';
import { Compiler } from 'kmake/Compiler';
import * as fs from 'kmake/fsextra';
import * as path from 'path';

Expand Down
2 changes: 0 additions & 2 deletions kmake/src/Exporters/XCodeExporter.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { Exporter } from 'kmake/Exporters/Exporter';
import { GraphicsApi } from 'kmake/GraphicsApi';
import * as Icon from 'kmake/Icon';
import { Platform } from 'kmake/Platform';
import { Options } from 'kmake/Options';
import { Project } from 'kmake/Project';
import * as Proj from 'kmake/Project';
import * as fs from 'kmake/fsextra';
Expand Down
2 changes: 0 additions & 2 deletions kmake/src/Icon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ import * as log from 'kmake/log';
import * as exec from 'kmake/exec';
import * as cp from 'child_process';
import * as fs from 'fs';
import * as os from 'os';
import * as path from 'path';
import { Project } from 'kmake/Project';

function run(from: string, to: string, width: number, height: number, format: string, background: number, callback: any) {
const exe = path.resolve(__dirname, 'kraffiti' + exec.sys());
Expand Down
2 changes: 1 addition & 1 deletion kmake/src/Languages/BeefLang.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// import * as idl from 'webidl2'; // TODO
import { Language } from './Language';
import * as path from 'path';
//import * as path from 'path';

export class BeefLang extends Language {
constructor() {
Expand Down
2 changes: 1 addition & 1 deletion kmake/src/Languages/Language.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as fs from '../fsextra';
import * as path from 'path';
//import * as path from 'path';
// import * as idl from 'webidl2'; // TODO

export abstract class Language {
Expand Down
2 changes: 0 additions & 2 deletions kmake/src/ShaderCompiler.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import * as child_process from 'child_process';
import * as fs from 'kmake/fsextra';
import * as os from 'os';
import * as path from 'path';
import {GraphicsApi} from 'kmake/GraphicsApi';
import {Options} from 'kmake/Options';
import {Platform} from 'kmake/Platform';
import {AssetConverter} from 'kmake/AssetConverter';
import * as log from 'kmake/log';

export interface Variable {
Expand Down
5 changes: 0 additions & 5 deletions kmake/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import * as path from 'path';
import * as fs from 'kmake/fsextra';
import * as log from 'kmake/log';
import { GraphicsApi } from 'kmake/GraphicsApi';
import { AudioApi } from 'kmake/AudioApi';
import { Options } from 'kmake/Options';
import { Project } from 'kmake/Project';
import { Platform } from 'kmake/Platform';
Expand All @@ -17,10 +16,6 @@ import { WasmExporter } from 'kmake/Exporters/WasmExporter';
import { VisualStudioExporter } from 'kmake/Exporters/VisualStudioExporter';
import { XCodeExporter } from 'kmake/Exporters/XCodeExporter';
import { VSCodeExporter } from 'kmake/Exporters/VSCodeExporter';
import { Language } from 'kmake/Languages/Language';
import { Languages } from 'kmake/Languages';
// import * as idl from 'webidl2'; // TODO
import { BeefLang } from 'kmake/Languages/BeefLang';
import { FreeBSDExporter } from 'kmake/Exporters/FreeBSDExporter';
import { JsonExporter } from 'kmake/Exporters/JsonExporter';
import { Compiler } from 'kmake/Compiler';
Expand Down
2 changes: 1 addition & 1 deletion lib/kmake/AssetConverter.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f7d6ef5

Please sign in to comment.