Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Jan 07, 2014
saschakiefer saschakiefer Merge branch 'release-0.2.0' into develop fb1b7e8
Commits on Jan 16, 2014
Jason Scott Merge remote-tracking branch 'upstream/develop' into develop eb531df
Commits on Jan 17, 2014
Jason Scott fix formatting of fiori templates and remove .jshintrc reporter optio…
…n causing issues in sublime
97c4a30
Jason Scott wrap fiori master-detail app javascript in anonymous functions so as …
…to not pollute global namespace
44e9bc4
Jason Scott fix tests - ensure yeoman-generator is >= 0.16.0 by updating yo; adde…
…d test for fiori master/detail app
3a1514f
Commits on Jan 18, 2014
Jason Scott refactor generatortests into separate files f48bb31
Jason Scott remove useless editor config file that was created by generator-gener…
…ator
f27336f
Jason Scott Add default watch task to gruntfile - performs jshint and mochaTest o…
…n generator files. Also touched _Root.view.xml and _Root.controller.js just to test the watch task
3261904
Jason Scott add test for uiComponent sub-generator 2886288
Jason Scott add test for facelessComponent sub-generator 0a29653
Commits on Jan 19, 2014
Jason Scott feat: add local http server
Added the JADS (https://github.com/bocallaghan/JADS) Node.js http server script as a grunt task. Running 'grunt execute' now launches an express web http server to serve the generated app. The JADS server includes proxy capabilities. Goto localhost:8080 to run the generated app in the browser. The port can be configured in the JADS/config.js file.
3172bd9
Jason Scott fix: removed git sub module for JADS - files now tracked 3be0e83
Jason Scott fix(JADS): enable sapui5 alias in config.js e1eabf8
Jason Scott fix(JADS): Fix failing test 2aadabc
saschakiefer saschakiefer fix(gen:fiori): change root view to XML vie instead of JS view
chore(jshint): remove unused reporting options
style(gen:fiori): wrap files in anon functions
test: fixing tests
refactor(test): refactor tests into separate files for each generator
chore(config): remove useless editor.config file that was created by generator-generator
chore(grunt): add watch task
test(gen:uiComponent): add missing test
test(gen:facelessComponent): add missing test
910f285
saschakiefer saschakiefer chore(config): chmage the yeoman-generator version dependency abf69bd
saschakiefer saschakiefer feature(gen): add OpenUI5 to local repository via bower 70ab430
saschakiefer saschakiefer feature(gen): add server task using JADS and serve the UI5 resources …
…from the local bower repository
401628c
Commits on Jan 21, 2014
saschakiefer saschakiefer add general UI5 location prompt to script base f1bcde1
saschakiefer saschakiefer apply UI location to application generator and classical app template d0e973a
saschakiefer saschakiefer exclude downlaoding UI5 during bower install, if custom location is c…
…hosen
742079f
saschakiefer saschakiefer exclude generating an ui5 alias in the JADS server configuration when…
… ui5 is loaded from a custom location
a54de46
saschakiefer saschakiefer add UI5 location option to Fiori template 806fdb6
saschakiefer saschakiefer feature(gen): add possibility to chose where OpenUI5 is loaded from (…
…local copy installed by bower or already existing location)

If the user chooses to load the OpenUI5 API with bower, the dependencies are created in the package.json configuration and an alias is created in the JADS configuration.
If the user specifies a custom location neither the dependencies nor the alias are generated.

closes #24
742751a
Commits on Jan 22, 2014
Jason Scott refactor(JADS): Refactor to use JADS web server as a grunt plugin
Convert JADS script to a Grunt Task - published on npmjs.org as grunt-jads.
Refactor the Gruntfile.js for generated apps to use the new grunt task.
8b4c1ab
Commits on Jan 23, 2014
Jason Scott feat(server): Enable grunt-jads to serve generated apps
grunt-jads is a grunt plugin wrapper for JADS (Just Another Development Server: https://github.com/bocallaghan/JADS). It uses the node express module to setup a web server. Run with 'grunt server'.
To enable url aliases on the server changes were required to the generated Gruntfile to set the alias paths based on the UI5 location entered by the user.
script-base.js was also changed to enable this.
Added .jsbeautifyrc files to the project so that we can decide where and when the jsFormat'ing applies. This was necessary otherwise the generated Gruntfile would look ugly with the format on save option. So now - for general development: format_on_save is true. However in the templates directory, format_on_save is false. You can still format by right-clicking and choosing format and even narrowing it down by selecting specific text.
Fixed issues saschakiefer#28 by removing references to sapui5 and replacing with openui5.
Adding grunt-jads closes issue: saschakiefer#25.
e6fa836
Jason Scott refactor(gruntfile): change grunt-jads usage to lower-case cb57090
Jason Scott fix(fiori app): Fix generated title for fiori apps
Fiori apps were being generated with a fixed title. Changed to dynamic based on application name prompt in the generator. Fixed issue: saschakiefer#27.
08f7990
Jason Scott fix(tests): fixed generator tests failing since UI5 library options w…
…ere added

The app-classic and app-fiori-master-detail tests needs the prompts added for the UI5 library options. Added to current pull-request: saschakiefer#31
27b397e
Commits on Jan 24, 2014
Jason Scott chore(build): Remove support for Node.js 0.8.0 as per Yeoman toolset
After recent update to Yeoman, some node dependencies now only work on Node.js 0.10 and above.
9052319
Jason Scott feat(build): Switch from grunt-jads to grunt-contrib-connect.
Switched from our basic grunt-jads Node.js http server to grunt-contrib-connect. grunt-contrib-connect coupled with grunt-connect-proxy and grunt-contrib-watch combine to enable live reloading of code changes with a Node.js web server that can handle https and proxying resources.
Changed the UI5 location code to simply enter the bower location or the direct location entered by the user (typically the remote sap server). No url aliases are setup. If necessary the user can still easily set them up by specifying further base locations in the grunt-contrib-connect task.
Completes:
saschakiefer#29
saschakiefer#30
538b6aa
Commits on Jan 25, 2014
Jason Scott feat(build): enable livereload of xml views 27fa19e
Jason Scott feat(gen): html page to demo web proxy capabilities.
This page is not setup for scaffolding by the generator yet. It needs to be refactored as per @qmacro's single page app architecture. I've put it in here so as not to lose it for now...
2f10996
Jason Scott refactor(gen): refactor the generated gruntfile without the web proxy…
… as default.

Our current generated apps don't require a proxy out-of-the-box so set the gruntfile this way - no need instantiating one for no reason. However, in future, generated apps that do require proxy services will enable this via generator promtps.
89f7fec
Jason Scott merge build_process changes into develop
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
2c84ad0
Jason Scott feat(gen): Added single page mvc app.
Added scaffolding for Single Page MVC application as per @qmacro's SPA app example at the SublimeUI5 repo. This style is handy for testing and building small widgets, etc.
Also fixed code formatting of the Classic app which had some spaces in paren's from old jsFormat settings.
527f78b
Jason Scott refactor(gen): Fixup some code comments in the app generator. 1d17dcd
Commits on Jan 27, 2014
Jason Scott feat(apps): Add Tiles app generation.
Add option to generate a Fiori-like Tiles app. This app currently uses a demo odata service so a proxy version of the gruntfile is used.
d7720f4
Commits on Jan 28, 2014
Jason Scott refactor(gen): Refactor the generation of the Tiles App to use a mock…
… OData service
49af61d
Commits on Jan 29, 2014
Jason Scott refactor(Fiori Apps): Refactor to use XMLResourceBundleDeclaration
Refactor to declare the resource bundle in the XML root view instead of the usual boilerplate JS with a sap.ui.model.resource.ResourceModel.
Add "smarttabs" to .jshintrc file to stop jshint complaints about spaces in comments.
1390c0d
Jason Scott refactor(spa): Refactor to convert single quotes to double as per con…
…ventions.
a132084
Jason Scott test(gen): Add tests for Tiles App and fix deprecated grunt function …
…to check expected files
adf8194
Jason Scott refactor(gen): Refactor the app generator (index.js)
Refactor app/index.js to move basic prompts into script-base.js.
Fix silly bug introduced into the classic app index.html.
Refactor generator prompts to remove the unnecessary fiori app types list as we now handle choosing which type of app to generate with a simple list.
45e69e0
Commits on Jan 31, 2014
Jason Scott fix(gen): Fix jsformat error and add back .gitignore for generated apps
Be careful to remove yuour local sublime text jsFormat settings as we use .jsbeautifyrc files now. This commit fixes some formatting that screwed up because I didn't remove the local settings. This was in the Formatter and Groupt utilities used by the Fiori apps.
Fixed silly bug introduced when refactoring the generator. .gitignore is now scaffolded for all genrated apps.
286e89f
Commits on Feb 01, 2014
Jason Scott fix(tiles app): remove hard-coded UI5 location for the Northwind mock…
… service.

Sinon.js is now dynamically referenced as in the bootstrap.
ODataModelFakeService.js is now referenced locally and scaffolded into the model folder. Could not dynamically reference it as test_resources are not part of the bower dependency.
ba7b0c3
Jason Scott feat(gen build): add prompt for local server port.
Add prompt for local server port (defaulting to 8080) as per saschakiefer#34.
61b60cf
Jason Scott Merge feature branch spa into develop. cce6a9e
Jason Scott feat(build): added prompt to enable livereload 5beba82
Commits on Feb 02, 2014
Jason Scott refactor(gen): Change comments in scaffolded gruntfile to block style.
As per: saschakiefer#39
Also a slight refactor of the same gruntfile so that the mock Northwind service is ignored for watches and live-reloads - but only where its used, which is currently just the tiles app.
d722f2a
Commits on Feb 03, 2014
saschakiefer saschakiefer refactor(gen): change port prompt 377a80f
saschakiefer saschakiefer refactor(gen): remove dependency of classical application generator f…
…rom view generator

Following the discussion the app generator does not call the view generator any more, but automatically scaffolds a JS view called Main in the view/ directory.
Since the dependency is broken, the node module "node-localstorage" is not needed any more an was removed from package.json

closes #19
76b7ec6
Commits on Feb 04, 2014
Jason Scott fix(tiles app): Fix the Tiles app to use the correct port if the user…
… doesn't use the mock northwind service.

When a Tiles app was genreated the url for using the real Northwind service still had 8080 hard-coded as the port - fixed to be the localServerPort variable.
Improved the comments in the Tile app index.html regarding the mock OData service. Explaining that the two scripts enabling the mock service can be deleted to use the real Northwind service and that the proxy must then be configured in Gruntfile.js to get around CORS issue.
1cfa3d5
Jason Scott fix(gen): Fixed basic details prompts
The application-type prompts were overwriting the basic details prompts, such that they had the value undefined and therefore would not get templated into index.html nor package.json.

Closes saschakiefer#44
8893b77
Jason Scott refactor(gen): Update package.json dependency versions
Update the package.json dependency versions for the generator and app templates.

Based-on: saschakiefer#41
5224f8a
Commits on Feb 05, 2014
saschakiefer saschakiefer Merge branch 'livereload' of https://github.com/js1972/generator-openui5
 into js1972-livereload

Conflicts:
	package.json
5367623
saschakiefer saschakiefer Merge branch 'js1972-livereload' into develop 0f165bb
saschakiefer saschakiefer fix(gen): reintroduce the possibility to choose between XML and JS vi…
…ew for the classical app

closes #19
1ed5ca0
saschakiefer saschakiefer test(app): add test for checking classical app with XML view
closes #19
db53440
Commits on Feb 07, 2014
Jason Scott test(tiles app): Added tests for index.html scaffolding
Added tests to ensure that index.html is templated properly with the correct variables based on user prompts

Based-on: #45
7797f17
Jason Scott test(tiles app): minor refactor acf3807
Commits on Feb 12, 2014
Jason Scott test(tiles app): Added extra tests for index.html scaffolding
Now testing for correct templating of UI5 bootstrap location, Component namespace and title in index.html.
Also removed extra whitespace from _index.html.

Based-on: #45
47d8451
Jason Scott chore(package.json): Fix formatting - had lost tab 4 when using David…
… tool to update deps
403745a
Commits on Feb 14, 2014
Jason Scott refactor(fiori apps): Change to EventBus for navigation
Refactor the fiori-style apps (Splitter, Tiles) to use the EventBus for navigation instead of coupling all the page view controllers to the root controller.
Whether this really simplifies your app or not is a matter of personal preference, but it is the best-practice according to the current UI5 SDK: https://openui5.hana.ondemand.com/#docs/guide/BestPractice.html.

Also includes minor adjustments to standardise the use of whitespace.

Fixes #50
d5ce7b8
Commits on Feb 20, 2014
saschakiefer saschakiefer Merge pull request #52 from js1972/eventbus
refactor(fiori apps): Change to EventBus for navigation
45f93ae
Commits on Feb 21, 2014
saschakiefer saschakiefer feat(app): update openui5-bower version to 1.18.8 aee6ff4
saschakiefer saschakiefer feat(Components): Handle component namespaces
- prompt if the user want's to add the application namespace to the object path or not
- if not, the generator tries to add the path to the object root in the bootstarp or as a local resource
- if yes, the gnerator adds the application path (read from the index.html bootsrap - first object root) and suggest it as application path. The user has the possibility to change that if needed.

fixes #47 #2
bcf400f
saschakiefer saschakiefer Merge branch 'feature/namespaceSupport' into develop f652938
Commits on Feb 23, 2014
Jason Scott fix(file rewrite): fix file re-write capability.
- Fix formatting for html template files to be all tabs for whitespace (some spaces had crept in) which stuffs up the formatting of file rewriting.

- Added an args option to the rewrite() function to specify extra indents.

fix #55
a84d491
Jason Scott fix(rewrite): Handle needle not found error in rewrite function.
Throw exception - handled by current default handler - when the needle is not found in the rewrite fucntion.

Fixes #54
f15f72f
Jason Scott fix(rewrite): improve error message when needle not found error.
fixes #54
9a06acc
Jason Scott fix(rewrite) add missing semi-colon dd41ce0
saschakiefer saschakiefer Merge Pull Request 9b49db4
Commits on Feb 24, 2014
Jason Scott fix(rewrite): Handle formatting of json comments when adding new reso…
…urce roots

Add new method addCommaToLine(args) which allows you to find a line in a file
 and add a terminating comment char at a specified offset from that line. Uses
 same methods as in rewrite(args).

Fixes #55 #57
1662629
Jason Scott refactor(sub-gen): Refactor error handling when writing resource root…
…s from the component sub-generator

Fixes #54 #55
fd8402e
Commits on Feb 25, 2014
saschakiefer saschakiefer Merge pull request #58 from js1972/format
fix(rewrite): Handle formatting of json comments when adding new resourc...
8d6a0b5
saschakiefer saschakiefer fix(application): clean up quint task in the generated Gruntfile.js
fixes #46
f4fe76e
saschakiefer saschakiefer docs(gen): Add explaination for the namespace option for sub generators a1a3130
saschakiefer saschakiefer Bumped version to 0.2.1 and updated the chnagelog c756e51
saschakiefer saschakiefer Merge branch 'release-0.2.1' e39cf2a