File tree 10 files changed +40
-52
lines changed
10 files changed +40
-52
lines changed Original file line number Diff line number Diff line change 19
19
},
20
20
"homepage" : " https://github.com/Protocore-UI/protocore-typescript-edition#readme" ,
21
21
"dependencies" : {
22
+ "@types/crossroads" : " 0.0.29" ,
23
+ "@types/handlebars" : " ^4.0.31" ,
24
+ "@types/hasher" : " 0.0.28" ,
25
+ "@types/jquery" : " ^2.0.33" ,
26
+ "@types/signals" : " 0.0.17" ,
22
27
"body-parser" : " ~1.14.2" ,
23
28
"cookie-parser" : " ~1.3.2" ,
24
29
"crossroads" : " ^0.12.2" ,
Original file line number Diff line number Diff line change 1
- import signals from "signals" ;
2
- import hasher from "hasher" ;
3
- import crossroads from "crossroads" ;
1
+ import * as signals from "signals" ;
2
+ import * as hasher from "hasher" ;
3
+ import * as crossroads from "crossroads" ;
4
4
5
- import HomeView from '../views/homeView.ts ' ;
5
+ import HomeView from '../views/homeView' ;
6
6
import HomeTemplate from '../templates/homeTpl.handlebars' ;
7
7
8
- import AboutView from '../views/aboutView.ts ' ;
8
+ import AboutView from '../views/aboutView' ;
9
9
import AboutTemplate from '../templates/aboutTpl.handlebars' ;
10
10
11
11
let router = crossroads . create ( ) ;
12
12
13
- let parseHash = ( newHash ) => {
13
+ let parseHash = ( newHash : any ) => {
14
14
router . parse ( newHash ) ;
15
15
} ;
16
16
Original file line number Diff line number Diff line change 1
- import $ from "jquery" ;
1
+ import * as $ from "jquery" ;
2
2
3
- class BaseView {
3
+ export default class BaseView {
4
4
el : string ;
5
5
6
6
template : string ;
@@ -18,5 +18,3 @@ class BaseView {
18
18
$ ( this . el ) . html ( this . template ) ;
19
19
}
20
20
} ;
21
-
22
- export default BaseView ;
Original file line number Diff line number Diff line change 1
- import BaseView from './_baseView.ts ' ;
1
+ import BaseView from './_baseView' ;
2
2
3
- class AboutView extends BaseView {
3
+ export default class AboutView extends BaseView {
4
4
constructor ( params : any ) {
5
5
super ( params ) ;
6
6
console . log ( 'LOG: Initialize AboutView' ) ;
@@ -18,5 +18,3 @@ class AboutView extends BaseView {
18
18
console . log ( "LOG: AboutView Events Hash" ) ;
19
19
}
20
20
} ;
21
-
22
- export default AboutView ;
Original file line number Diff line number Diff line change 1
- import BaseView from './_baseView.ts ' ;
1
+ import BaseView from './_baseView' ;
2
2
3
- class HomeView extends BaseView {
3
+ export default class HomeView extends BaseView {
4
4
constructor ( params : any ) {
5
5
super ( params ) ;
6
6
console . log ( 'LOG: Initialize HomeView' ) ;
@@ -17,6 +17,4 @@ class HomeView extends BaseView {
17
17
eventsHash ( ) {
18
18
console . log ( "LOG: HomeView Events Hash" ) ;
19
19
}
20
- }
21
-
22
- export default HomeView ;
20
+ } ;
Original file line number Diff line number Diff line change 1
- // import './stylesheets/less/_consolidate.less';
1
+ import './stylesheets/less/_consolidate.less' ;
2
2
3
- import './apps/router/routes.ts ' ;
3
+ import './apps/router/routes' ;
Original file line number Diff line number Diff line change 1
1
{
2
+ "compileOnSave" : true ,
2
3
"compilerOptions" : {
3
- "target" : " es5" ,
4
- "sourceMap" : false ,
4
+ "outDir" : " ./dist/" ,
5
+ "sourceMap" : true ,
6
+ "noImplicitAny" : true ,
5
7
"module" : " commonjs" ,
6
- "moduleResolution" : " node" ,
7
- "allowJs " : true ,
8
- "allowSyntheticDefaultImports " : true
8
+ "moduleResolution" : " node" ,
9
+ "target " : " es5 " ,
10
+ "removeComments " : true
9
11
},
10
- "exclude" : [
12
+ "include" : [
13
+ " src/**/*"
14
+ ],
15
+ "exclude" : [
11
16
" node_modules"
12
17
]
13
18
}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
{
2
2
"globalDependencies" : {
3
- "es6-shim" : " github:DefinitelyTyped/DefinitelyTyped/es6-shim/es6-shim.d.ts#7de6c3dd94feaeb21f20054b9f30d5dabc5efabd"
3
+ "crossroads" : " registry:dt/crossroads#0.0.0+20160317120654" ,
4
+ "es6-shim" : " github:DefinitelyTyped/DefinitelyTyped/es6-shim/es6-shim.d.ts#7de6c3dd94feaeb21f20054b9f30d5dabc5efabd" ,
5
+ "handlebars" : " registry:dt/handlebars#4.0.5+20160804082238" ,
6
+ "hasher" : " registry:dt/hasher#0.0.0+20160317120654" ,
7
+ "jquery" : " registry:dt/jquery#1.10.0+20160929162922" ,
8
+ "js-signals" : " registry:dt/js-signals#0.0.0+20160316155526"
4
9
}
5
10
}
Original file line number Diff line number Diff line change @@ -31,16 +31,16 @@ var config = {
31
31
test : / \. ( j p g | j p e g | p n g | g i f | s v g ) $ / i,
32
32
loader : 'file'
33
33
} , {
34
- test : / \. h a n d l e b a r s $ / i,
34
+ test : / \. h a n d l e b a r s ? $ / i,
35
35
loader : 'handlebars-loader'
36
36
} , {
37
37
test : / \. ( t t f | e o t | s v g ) ( \? v = [ 0 - 9 ] \. [ 0 - 9 ] \. [ 0 - 9 ] ) ? $ / ,
38
38
loader : "file"
39
39
} , {
40
- test : / \. l e s s $ / ,
40
+ test : / \. l e s s ? $ / ,
41
41
loader : 'style-loader!css-loader!less-loader'
42
42
} , {
43
- test : / \. c s s $ / ,
43
+ test : / \. c s s ? $ / ,
44
44
loader : 'style-loader!css-loader'
45
45
} , {
46
46
test : / \. w o f f ( 2 ) ? ( \? v = [ 0 - 9 ] \. [ 0 - 9 ] \. [ 0 - 9 ] ) ? $ / ,
You can’t perform that action at this time.
0 commit comments