From b9ab15a0c9d859b02950fcec4b6f6d8caa41b943 Mon Sep 17 00:00:00 2001 From: Nathan Kellenicki Date: Wed, 20 Mar 2019 11:46:04 -0700 Subject: [PATCH] Drone now does npm publish --- .drone.yml | 9 +++++++++ README.md | 10 ++-------- docs/BoostMoveHub.html | 4 ++-- docs/DuploTrainBase.html | 4 ++-- docs/Hub.html | 4 ++-- docs/LPF2Hub.html | 4 ++-- docs/PUPHub.html | 4 ++-- docs/PUPRemote.html | 4 ++-- docs/PoweredUP.html | 4 ++-- docs/WeDo2SmartHub.html | 4 ++-- docs/boostmovehub.js.html | 4 ++-- docs/classes.list.html | 4 ++-- docs/consts.js.html | 4 ++-- docs/duplotrainbase.js.html | 4 ++-- docs/global.html | 4 ++-- docs/hub.js.html | 4 ++-- docs/index.html | 16 ++++------------ docs/lpf2hub.js.html | 4 ++-- docs/poweredup-node.js.html | 4 ++-- docs/puphub.js.html | 4 ++-- docs/pupremote.js.html | 4 ++-- docs/quicksearch.html | 2 +- docs/wedo2smarthub.js.html | 4 ++-- jsdoc.conf.json | 2 +- 24 files changed, 55 insertions(+), 60 deletions(-) diff --git a/.drone.yml b/.drone.yml index 2367bf6..832b2e0 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,3 +11,12 @@ pipeline: image: node:10.15.1 commands: - npm run all + + publish: + image: plugins/npm + settings: + token: + from_secret: NPM_TOKEN + when: + event: [tag] + ref: [refs/tags/v*] \ No newline at end of file diff --git a/README.md b/README.md index 003acf1..a59984e 100644 --- a/README.md +++ b/README.md @@ -7,13 +7,7 @@ LEGO Powered UP is the successor to Power Functions, the system for adding electronics to LEGO models. Powered UP is a collection of ranges - starting with LEGO WeDo 2.0 released in 2016, LEGO Boost released in 2017, and LEGO Powered UP released in 2018. It also includes the 2018 Duplo App-Controlled Train sets. -Powered UP has a few improvements over Power Functions: - -1. The use of Bluetooth Low Energy makes it easy to control from a computer, and even write code for. - -2. The ability to use sensors to react to events happening in the real world opens up a whole new world of possibilities. - -3. As Powered UP hubs and remotes pair with each other, the system allows for a near unlimited number of independently controlled models in the same room. Power Functions was limited to 8 due to the use of infra-red for communication. +This library allows communication and control of Powered UP devices and peripherals via Javascript, both from Node.js and from the browser using Web Bluetooth. ### Node.js Installation @@ -66,7 +60,7 @@ In addition, the Hubs themselves have certain built-in features which this libra [Full documentation is available here.](https://nathankellenicki.github.io/node-poweredup/) -### Sample Usage +### Node.js Sample Usage ```javascript const PoweredUP = require("node-poweredup"); diff --git a/docs/BoostMoveHub.html b/docs/BoostMoveHub.html index e0d51b7..6663abc 100644 --- a/docs/BoostMoveHub.html +++ b/docs/BoostMoveHub.html @@ -4,7 +4,7 @@ - DocStrap Class: BoostMoveHub + node-poweredup Class: BoostMoveHub