File tree Expand file tree Collapse file tree 6 files changed +27
-12
lines changed Expand file tree Collapse file tree 6 files changed +27
-12
lines changed Original file line number Diff line number Diff line change 5
5
},
6
6
"apps" : [{
7
7
"root" : " src" ,
8
- "outDir" : " dist/demo " ,
8
+ "outDir" : " dist" ,
9
9
"assets" : [
10
10
" assets" ,
11
11
" favicon.ico"
Original file line number Diff line number Diff line change @@ -29,3 +29,4 @@ script:
29
29
after_success :
30
30
# Send coverage info off to cloud ppl
31
31
- ./node_modules/.bin/codecov
32
+ - npm run deploy
Original file line number Diff line number Diff line change
1
+ const ghpages = require ( 'gh-pages' ) ;
2
+ const path = require ( 'path' ) ;
3
+
4
+ ghpages . publish ( 'dist' , {
5
+ repo : 'https://' + process . env . GH_TOKEN + '@github.com/' + process . env . TRAVIS_REPO_SLUG + '.git'
6
+ } , function ( err ) {
7
+ if ( err ) {
8
+ console . log ( err ) ;
9
+ } else {
10
+ console . log ( 'published gh-pages' ) ;
11
+ }
12
+ } ) ;
Original file line number Diff line number Diff line change @@ -41,6 +41,10 @@ module.exports = function (config) {
41
41
logLevel : config . LOG_INFO ,
42
42
autoWatch : true ,
43
43
browsers : [ 'Chrome' ] ,
44
- singleRun : false
44
+ singleRun : false ,
45
+ captureTimeout : 210 * 1000 ,
46
+ browserDisconnectTolerance : 3 ,
47
+ browserDisconnectTimeout : 210 * 1000 ,
48
+ browserNoActivityTimeout : 210 * 1000
45
49
} ) ;
46
50
} ;
Original file line number Diff line number Diff line change 9
9
"test" : " ng test" ,
10
10
"test-coverage" : " ng test --watch=false --code-coverage" ,
11
11
"e2e" : " ng e2e" ,
12
- "prebuild:lib" : " rimraf tmp dist/lib" ,
13
- "build:lib" : " gulp inline-templates && ngc -p tsconfig-lib.json && copyfiles package.json README.md LICENSE dist/lib" ,
14
- "postbuild:lib" : " rimraf tmp" ,
15
- "prebuild:demo" : " rimraf dist/demo" ,
16
- "build:demo" : " ng build --prod" ,
17
- "pub:lib" : " npm run build:lib && npm publish dist/lib" ,
18
- "pub:demo" : " npm run build:demo -- --base-href /ngx-treeview/ && gh-pages -d dist/demo" ,
19
- "pub" : " npm run pub:lib && npm run pub:demo"
12
+ "prebuild" : " rimraf tmp dist" ,
13
+ "build" : " gulp inline-templates && ngc -p tsconfig-lib.json && copyfiles package.json README.md LICENSE dist" ,
14
+ "postbuild" : " rimraf tmp" ,
15
+ "pub" : " npm run build && npm publish dist" ,
16
+ "predeploy" : " rimraf dist" ,
17
+ "deploy" : " ng build --prod --base-href /ngx-treeview/ && node gh-pages.js"
20
18
},
21
19
"keywords" : [
22
20
" ng" ,
Original file line number Diff line number Diff line change 2
2
"compileOnSave" : false ,
3
3
"compilerOptions" : {
4
4
"baseUrl" : " ." ,
5
- "outDir" : " ./dist/lib/ src" ,
5
+ "outDir" : " ./dist/src" ,
6
6
"target" : " es5" ,
7
7
"module" : " es2015" ,
8
8
"moduleResolution" : " node" ,
25
25
"skipTemplateCodegen" : true ,
26
26
"strictMetadataEmit" : true
27
27
}
28
- }
28
+ }
You can’t perform that action at this time.
0 commit comments