2.4.0 • Published 6 years ago

cumulocity-hellowidget-plugin v2.4.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

cumulocity-hellowidget-plugin

version downloads MIT License

A demo app for showcasing creation of a custom Cumulocity UI widget plugin.

Why?

Currently there is this snore-inducing JSDoc for the API to allow adding components (widgets), but it is inadequately practical to show "how-to" in details. So, let's slay the Jabberwocky! :hocho: :dragon_face:

Installation

  • Make sure you have Node.js LTS installed and npm from its website, or better even, use nvm.
  • Install yarn.

  • Install cumulocity-tools.

  • Clone the repo, cd to your project directory.

  • Adapt the UI build version you want to develop against:

$ c8y install [ui_build_version]
  • Install dependencies:
$ yarn install:clean

Usage

Check out the introduction to plugin development docs.

Quicky up and running

Oh well, I know that you guys are a bunch of lazy people. How to get this app deployed and see it running on my tenant, you ask? Be my guest:

$ yarn deploy

After a few more steps in interactive command line user interfaces, you should then be able to access the app on https://<your-tenant-url>/apps/hellowidgetapp.

Unit testing

$ yarn test

Linting

$ yarn lint <target_file_or_dir>

Example:

$ yarn lint plugins

Or better yet, make your IDE automatically integrate the linting process based on the .rc file (.eslintrc).

The rules quite strictly follow the Airbnb JavaScript Style Guide (ES6+ without React).

Author

Glenn Dwiyatcita (@dwiyatci)

License

MIT.

See LICENSE.txt.

2.4.0

6 years ago

2.3.0

6 years ago

2.2.2

7 years ago

2.2.1

7 years ago

2.2.0

7 years ago

2.1.1

7 years ago

2.1.0

7 years ago

2.0.0

7 years ago

1.4.0

7 years ago

1.3.3

7 years ago

1.3.2

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago