cancel
Showing results for 
Search instead for 
Did you mean: 

Dist Folder during UI5 application not getting grayed out

amitcruz
Participant
0 Kudos

Hello SAPUI5 experts and SAP WebIDE full stack experts,

We are using SAP WebIDE full stack for the development of SAPUI5 application . I have come across a situation when during the build of SAPUI5 application , 'dist' folder is not getting grayed out and the contents of webapp folder is not getting generated inside 'dist'. It means dist folder only contains 'di.code-validation.core_issues.json' file . Has anyone come across this situation ? I am not getting any error in the console during build.

This behavior is not uniform to entire SAPWebIDE full stack and is not happening to all the applications. 'Dist' folder is getting created with all the contents of webapp folder in some of the applications.

I am not able to differentiate between these two scenarios.

Please check attached image for more information.

FYI I am doing Grunt build by using link - https://developers.sap.com/tutorials/ci-best-practices-fiori-sapcp.html and Grunt build

michal.keidar : Any help is appreciated.

Regards,

Amit

Accepted Solutions (1)

Accepted Solutions (1)

amitcruz
Participant
0 Kudos

I found the solution , application was developed on SAP WebIDE and was not properly structured ( 'webapp' folder was not present ). Once 'webapp' folder is created, 'dist' folder appears grayed after build .

Answers (2)

Answers (2)

amitcruz
Participant
0 Kudos

Hello Sebastiano,

It tried your way but it didn't work.

Regards,

Amit

smarchesini
Active Contributor
0 Kudos

Hi Amit,

sometime the built by Grunt is corrupt (I don't know why).
Usually I change the gruntfile.js and package.json (with different Grunt version).
Try this configuration :

Gruntfile.js

module.exports = function (grunt) {
	"use strict";
	grunt.loadNpmTasks("@sap/grunt-sapui5-bestpractice-build");
	grunt.config.merge({
		compatVersion: "1.52"
	});
	grunt.registerTask("default", [
		"clean",
		"lint",
		"build"
	]);
	grunt.loadNpmTasks("@sap/grunt-sapui5-bestpractice-test");
	grunt.registerTask("unit_and_integration_tests", ["test"]);
	grunt.config.merge({
		coverage_threshold: {
			statements: 0,
			branches: 100,
			functions: 0,
			lines: 0
		}
	});
};

package.json

{
  "name": "zDashStore",
  "version": "0.0.1",
  "description": "",
  "private": true,
  "devDependencies": {
    "@sap/grunt-sapui5-bestpractice-build": "1.3.65"
  }
}

After change that files delete dlist and rebuild the project.

Best regards,
Sebastiano