Improved scripts
This commit is contained in:
		| @@ -11,16 +11,18 @@ | |||||||
|       "boot-log": "src/modules/boot_log/boot-log.json", |       "boot-log": "src/modules/boot_log/boot-log.json", | ||||||
|       "level-generator": "tools/level_generator/level-generator.json", |       "level-generator": "tools/level_generator/level-generator.json", | ||||||
|       "ontime-calculator": "tools/ontime_calculator/ontime-calculator.json" |       "ontime-calculator": "tools/ontime_calculator/ontime-calculator.json" | ||||||
|  |     }, | ||||||
|  |     "Scripts": { | ||||||
|  |       "build-start": "cd src/gismo_cli; echo 'gismo-cli:'; cpl build; cd ../gismo; echo 'gismo:'; cpl build; cd ../../dist/gismo/build/gismo; bash gismo", | ||||||
|  |       "bs": "cpl build-start", | ||||||
|  |       "pre-build": "cd ../gismo_cli; echo 'gismo-cli:'; cpl build; echo 'gismo:'", | ||||||
|  |       "pre-start": "if [ -z $GISMO_ENVIRONMENT ]; then echo '!WARNING! You should start with the right environment!\nRun cpl start-ENV\nSee workspace for more details.'; sleep 2; fi", | ||||||
|  |       "pre-dev": "echo 'development:'; ", | ||||||
|  |       "dev": "export GISMO_ENVIRONMENT=development; export GISMO_NAME=Gismo-dev; cpl start", | ||||||
|  |       "pre-test": "echo 'staging:'; ", | ||||||
|  |       "test": "export GISMO_ENVIRONMENT=staging; export GISMO_NAME=Gismo-test; cpl start", | ||||||
|  |       "pre-prod": "echo 'production:'; ", | ||||||
|  |       "prod": "export GISMO_ENVIRONMENT=production; export GISMO_NAME=Gismo-prod; cpl start" | ||||||
|     } |     } | ||||||
|   }, |  | ||||||
|   "Scripts": {	 |  | ||||||
|     "pre-build": "cd ../gismo_cli; echo 'gismo-cli:'; cpl build; echo 'gismo:'",	 |  | ||||||
|     "pre-start": "echo '!WARNING! You should start with the right environment!\nRun cpl start-ENV\nSee workspace for more details.'; sleep 2",	 |  | ||||||
|     "pre-dev-start": "echo 'development:'; ",	 |  | ||||||
|     "dev-start": "export GISMO_ENVIRONMENT=development; export GISMO_NAME=Gismo-dev; cpl start",	 |  | ||||||
|     "pre-stage-start": "echo 'staging:'; ",	 |  | ||||||
|     "stage-start": "export GISMO_ENVIRONMENT=staging; export GISMO_NAME=Gismo-test; cpl start",	 |  | ||||||
|     "pre-prod-start": "echo 'production:'; ",	 |  | ||||||
|     "prod-start": "export GISMO_ENVIRONMENT=production; export GISMO_NAME=Gismo-prod; cpl start"	 |  | ||||||
|   } |   } | ||||||
| } | } | ||||||
		Reference in New Issue
	
	Block a user