github.com/SAP/cloud-mta-build-tool@v1.2.27/internal/archive/testdata/testproject/mta.sh (about) 1 #!/usr/bin/env sh 2 3 # MTA build process steps 4 5 # ----Pre build process --------- 6 7 # Set the current project repository path for general mta process 8 DIR=$(pwd) 9 # Create temporary dir for build purpose 10 tmpDir=$(mit execute prepare) 11 # Copy module folder to temp directory 12 mit execute copy ui5app $tmpDir ui5app 13 14 # Change to the temporary folder path 15 cd $tmpDir/ui5app 16 17 # ----Executing build for module ui5app ------- 18 # installing module dependencies & execute grunt & remove dev dependencies 19 (npm install && grunt && npm prune production ) & 20 # wait to the process to finish 21 wait 22 # Pack module after build for deployment 23 mit execute pack $tmpDir ui5app ui5app 24 25 # Move to MTA project level 26 cd $DIR 27 28 # ----Post build process------ 29 30 # Create META-INF folder with MANIFEST.MF & mtad.yaml 31 mit execute meta $tmpDir & 32 # Pack as MTAR artifact 33 wait 34 mit execute mtar $tmpDir $DIR 35 # Remove tmp folder 36 mit execute cleanup $tmpDir 37