Compare commits
	
		
			23 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| efdf789575 | |||
| 6ef6446022 | |||
| ef7d85e7c4 | |||
| 93b5d9869b | |||
| 2a0cfeffe9 | |||
| 909aafbd5f | |||
| 91288e2d74 | |||
| 25709b1f9a | |||
| 8a03d9aa94 | |||
| bbe1cf770a | |||
| ac8190282f | |||
| 446d140e32 | |||
| 726948651e | |||
| dd0a7bb782 | |||
| fca00ffcf8 | |||
| 13f6334ae5 | |||
| 7275a858d6 | |||
| 5a3befe5af | |||
| 385a93a05e | |||
| b4d444ff05 | |||
| 487bcb9a70 | |||
| aaf11b66d7 | |||
| 83d7d46896 | 
							
								
								
									
										2297
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2297
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										22
									
								
								package.json
									
									
									
									
									
								
							
							
						
						
									
										22
									
								
								package.json
									
									
									
									
									
								
							| @@ -1,6 +1,6 @@ | ||||
| { | ||||
|   "name": "@shipzone/npmci", | ||||
|   "version": "3.1.62", | ||||
|   "version": "3.1.74", | ||||
|   "private": false, | ||||
|   "description": "node and docker in gitlab ci on steroids", | ||||
|   "main": "dist/index.js", | ||||
| @@ -26,10 +26,10 @@ | ||||
|   "devDependencies": { | ||||
|     "@gitzone/tsbuild": "^2.1.17", | ||||
|     "@gitzone/tsrun": "^1.2.6", | ||||
|     "@gitzone/tstest": "^1.0.27", | ||||
|     "@pushrocks/tapbundle": "^3.0.13", | ||||
|     "@types/node": "^12.7.9", | ||||
|     "tslint": "^5.20.0", | ||||
|     "@gitzone/tstest": "^1.0.28", | ||||
|     "@pushrocks/tapbundle": "^3.2.0", | ||||
|     "@types/node": "^12.12.12", | ||||
|     "tslint": "^5.20.1", | ||||
|     "tslint-config-prettier": "^1.18.0" | ||||
|   }, | ||||
|   "dependencies": { | ||||
| @@ -40,20 +40,18 @@ | ||||
|     "@pushrocks/qenv": "^4.0.6", | ||||
|     "@pushrocks/smartanalytics": "^2.0.15", | ||||
|     "@pushrocks/smartcli": "^3.0.7", | ||||
|     "@pushrocks/smartdelay": "^2.0.3", | ||||
|     "@pushrocks/smartdelay": "^2.0.6", | ||||
|     "@pushrocks/smartfile": "^7.0.6", | ||||
|     "@pushrocks/smartgit": "^1.0.13", | ||||
|     "@pushrocks/smartlog": "^2.0.19", | ||||
|     "@pushrocks/smartlog": "^2.0.21", | ||||
|     "@pushrocks/smartlog-destination-local": "^8.0.2", | ||||
|     "@pushrocks/smartparam": "^1.0.4", | ||||
|     "@pushrocks/smartpromise": "^3.0.6", | ||||
|     "@pushrocks/smartrequest": "^1.1.36", | ||||
|     "@pushrocks/smartrequest": "^1.1.43", | ||||
|     "@pushrocks/smartshell": "^2.0.25", | ||||
|     "@pushrocks/smartsocket": "^1.1.49", | ||||
|     "@pushrocks/smartsocket": "^1.1.58", | ||||
|     "@pushrocks/smartssh": "^1.2.3", | ||||
|     "@pushrocks/smartstring": "^3.0.10", | ||||
|     "@pushrocks/smartstring": "^3.0.17", | ||||
|     "@servezone/servezone-interfaces": "^2.0.51", | ||||
|     "@types/shelljs": "^0.8.5", | ||||
|     "@types/through2": "^2.0.34", | ||||
|     "through2": "^3.0.1" | ||||
|   }, | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
| import { logger } from '../npmci.logging'; | ||||
| import * as plugins from './mod.plugins'; | ||||
| import { bash } from '../npmci.bash'; | ||||
| import { bash, bashNoError } from '../npmci.bash'; | ||||
| import { Npmci } from '../npmci.classes.npmci'; | ||||
|  | ||||
| export class NpmciGitManager { | ||||
| @@ -47,16 +47,22 @@ export class NpmciGitManager { | ||||
|       logger.log('info', 'found github token.'); | ||||
|       logger.log('info', 'attempting the mirror the repository to GitHub'); | ||||
|  | ||||
|       // plugins.smartgit.GitRepo; | ||||
|       // remove old mirrors | ||||
|       await bashNoError('git remote rm mirror'); | ||||
|  | ||||
|       await bash(`git fetch`); | ||||
|       // add the mirror | ||||
|       await bash( | ||||
|       await bashNoError( | ||||
|         `git remote add mirror https://${githubToken}@github.com/${githubUser}/${githubRepo}.git` | ||||
|       ); | ||||
|       await bash(`git push mirror --all`); | ||||
|       await bashNoError(`git push mirror --all`); | ||||
|       await bashNoError(`git checkout origin/master`); | ||||
|       await bashNoError(`git push mirror master`); | ||||
|       logger.log('ok', 'pushed all branches to mirror!'); | ||||
|       await bash(`git push mirror --tags`); | ||||
|       await bashNoError(`git push mirror --tags`); | ||||
|       logger.log('ok', 'pushed all tags to mirror!'); | ||||
|       // remove old mirrors | ||||
|       await bashNoError('git remote rm mirror'); | ||||
|     } else { | ||||
|       logger.log('error', `cannot find NPMCI_GIT_GITHUBTOKEN env var!`); | ||||
|       process.exit(1); | ||||
|   | ||||
| @@ -1,5 +1 @@ | ||||
| export * from '../npmci.plugins'; | ||||
|  | ||||
| import * as smartgit from '@pushrocks/smartgit'; | ||||
|  | ||||
| export { smartgit }; | ||||
|   | ||||
| @@ -62,7 +62,6 @@ export class NpmciNodeJsManager { | ||||
|     await bash('npm install -g npm'); | ||||
|     await bash('node -v'); | ||||
|     await bash('npm -v'); | ||||
|     await bash(`npm config set cache ${paths.NpmciCacheDir}  --global `); | ||||
|  | ||||
|     // lets look for further config | ||||
|     const config = await this.npmciRef.npmciConfig.getConfig(); | ||||
|   | ||||
| @@ -1,4 +1,5 @@ | ||||
| import * as plugins from './mod.plugins'; | ||||
| import * as paths from '../npmci.paths'; | ||||
|  | ||||
| import { logger } from '../npmci.logging'; | ||||
| import { bash, bashNoError, nvmAvailable } from '../npmci.bash'; | ||||
| @@ -22,6 +23,9 @@ export class NpmciNpmManager { | ||||
|         case 'install': | ||||
|           await this.install(); | ||||
|           break; | ||||
|         case 'build': | ||||
|             await this.build(); | ||||
|             break; | ||||
|         case 'prepare': | ||||
|           await this.prepare(); | ||||
|           break; | ||||
| @@ -70,6 +74,10 @@ export class NpmciNpmManager { | ||||
|  | ||||
|     // lets save it to disk | ||||
|     plugins.smartfile.memory.toFsSync(npmrcFileString, '/root/.npmrc'); | ||||
|  | ||||
|     // lets set the cache directory | ||||
|     await bash(`npm config set cache ${paths.NpmciCacheDir}  --global `); | ||||
|  | ||||
|     return; | ||||
|   } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user