Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
niksoc-hi committed Feb 11, 2019
1 parent f099bbc commit df0a967
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 23 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "dist/index.js",
"scripts": {
"test": "tsc && jasmine dist/**/*.spec.js",
"dev": "tsc --watch | nodemon --inspect ./dist/index.js --watch dist"
"dev": "tsc --watch | nodemon --inspect ./dist/src/index.js --watch dist"
},
"author": "",
"license": "ISC",
Expand All @@ -18,4 +18,4 @@
"tslint": "^5.12.1",
"typescript": "^3.3.3"
}
}
}
6 changes: 3 additions & 3 deletions spec/AllocationManagerImpl.spec.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import Allocation from '../src/Allocation';
import AllocationManagerImpl from '../src/AllocationManagerImpl';
import ArrayModelStore from '../src/ArrayModelStore';
import Developer from '../src/Developer';
import Project from '../src/Project';
import Allocation from '../src/models/Allocation';
import Developer from '../src/models/Developer';
import Project from '../src/models/Project';
import Technology from '../src/Technology';

describe('AllocationManagerImpl', function () {
Expand Down
4 changes: 2 additions & 2 deletions src/AllocationManager.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Developer from './Developer';
import Project from './Project';
import Developer from './models/Developer';
import Project from './models/Project';
import Technology from './Technology';

export default interface AllocationManager {
Expand Down
6 changes: 3 additions & 3 deletions src/AllocationManagerImpl.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import Allocation from './Allocation';
import AllocationManager from './AllocationManager';
import Developer from './Developer';
import Allocation from './models/Allocation';
import Developer from './models/Developer';
import Project from './models/Project';
import ModelStore from './ModelStore';
import Project from './Project';
import Technology from './Technology';

export default class AllocationManagerImpl implements AllocationManager {
Expand Down
9 changes: 5 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Developer from "./Developer";
import { developerStore } from "./stores";
import Technology from "./Technology";
import Developer from './models/Developer';
import { developerStore } from './stores';
import Technology from './Technology';

const d = new Developer();

Expand All @@ -9,4 +9,5 @@ d.knownTechnologies = [Technology.JAVA, Technology.PYTHON];

developerStore.add(d);

console.log(developerStore.getById(1));
console.log(developerStore.getById(1));

4 changes: 2 additions & 2 deletions src/Allocation.ts → src/models/Allocation.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Model from './Model';
import Technology from './Technology';
import Model from '../Model';
import Technology from '../Technology';

export default class Allocation extends Model {
developerId: number;
Expand Down
4 changes: 2 additions & 2 deletions src/Developer.ts → src/models/Developer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Model from './Model';
import Technology from './Technology';
import Model from '../Model';
import Technology from '../Technology';

export default class Developer extends Model {
name: string;
Expand Down
4 changes: 2 additions & 2 deletions src/Project.ts → src/models/Project.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Model from './Model';
import Technology from './Technology';
import Model from '../Model';
import Technology from '../Technology';

export default class Project extends Model {
name: string;
Expand Down
6 changes: 3 additions & 3 deletions src/stores.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Allocation from './Allocation';
import ArrayModelStore from './ArrayModelStore';
import Developer from './Developer';
import Project from './Project';
import Allocation from './models/Allocation';
import Developer from './models/Developer';
import Project from './models/Project';

export const developerStore = new ArrayModelStore<Developer>();
export const projectStore = new ArrayModelStore<Project>();
Expand Down

0 comments on commit df0a967

Please sign in to comment.