midzer / tobii

An accessible, open-source lightbox with no dependencies
https://midzer.github.io/tobii/demo/
MIT License
196 stars 20 forks source link

Missing build instructions #72

Closed viliusle closed 3 years ago

viliusle commented 3 years ago

"npm run dev" works, but it only builds tobii.js. "npm run build" throws "'BROWSERSLIST_ENV' is not recognized as an internal or external command,"

What are requirements? NPM only?

What is procedure to get working environment? is this correct?

git clone ***
cd ***
npm install
npm run build
midzer commented 3 years ago

npm run build works for me. I'm using npm 7.5.2 and node v12.21.0.

Are you on windows?

viliusle commented 3 years ago
  1. To make build work on Windows, you need:

After that, build works on Windows and unix/mac (tested).

  1. Still can not figure out what to do with npm run dev:
viliusle commented 3 years ago

2nd problem fixed using microbundle watch --raw and demo/modern.html. So what is purpose of microbundle watch --raw --format cjs ?

You have to write build instructions, first build takes too much time alone to make it work.

viliusle commented 3 years ago

@midzer It would be good to enable wiki (read only) and create Building instructions article, and link it on readme.MD You can also add contribution guide.