Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ui5lab-library-simple

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ui5lab-library-simple

Sample of a custom UI5 library for the UI5Lab project

  • 0.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

UI5Lab-library-simple

A simple control library that holds custom geometrical controls for testing the UI5Lab library structure. The UI5Lab-browser is loaded as a dependency to display the library content for testing during development.

Feel free to adopt!

The repository is an example how to create custom OpenUI5 control library using Grunt & Bower based on the library documentation in the OpenUI5 repository.

TODO

  • register the built library package so that it can be consumed somewhere else
  • load browser as a built package and to the dependency tree work (is currently loaded from github directly as a proof of concept)
  • remove explicit bower dependency to sap.f (is only needed by browser, not by library project itself)

Getting started

  1. Install node.js (get it from nodejs.org).
  • If working behind a proxy, you need to configure it properly (HTTP_PROXY / HTTPS_PROXY / NO_PROXY environment variables)
  1. Clone the repository and navigate into it
git clone https://github.com/openui5/UI5Lab-library-simple
cd UI5Lab-library-simple
  1. Install all npm dependencies (also installs all bower dependencies)
npm install
  1. Run npm start to lint, build and run a local server (have a look into Gruntfile.js to see all the tasks).
npm start
  1. Open a test page in your browser: http://localhost:8080/test-resources/ui5lab/geometry/Square.html

Publishing a library project

  1. Maintain the index.json file in the test folder to contain all artifacts and samples. You can test how your library would appear in the browser locally by adding a reference to the libraries.json file

Note: this metadata is still work in progress and subject to change. We will have to see what the best place and structure for this is in the future

  1. Run grunt build to create a library preload and the CSS theme build for your library artifacts. Everything (minified and unminified sources) will be created in the dist folder, ready to be published and consumed by other projects
grunt build
  1. Publish your package to npm, be sure to include only the metadata and the dist folder to keep the package size small (see .npmignore file for details)
npm publish

Directions

Browser A sample browser showcasing artifacts from one or more libraries

Control page An HTML test page instantiating the control

Test page A simple QUnit test

Testuite A QUnit testsuite running all unit tests in this library

Contributing

Instructions how to connect to the community and contribute to the UI5lab project can be found in the main repository!

Credits

Thank you to @matz3 for your input and support!

FAQs

Package last updated on 06 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc