In Javascript development the code that you write is never quite the code that you want in production.
The code you want to write has jsDoc, meaningful and by extension long variable names and white space to make it a delight to read just to name a few.
The issue is that these things that make it easy for the code to be read and makes it larger and longer for a browser to download it, leading to slower code.
What we need to do is to have a build and deploy process, ideal one that integrates with our source control. Graham Robinson has explored some of these ideas in his blog, SAPUI5-Deployer Project. I had a couple of key conversations with Graham as he was putting this together.
Recently when I arrived on another client I realised that our needs were similar but different.
In our situation our source code control is inside the firewall all this process needs to happen inside the firewall also.
There is too much here to cover in one blog so I am going to make this a series of blogs so that you can easily digest this.
Before we get to the next piece of the puzzle, let me introduce Grunt.
Grunt is a task runner. There is nothing new in this make, maven and ant are all examples of great task runners and they are all great tools.
I settled on grunt as it was tools that the UI5 team had also chosen. If you have a local clone of UI5, you will see how grunt is used to build UI5 itself.
The other great thing about Grunt that it is javascript based and runs on nodejs. All these skills are excellent to have as you develop as a UI5 developer.
In the next blog we will install node install grunt and get our first task running.
|-- Previous blog You are at the beginning! Next blog: Solutions and Scenarios -->
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
7 | |
5 | |
5 | |
4 | |
4 | |
4 | |
4 | |
3 | |
3 |