1.4.0 • Published 6 years ago

grunt-sapui5 v1.4.0

Weekly downloads
92
License
-
Repository
github
Last release
6 years ago

grunt-sapui5

Recently SAP released new Web IDE version and grunt plugin for building SAPUI5 projects.

You can find more details here:

https://www.sap.com/developer/tutorials/webide-grunt-basic.html

or here:

https://help.sap.com/viewer/825270ffffe74d9f988a0f0066ad59f0/T03b.2017/en-US/1e375da920484bbcb7c46b7b369f137e.html

After starting using it I found a problem: plugin @sap/grunt-sapui5-bestpractice-build didn't work for libraries

Reviewing the source code I realized that in fact it was just a plugin reusing grunt-openui5 plugin but in a very restricted configuration.

Also there were more issue we solved with the current plugin:

  • We left minified Component.js file in the build ( sometimes while navigation we still need them )
  • We transform folder name into module name ( a.b.c into a/b/c ) in preload-* files

Getting Started

This plugin can be used both locally and in the cloud-based IDE. To use it you need to have at least one dependency in your package.json file

  "devDependencies": {
    "grunt-sapui5": "^1.3.18-g"
  }

To build the project you'll need Gruntfile.js containing at least these lines:

module.exports = function (grunt) {
    'use strict';
    grunt.loadNpmTasks('grunt-sapui5');
};

To build the project just type grunt in the console for your project.

Please notice the standard SAP plugin requires webapp folder.

Meanwhile you can redefine config in your Gruntfile.js in a similar way like I did in sapui5.js

To use it locally you will need to register @sap namespace like this:

  npm config set @sap:registry "https://npm.sap.com" -g

Release History

(Nothing yet)

1.4.0

6 years ago

1.3.37

6 years ago

1.3.36

6 years ago

1.3.22

6 years ago

1.3.21

6 years ago

1.3.20

6 years ago

1.3.35

6 years ago

1.3.34

6 years ago

1.3.33

6 years ago

1.3.19

7 years ago

1.3.18-j

7 years ago

1.3.18-h

7 years ago

1.3.18-g

7 years ago

1.3.18-f

7 years ago

1.3.18-e

7 years ago

1.3.18-d

7 years ago

1.3.18-c

7 years ago

1.3.18-b

7 years ago

1.3.18-a

7 years ago

1.3.1-8.1

7 years ago

1.3.18

7 years ago