1.22.1 • Published 1 year ago

@cubbo/orders-widget v1.22.1

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

orders-widget

Cubbo's Orders widget

Local Development

Node >= 12 is required. Node 16.13.2 is recommended, we used it to build the project.

You can install and use Node with the following commands:

nvm install 16.13.2
nvm use 16.13.2

First steps

  • Clone repo.
  • Get to the new folder, cd orders-widget
  • Run yarn install
  • To build the css you can run: npx postcss src/*.js -d postcss-result.
  • Start web server with npx vite

Development process

We are using lit along vite as bundler / builder. Currently, we have to manually run postcss since vite only runs postcss if it notices updates at <style> tags or css stylesheets. This is something that we should fix in the future.

Building the css is required at any change, if your entry point is using the postcss-result folder as source. The index.html file is using it as default.

If lit is new for you, there are good examples at Open-wc.

Build overview

The code has 3 main sources of content:

  • src, this folder is where the source code exists. This where we can update and develop features.
  • postcss-result, this folder is where the results of the postcss process are stored. This folder is used by vite.config.js to create an es and umd version of the code, and by index.html to serve the local version.
  • dist, this the folder where the command vite build will output an es and umd versions of the code. We can use those versions to publish a package.

To get the es and umd version of the code you can run vite build

1.22.0

1 year ago

1.22.1

1 year ago

1.19.0

2 years ago

1.21.0

2 years ago

1.20.0

2 years ago

1.15.0

2 years ago

1.14.0

2 years ago

1.13.0

2 years ago

1.12.0

2 years ago

1.18.0

2 years ago

1.17.0

2 years ago

1.16.0

2 years ago

1.9.0

2 years ago

1.11.0

2 years ago

1.10.0

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago

1.8.0

2 years ago

1.7.0

2 years ago

1.6.0

2 years ago

1.5.0

2 years ago

1.4.0

2 years ago

1.3.0

2 years ago

0.1.0

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.9.0

2 years ago

0.0.9

2 years ago

0.8.0

2 years ago

0.5.0

2 years ago

0.4.0

2 years ago

0.7.0

2 years ago

0.6.0

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago