Download or clone this repository:
git clone git@github.com:pulseshift/openui5-gulp-starter-kit.git
Please ensure that you have installed node and yarn before you continue.
Install dependencies:
yarn
Start developing: Will build all resources start watcher task and start a HTTP server
yarn start
The app should open in your browser automatically, otherwise open: http://localhost:3000
OpenUI5 Starter Kit is an opinionated to-do app example as template for OpenUI5 web development. Containing a modern build infrastructure, tools and a set of best practices for building a great development experience and helping you to stay productive.
A solid starting point for both professionals and newcomers to OpenUI5.
Feature | Summary |
---|---|
❤ ES6/ES7 via Babel 6.0 | Compile ES6/ES7 into ES5 (supported by most browsers) with ease, bringing support for next generation JavaScript, today. |
Less support | Compile Less into CSS with ease, bringing support for variables, mixins and more. |
Consistent code formatting | Prettier is an awesome opinionated code formatter used in many well known projects like Webpack, Babel or React. In this starter kit prettier re-formats your files that are marked as "staged" via git add before you commit. We recommend to add also prettier as integration to your Editor during development. |
Built-in HTTP Server | An extendable built-in server for previewing your site locally while you develop and iterate and the option to add API endpoints via a proxy to get around Access-Control-Allow-Origin (CORS) errors. |
Live Browser Reloading | Reload the browser in real-time anytime an edit is made without the need for an extension. (Run yarn start and edit your files) |
Cross-device Synchronization | Synchronize clicks, scrolls, forms and live-reload across multiple devices as you edit your project. Powered by BrowserSync. (Run yarn start and open up the IP provided on other devices on your network) |
Production ready builds | Pre-configured build pipeline to create optimized assets, UI5 pre-loads etc. just as you would expect from a state of the art build process. |
⚡️ Reliable UI5 Cache-Buster | Ensure your users are always enjoying the latest version of your app. OpenUI5 provides only solutions proprietary for SAP Gateway and SAP Cloud Platform. In this project, we added a more reliable mechanism that is open source and available for any environment. But much more important, with our Gulp build script, it works right out of the box. |
A Hackable UI5 Build Process | Define in your package.json the source of your OpenUI5 library. Supported options are online CDN link, download URL of a prebuild library or a GitHub release link of OpenUI5. In all cases, the build process will handle the download, unzip and OpenUI5 build task by its own. Lean back and wait relaxed. |
Start build:
Will create a dist
directory in your project root.
yarn build
Afterwards, the production app build can be tested by run yarn gulp testDist
. The app should open in your browser automatically, otherwise open: http://localhost:3000
Contributions, questions and comments are all welcome and encouraged.
Check our current issues or, if you have something in mind how to make it better, create your own issue. We would be happy to discuss how they can be solved.
Here is a brief overview on what we are working right know and what will follow, soon. We are interested to hear your opinion on what should follow next.
Current idea backlog (unordered):
- Add a further project based on Webpack
- Add Facebooks flow type system with help of vagrant to support Windows machines, too
- Unit test and browser test framework
- Build process for custom UI5 control libraries
- Build process for custom UI5 themes
- Documentation generation via JSDoc
- Optimized OpenUI5 library modules (containing only these controls you used)
- Add ESLint best practice rule set for OpenUI5 compatible to prettier
- I18N helper integration
Rocket logo created by Hopkins from the Noun Project CC BY 3.0 US.
This project is licensed under the MIT license. Copyright 2017 PulseShift GmbH