Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing build instructions #72

Closed
viliusle opened this issue Jun 27, 2021 · 4 comments
Closed

Missing build instructions #72

viliusle opened this issue Jun 27, 2021 · 4 comments

Comments

@viliusle
Copy link
Collaborator

viliusle commented Jun 27, 2021

"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
Copy link
Owner

midzer commented Jun 27, 2021

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

Are you on windows?

@viliusle
Copy link
Collaborator Author

viliusle commented Jun 27, 2021

  1. To make build work on Windows, you need:
  • run npm install --save-dev cross-env command
  • replace BROWSERSLIST_ENV to cross-env BROWSERSLIST_ENV on package.json

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

  1. Still can not figure out what to do with npm run dev:
  • dist/*.css is not updated, only dist/tobi.js
  • demo with dist/tobii.js does not work: module is not defined && Tobii is not defined

@viliusle
Copy link
Collaborator Author

viliusle commented Jun 27, 2021

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
Copy link
Collaborator Author

viliusle commented Jun 30, 2021

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants