File tree 8 files changed +21
-20
lines changed
8 files changed +21
-20
lines changed Original file line number Diff line number Diff line change 6
6
< meta http-equiv ="X-UA-Compatible " content ="ie=edge " />
7
7
< title > ProjectManager</ title >
8
8
< link rel ="stylesheet " href ="app.css " />
9
- < script type ="module " src ="dist/app .js "> </ script >
9
+ < script type ="module " src ="dist/bundle .js "> </ script >
10
10
</ head >
11
11
< body >
12
12
< template id ="project-input ">
Original file line number Diff line number Diff line change 5
5
"main" : " app.js" ,
6
6
"scripts" : {
7
7
"test" : " echo \" Error: no test specified\" && exit 1" ,
8
- "start" : " lite-server"
8
+ "start" : " lite-server" ,
9
+ "build" : " webpack"
9
10
},
10
11
"author" : " DS" ,
11
12
"license" : " ISC" ,
Original file line number Diff line number Diff line change 1
- import { ProjectInput } from "./components/project-input.js " ;
2
- import { ProjectList } from "./components/project-list.js " ;
1
+ import { ProjectInput } from "./components/project-input" ;
2
+ import { ProjectList } from "./components/project-list" ;
3
3
4
4
new ProjectInput ( ) ;
5
5
new ProjectList ( "active" ) ;
Original file line number Diff line number Diff line change 1
- import Cmp from "./base-components.js " ;
2
- import { AutoBind as Autobind } from "../decorators/autobind.js " ;
3
- import { Validatable , validate } from "../util/validation.js " ;
4
- import { projectState } from "../state/project-state.js " ;
1
+ import Cmp from "./base-components" ;
2
+ import { AutoBind as Autobind } from "../decorators/autobind" ;
3
+ import { Validatable , validate } from "../util/validation" ;
4
+ import { projectState } from "../state/project-state" ;
5
5
6
6
//ProjectInput Class
7
7
export class ProjectInput extends Cmp < HTMLDivElement , HTMLFormElement > {
Original file line number Diff line number Diff line change 1
- import { Draggable } from "../models/drag-drop.js " ;
2
- import { Project } from "../models/project.js " ;
3
- import Component from "./base-components.js " ;
4
- import { AutoBind } from "../decorators/autobind.js " ;
1
+ import { Draggable } from "../models/drag-drop" ;
2
+ import { Project } from "../models/project" ;
3
+ import Component from "./base-components" ;
4
+ import { AutoBind } from "../decorators/autobind" ;
5
5
6
6
//Project Item Class
7
7
export class ProjectItem
Original file line number Diff line number Diff line change 1
- import Component from "./base-components.js " ;
2
- import { AutoBind } from "../decorators/autobind.js " ;
3
- import { Project , ProjectStatus } from "../models/project.js " ;
4
- import { DragTarget } from "../models/drag-drop.js " ;
5
- import { projectState } from "../state/project-state.js " ;
6
- import { ProjectItem } from "./project-item.js " ;
1
+ import Component from "./base-components" ;
2
+ import { AutoBind } from "../decorators/autobind" ;
3
+ import { Project , ProjectStatus } from "../models/project" ;
4
+ import { DragTarget } from "../models/drag-drop" ;
5
+ import { projectState } from "../state/project-state" ;
6
+ import { ProjectItem } from "./project-item" ;
7
7
8
8
//ProjectList Class
9
9
export class ProjectList
Original file line number Diff line number Diff line change 1
- import { Project , ProjectStatus } from "../models/project.js " ;
1
+ import { Project , ProjectStatus } from "../models/project" ;
2
2
3
3
// Project State Management
4
4
type Listener < T > = ( items : T [ ] ) => void ;
Original file line number Diff line number Diff line change 31
31
32
32
/* Modules */
33
33
"module" : " ES2015" /* Specify what module code is generated. */ ,
34
- "rootDir" : " ./src" /* Specify the root folder within your source files. */ ,
34
+ // "rootDir": "./src" /* Specify the root folder within your source files. */,
35
35
// "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
36
36
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
37
37
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
You can’t perform that action at this time.
0 commit comments