N-Pex / climate-clock-widget

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to build the CLIMATECLOCK widget yourself

Install prerequisites

Make sure you have git and yarn for your system.

Get the code

git clone https://github.com/BeautifulTrouble/climate-clock-widget.git
cd climate-clock-widget

Install the dependencies

yarn install

Test your build on http://localhost:8080

yarn serve

Produce dist/widget-v1.js

yarn build

Once built, the clock widget can be included on your site using

<script src="https://yourdomain.com/path/to/widget-v1.js" async></script>
<climate-clock></climate-clock>

About


Languages

Language:Vue 90.8%Language:HTML 6.0%Language:JavaScript 3.2%