Setting up flow for resolvers.
Repo structure classes should be responsible for pulling versioned files. Ex. /forge/1.14/ -> get the latest file (or only allow one file). The resolver then gets that file to work with in order to resolve the forge module, pull its libs, and attach them as submodules.
This commit is contained in:
13
src/resolver/baseresolver.ts
Normal file
13
src/resolver/baseresolver.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { Module } from '../model/spec/module'
|
||||
import { Resolver } from './resolver'
|
||||
|
||||
export abstract class BaseResolver implements Resolver {
|
||||
|
||||
constructor(
|
||||
protected absoluteRoot: string,
|
||||
protected relativeRoot: string
|
||||
) {}
|
||||
|
||||
public abstract getModule(): Promise<Module>
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user