init
This commit is contained in:
		
						commit
						b72fecbbec
					
				
							
								
								
									
										40
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										40
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,40 @@ | ||||
| # Vendor dll build | ||||
| dlls | ||||
| 
 | ||||
| # compiled output | ||||
| /dist | ||||
| /tmp | ||||
| 
 | ||||
| # dependencies | ||||
| /node_modules | ||||
| 
 | ||||
| # IDEs and editors | ||||
| /.idea | ||||
| .project | ||||
| .classpath | ||||
| .c9/ | ||||
| *.launch | ||||
| .settings/ | ||||
| *.sublime-workspace | ||||
| 
 | ||||
| # IDE - VSCode | ||||
| .vscode/* | ||||
| !.vscode/settings.json | ||||
| !.vscode/tasks.json | ||||
| !.vscode/launch.json | ||||
| !.vscode/extensions.json | ||||
| .history/* | ||||
| 
 | ||||
| # misc | ||||
| /.sass-cache | ||||
| /connect.lock | ||||
| /coverage | ||||
| /libpeerconnection.log | ||||
| npm-debug.log | ||||
| yarn-error.log | ||||
| testem.log | ||||
| /typings | ||||
| 
 | ||||
| # System Files | ||||
| .DS_Store | ||||
| Thumbs.db | ||||
							
								
								
									
										5
									
								
								build/dev/Jenkinsfile
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								build/dev/Jenkinsfile
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,5 @@ | ||||
| stage ('production build') { | ||||
|     steps { | ||||
|         sh 'npm run build' | ||||
|     } | ||||
| } | ||||
							
								
								
									
										5
									
								
								build/prod/Jenkinsfile
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								build/prod/Jenkinsfile
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,5 @@ | ||||
| stage ('production build') { | ||||
|     steps { | ||||
|         sh 'npm run build:prod' | ||||
|     } | ||||
| } | ||||
							
								
								
									
										4
									
								
								clone/Jenkinsfile
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								clone/Jenkinsfile
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,4 @@ | ||||
| def loadApp(String addr) { | ||||
|         sh 'git clone ${addr} ./' | ||||
|     } | ||||
| } | ||||
							
								
								
									
										6
									
								
								install/Jenkinsfile
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								install/Jenkinsfile
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,6 @@ | ||||
| stage('install') { | ||||
|     steps { | ||||
|         echo 'starting installing' | ||||
|         sh 'npm install' | ||||
|     } | ||||
| } | ||||
							
								
								
									
										22
									
								
								predeploy/Jenkinsfile
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								predeploy/Jenkinsfile
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,22 @@ | ||||
| stage ('predeploy') { | ||||
|     steps { | ||||
|         echo 'checking tag' | ||||
|         script { | ||||
|             if (sh(returnStdout: true, script: "git tag --contains").trim()) { | ||||
|                 def tag = sh(returnStdout: true, script: "git tag --contains").trim() | ||||
|                 echo 'found tag ' + tag | ||||
|                 sh "cd dist ; echo 'mkdir ${tag}; mv ./master/* ./${tag}; rm -r -d ./master; rm version.sh' > version.sh" | ||||
|             } else { | ||||
|                 echo 'tag not found' | ||||
|                 sh "cd dist ; echo 'rm version.sh' > version.sh" | ||||
|             } | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|     stage ('archiving') { | ||||
|         steps { | ||||
|             // Archive the build output artifacts. | ||||
|             archiveArtifacts artifacts: 'dist/*' | ||||
|         } | ||||
|     } | ||||
| } | ||||
							
								
								
									
										7
									
								
								prepare/Jenkinsfile
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								prepare/Jenkinsfile
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,7 @@ | ||||
| stage('prepare') { | ||||
|     steps { | ||||
|         sh 'rm -rf .[!.]*' | ||||
|         sh 'rm -rf ./*' | ||||
|         sh 'ls -a' | ||||
|     } | ||||
| } | ||||
							
								
								
									
										14
									
								
								publish/Jenkinsfile
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								publish/Jenkinsfile
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,14 @@ | ||||
| stage ('publish') { | ||||
|     steps { | ||||
|         echo 'checking tag' | ||||
|         script { | ||||
|             def tag = sh(returnStdout: true, script: "git tag --contains").trim() | ||||
|             if (tag) { | ||||
|                 echo 'found tag ' + tag | ||||
|                 sh 'npm publish' | ||||
|             } else { | ||||
|                 echo 'tag not found' | ||||
|             } | ||||
|         } | ||||
|     } | ||||
| } | ||||
							
								
								
									
										10
									
								
								stats/Jenkinsfile
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								stats/Jenkinsfile
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,10 @@ | ||||
| stage('stats') { | ||||
|     steps { | ||||
|         sh 'node -v' | ||||
|         sh 'npm -v' | ||||
|         sh 'ls -a' | ||||
|         sh 'df -h' | ||||
|         sh 'free -m' | ||||
|         sh 'vmstat -s' | ||||
|     } | ||||
| } | ||||
							
								
								
									
										6
									
								
								ui/Jenkinsfile
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								ui/Jenkinsfile
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,6 @@ | ||||
| stage('ui tests') { | ||||
|     steps { | ||||
|         echo 'ui tests' | ||||
|         sh 'npm run test:ui' | ||||
|     } | ||||
| } | ||||
							
								
								
									
										6
									
								
								unit/Jenkinsfile
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								unit/Jenkinsfile
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,6 @@ | ||||
| stage('unit tests') { | ||||
|     steps { | ||||
|         echo 'runing tests...' | ||||
|         sh 'npm run test' | ||||
|     } | ||||
| } | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user