Skip to content

Commit

Permalink
Clean up ProjectCracker.fsi
Browse files Browse the repository at this point in the history
  • Loading branch information
nojaf committed Dec 1, 2023
1 parent 2ac39ed commit fc4f6a9
Showing 1 changed file with 2 additions and 87 deletions.
89 changes: 2 additions & 87 deletions src/Fable.Compiler/ProjectCracker.fsi
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,11 @@
/// Fable-specific tasks like tracking the sources of Fable Nuget packages
module Fable.Compiler.ProjectCracker

open System
open System.Xml.Linq
open System.Text.RegularExpressions
open System.Collections.Generic
open FSharp.Compiler.CodeAnalysis
open FSharp.Compiler.Text
open Fable
open Fable.AST
open Fable.Compiler.Util
open Globbing.Operators
open Buildalyzer

// type FablePackage =
// { Id: string
// Version: string
// FsprojPath: string
// DllPath: string
// SourcePaths: string list
// Dependencies: Set<string> }
//
type CacheInfo =
{
Version: string
Expand All @@ -39,14 +24,7 @@ type CacheInfo =
SourceMaps: bool
SourceMapsRoot: string option
}
//
// static member GetPath: fableModulesDir: string * isDebug: bool -> string
// member GetTimestamp: unit -> DateTime
// static member TryRead: fableModulesDir: string * isDebug: bool -> CacheInfo option
// member Write: unit -> unit
// /// Checks if there's also cache info for the alternate build mode (Debug/Release) and whether is more recent
// member IsMostRecent: bool
//

type CrackerOptions =
new: cliArgs: CliArgs -> CrackerOptions
member NoCache: bool
Expand Down Expand Up @@ -80,68 +58,5 @@ type CrackerResponse =
PrecompiledInfo: PrecompiledInfoImpl option
CanReuseCompiledFiles: bool
}
//
// val isSystemPackage: pkgName: string -> bool
//
// type CrackedFsproj =
// { ProjectFile: string
// SourceFiles: string list
// ProjectReferences: string list
// DllReferences: IDictionary<string, string>
// PackageReferences: FablePackage list
// OtherCompilerOptions: string list
// OutputType: string option
// TargetFramework: string }
//
// val makeProjectOptions:
// opts: CrackerOptions -> otherOptions: string seq -> sources: string array -> FSharpProjectOptions
//
// val tryGetFablePackage: opts: CrackerOptions -> dllPath: string -> FablePackage option
// val sortFablePackages: pkgs: FablePackage list -> FablePackage list
// val getBasicCompilerArgs: unit -> string array
// val MSBUILD_CONDITION: Regex
// /// Simplistic XML-parsing of .fsproj to get source files, as we cannot
// /// run `dotnet restore` on .fsproj files embedded in Nuget packages.
// val getSourcesFromFablePkg: opts: CrackerOptions -> projFile: string -> string list
// val excludeProjRef: opts: CrackerOptions -> dllRefs: IDictionary<string, string> -> projRef: string -> string option
//
// val getCrackedMainFsproj:
// opts: CrackerOptions ->
// projOpts: string array *
// projRefs: string array *
// msbuildProps: IReadOnlyDictionary<string, string> *
// targetFramework: string ->
// CrackedFsproj
//
// val getProjectOptionsFromScript: opts: CrackerOptions -> CrackedFsproj
//
// val getProjectOptionsFromProjectFile:
// (bool -> CrackerOptions -> string -> string array * string array * IReadOnlyDictionary<string, string> * string)
//
// /// Use Buildalyzer to invoke MSBuild and get F# compiler args from an .fsproj file.
// /// As we'll merge this later with other projects we'll only take the sources and
// /// the references, checking if some .dlls correspond to Fable libraries
// val crackMainProject: opts: CrackerOptions -> CrackedFsproj
//
// /// For project references of main project, ignore dll and package references
// val crackReferenceProject:
// opts: CrackerOptions -> dllRefs: IDictionary<string, string> -> projFile: string -> CrackedFsproj
//
// val getCrackedProjectsFromMainFsproj: opts: CrackerOptions -> CrackedFsproj list * CrackedFsproj
// val getCrackedProjects: opts: CrackerOptions -> CrackedFsproj list * CrackedFsproj
// val retryGetCrackedProjects: opts: CrackerOptions -> CrackedFsproj list * CrackedFsproj
// val changeFsprojToFableproj: path: string -> string
// val copyDir: replaceFsprojExt: bool -> source: string -> target: string -> unit
// val copyDirIfDoesNotExist: replaceFsprojExt: bool -> source: string -> target: string -> unit
// val getFableLibraryPath: opts: CrackerOptions -> string
// val copyFableLibraryAndPackageSources: opts: CrackerOptions -> pkgs: FablePackage list -> string * FablePackage list
// val copyFableLibraryAndPackageSourcesPy: opts: CrackerOptions -> pkgs: FablePackage list -> string * FablePackage list
// val removeFilesInObjFolder: sourceFiles: string array -> string array
//
// val loadPrecompiledInfo:
// opts: CrackerOptions ->
// otherOptions: string array ->
// sourceFiles: string array ->
// PrecompiledInfoImpl option * string array * string array
//

val getFullProjectOpts: opts: CrackerOptions -> CrackerResponse

0 comments on commit fc4f6a9

Please sign in to comment.