cancel
Showing results for 
Search instead for 
Did you mean: 

Use Gruntfile in WEBIDE Fullstack latest update

07-04-2019 5:26 AM
mmmsaldua Explorer
1548 views 2 comments
0 Likes
SAP Managed Tags
Subscribe

Hi,

I'm reading the latest update from SAP regarding WEBIDE Fullstack. Latest updates states that "SAP Fiori projects will now include the UI5 build, by default. The UI5 build replaces the Grunt build for projects deployed to the Neo or ABAP environment."

I'm wondering if we can still use our existing Gruntfile for building applications in WEBIDE. We have custom grunt tasks that we have added in our Gruntfile and we would still like to use them for new applications.

What are the major difference from

"@ui5/cli": "1.4.3",
"@sap/ui5-builder-webide-extension": "1.0.2",

vs the old

"@sap/grunt-sapui5-bestpractice-build": "1.3.62",

I tried actually to just adding the grunt dependencies in the package.json and run tried building the application.

{
	"name": "Z_SDSO_SAMPLEAPP",
	"version": "0.0.1",
	"description": "",
	"private": true,
	"devDependencies": {
		"@ui5/cli": "1.4.3",
		"@sap/ui5-builder-webide-extension": "1.0.2",
		"grunt-search": "^0.1.8",
		"grunt-jsdoc": "^2.3.0",
		"grunt-contrib-compress": "^1.4.3",
		"grunt-jscpd": "0.0.12"
	},
	"scripts": {
		"build": "ui5 build --include-task=generateManifestBundle generateCachebusterInfo"
	},
	"ui5": {
		"dependencies": [
			"@sap/ui5-builder-webide-extension"
		]
	}
}

It does seem to be running the UI5 builder only the gruntfile.

0 Likes

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Likes

Hi,

you are still can use the grunt builder in your existing project. For a new project, we are creating the ui5-build instead of grunt build.

By the way, with ui5-build you also can create your own custom task, see documentation:

mmmsaldua
Explorer
0 Likes

Hi Alex,

Thanks for this info. I was just wondering if the old generated Gruntfile is still okay to use. I noticed that applications that uses ui5-build completely hides the codes when we deploy that app in ABAP repo. When we were using grunt build, we can still see them but in minified version. We also noticed that there are some task in ui5 build that are not performed in the grunt build (or at least task that we were not aware are happening).