This repository was archived by the owner on Dec 4, 2017. It is now read-only.
File tree 5 files changed +46
-14
lines changed
public/docs/_examples/upgrade-phonecat-2-hybrid/ts
5 files changed +46
-14
lines changed Original file line number Diff line number Diff line change 1
1
** /* .js
2
- aot /** /* .ts
2
+ aot /** /*
3
+ ! aot /bs-config.json
4
+ ! aot /index.html
5
+ ! copy-dist-files.js
3
6
! rollup-config.js
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
<!-- #docregion -->
2
- <!DOCTYPE html>
3
- < html >
2
+ <!doctype html>
3
+ < html lang =" en " >
4
4
< head >
5
- < base href ="/ ">
6
- < title > Angular Tour of Heroes</ title >
7
- < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
5
+ < meta charset ="utf-8 ">
8
6
9
- < link rel ="stylesheet " href ="styles.css ">
7
+ < base href ="/app/ ">
8
+
9
+ < title > Google Phone Gallery</ title >
10
+ < link rel ="stylesheet " href ="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css " />
11
+ < link rel ="stylesheet " href ="app.css " />
12
+ < link rel ="stylesheet " href ="app.animations.css " />
10
13
11
14
< script src ="https://code.jquery.com/jquery-2.2.4.js "> </ script >
12
15
< script src ="https://code.angularjs.org/1.5.5/angular.js "> </ script >
22
25
< script src ="phone-list/phone-list.module.js "> </ script >
23
26
< script src ="phone-detail/phone-detail.module.js "> </ script >
24
27
25
- < script src ="shim.min.js "> </ script >
26
- < script src ="zone.min.js "> </ script >
27
- <!-- #docregion moduleId -->
28
+ < script src ="/node_modules/core-js/client/ shim.min.js "> </ script >
29
+ < script src ="/node_modules/zone.js/dist/ zone.min.js "> </ script >
30
+
28
31
< script > window . module = 'aot' ; </ script >
29
- <!-- #enddocregion moduleId -->
30
32
</ head >
31
33
32
34
< body >
33
- < my-app > Loading...</ my-app >
35
+ < div class ="view-container ">
36
+ < div ng-view class ="view-frame "> </ div >
37
+ </ div >
34
38
</ body >
35
- < script src ="dist/build.js "> </ script >
39
+ < script src ="/ dist/build.js "> </ script >
36
40
</ html >
Original file line number Diff line number Diff line change
1
+ // #docregion
2
+ var fsExtra = require ( 'fs-extra' ) ;
3
+ var resources = [
4
+ // polyfills
5
+ 'node_modules/core-js/client/shim.min.js' ,
6
+ 'node_modules/zone.js/dist/zone.min.js' ,
7
+ // css
8
+ 'app/app.css' ,
9
+ 'app/app.animations.css' ,
10
+ // images and json files
11
+ 'app/img/' ,
12
+ 'app/phones/' ,
13
+ // app files
14
+ 'app/app.module.ng1.js' ,
15
+ 'app/app.config.js' ,
16
+ 'app/app.animations.js' ,
17
+ 'app/core/core.module.js' ,
18
+ 'app/core/phone/phone.module.js' ,
19
+ 'app/phone-list/phone-list.module.js' ,
20
+ 'app/phone-detail/phone-detail.module.js'
21
+ ] ;
22
+ resources . map ( function ( sourcePath ) {
23
+ var destPath = `aot/${ sourcePath } ` ;
24
+ fsExtra . copySync ( sourcePath , destPath ) ;
25
+ } ) ;
Original file line number Diff line number Diff line change 27
27
28
28
<!-- #docregion ng2 -->
29
29
< script src ="/node_modules/core-js/client/shim.min.js "> </ script >
30
- < script src ="/node_modules/zone.js/dist/zone.js "> </ script >
30
+ < script src ="/node_modules/zone.js/dist/zone.min. js "> </ script >
31
31
< script src ="/node_modules/reflect-metadata/Reflect.js "> </ script >
32
32
< script src ="/node_modules/systemjs/dist/system.src.js "> </ script >
33
33
<!-- #enddocregion ng2 -->
You can’t perform that action at this time.
0 commit comments