Add some more basic tests 🤷‍♂️

This commit is contained in:
Webber
2020-01-27 23:03:29 +01:00
committed by Webber Takken
parent fe2311ef4b
commit 4051832dc0
9 changed files with 217 additions and 1 deletions

23
src/model/project.js Normal file
View File

@@ -0,0 +1,23 @@
import Unity from './unity';
import Input from './input';
import Action from './action';
class Project {
static get relativePath() {
const { projectPath } = Input.getFromUser();
return `${projectPath}`;
}
static get absolutePath() {
const { workspace } = Action;
return `${workspace}/${this.relativePath}`;
}
static get libraryFolder() {
return `${this.relativePath}/${Unity.libraryFolder}`;
}
}
export default Project;