@builder.io/app-plugin-simple-example
TypeScript icon, indicating that this package has built-in type declarations

0.0.2-1Β β€’Β PublicΒ β€’Β Published

Simple Example App Plugin

πŸ‘‰ See here for the main plugin entry and coniguration

Getting started

Install

git clone https://github.com/BuilderIO/builder.git
cd plugins/example-simple-app
npm install

Develop

npm start

Add the plugin in Builder.io

From beta.builder.io open the javascript console in your browser's dev tools and run.

// Adds the plugin
builder.plugins.replace(['http://localhost:1268/plugin.system.js'])
// Saves for all in your organization and reloads the browser
builder.savePlugins().then(() => location.reload())

NOTE: Loading http:// content on an https:// website will give you a warning. Be sure to click the shield in the top right of your browser and choose "load unsafe scripts" to allow the http content on Builder's https site when devloping locally

Load unsafe script example

Now as you develop you can restart Builder to see the latest version of your plugin.

To uninstall your plugin run

// Removes all plugins
builder.plugins.replace([])
// Saves for all in your organization and reloads the browser
builder.savePlugins().then(() => location.reload())

Publishing

We recommend sending us a pull request with your plugin so we can publish it on your behalf.

If required, you can also publish to your own NPM or a hosting service.

To load a plugin from NPM

builder.plugins.replace(['@builder.io/plugin-example'])

Advanced

You can load a plugin from a specific version

builder.plugins.replace(['@builder.io/plugin-example@1.0.0'])

Or from a URL

builder.plugins.replace(['https://something.com/foo'])

Readme

Keywords

none

Package Sidebar

Install

npm i @builder.io/app-plugin-simple-example

Weekly Downloads

6

Version

0.0.2-1

License

MIT

Unpacked Size

32.2 kB

Total Files

13

Last publish

Collaborators

  • steve8708
  • samijaber
  • teleaziz123
  • mrkoreye
  • strd6
  • mhevery
  • adamdbradley
  • gustavohgs
  • manucorporat
  • shyam-builder
  • sanyamkamat
  • harmeet.builder
  • midhunadarvin
  • kylefowler
  • builderio-bot
  • armela
  • anaghavarhade
  • sidmohanty11
  • yash-wadhia-builder
  • paprikaf
  • clyde-builderio