adapted CI config and deploy script to the new angular/systemjs build
environment
This commit is contained in:
		
							parent
							
								
									c78d928805
								
							
						
					
					
						commit
						0b3a38af3c
					
				
					 2 changed files with 47 additions and 37 deletions
				
			
		|  | @ -1,42 +1,43 @@ | ||||||
| #variables: |  | ||||||
| #  NPMPATH: "node_modules/.bin" |  | ||||||
| 
 |  | ||||||
| stages: | stages: | ||||||
| #  - build |   - build | ||||||
| #  - cleanup_build |   - cleanup_build | ||||||
|   - deploy |   - deploy | ||||||
| #  - cleanup |   - cleanup | ||||||
| 
 | 
 | ||||||
| .run_deploy: &run_deploy | .run_deploy: &run_deploy | ||||||
|   script: |   script: | ||||||
|     - chmod +x ./deploy.sh |     - chmod +x ./deploy.sh | ||||||
|     - ./deploy.sh |     - ./deploy.sh | ||||||
| 
 | 
 | ||||||
| #build_job: | build_job: | ||||||
| #  stage: build |   stage: build | ||||||
| #  script: |   script: | ||||||
| #    - npm install |     - npm install | ||||||
| #    - $NPMPATH/bower install |   tags: | ||||||
| #    - $NPMPATH/grunt |     - javascript | ||||||
| #  tags: |   except: | ||||||
| #    - javascript |     - tags | ||||||
| #  except: |   artifacts: | ||||||
| #    - tags |     paths: | ||||||
| #  artifacts: |       - app/*.css | ||||||
| #    paths: |       - app/*.html | ||||||
| #      - dist/*.min.* |       - app/*.js | ||||||
| #      - info/ |       - app/*.js.map | ||||||
| #      - resources/ |       - node_modules/core-js/client/shim.js | ||||||
| #      - index.html |       - node_modules/zone.js/dist/zone.js | ||||||
| #      - manifest.appcache |       - node_modules/reflect-metadata/Reflect.js | ||||||
|  |       - node_modules/systemjs/dist/system.src.js | ||||||
|  |       - dencode.css | ||||||
|  |       - index.html | ||||||
|  |       - package.json | ||||||
|  |       - systemjs.config.js | ||||||
| 
 | 
 | ||||||
| #cleanup_build_job: | cleanup_build_job: | ||||||
| #  stage: cleanup_build |   stage: cleanup_build | ||||||
| #  script: |   script: | ||||||
| #    - rm -rf node_modules |     - rm -rf node_modules | ||||||
| #    - rm -rf bower_components |     - rm -rf typings | ||||||
| #    - rm -rf dist |   when: on_failure | ||||||
| #  when: on_failure |  | ||||||
| 
 | 
 | ||||||
| develop: | develop: | ||||||
|   stage: deploy |   stage: deploy | ||||||
|  | @ -70,9 +71,9 @@ production: | ||||||
|     ENVIRON: production |     ENVIRON: production | ||||||
|     TARGET: $WWW_DEPLOY_ROOT_PRODUCTION |     TARGET: $WWW_DEPLOY_ROOT_PRODUCTION | ||||||
| 
 | 
 | ||||||
| #cleanup_job: | cleanup_job: | ||||||
| #  stage: cleanup |   stage: cleanup | ||||||
| #  script: |   script: | ||||||
| #    - rm -rf node_modules |     - rm -rf node_modules | ||||||
| #    - rm -rf bower_components |     - rm -rf typings | ||||||
| #  when: always |   when: always | ||||||
|  |  | ||||||
							
								
								
									
										11
									
								
								deploy.sh
									
										
									
									
									
								
							
							
						
						
									
										11
									
								
								deploy.sh
									
										
									
									
									
								
							|  | @ -20,6 +20,15 @@ fi | ||||||
| 
 | 
 | ||||||
| rm -rf "${destination}/*" | rm -rf "${destination}/*" | ||||||
| rm -rf "${destination}/.??*" | rm -rf "${destination}/.??*" | ||||||
| cp -a dencode.css dencode.js index.html quoted-printable.js utf8.js "${destination}" | 
 | ||||||
|  | cp -a dencode.css index.html package.json systemjs.config.js "${destination}" | ||||||
|  | 
 | ||||||
|  | mkdir "${destination}/app" | ||||||
|  | cp -a app/*.css app/*.html app/*.js app/*.js.map "${destination}/app" | ||||||
|  | 
 | ||||||
|  | mkdir -p "${destination}/node_modules/{core-js/client,zone.js/dist,reflect-metadata,systemjs/dist}" | ||||||
|  | cp -a node_modules/core-js/client/shim.js "${destination}/node_modules/zone.js/dist" | ||||||
|  | cp -a node_modules/reflect-metadata/Reflect.js "${destination}/node_modules/reflect-metadata" | ||||||
|  | cp -a node_modules/systemjs/dist/system.src.js "${destination}/node_modules/systemjs/dist" | ||||||
| 
 | 
 | ||||||
| echo "Deployment successful." | echo "Deployment successful." | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue