-
-
Notifications
You must be signed in to change notification settings - Fork 24
Build instructions
Vilius edited this page Aug 5, 2021
·
1 revision
This project use "npm". Npm helps to install (npm install
) or update (npm update
) all libraries using simple commands.
-
npm - package manager, helps to manage dependencies. Update it to latest version using
npm install npm@latest -g
.
git clone https://github.com/midzer/tobii.git
cd tobii
-
npm install
- it will install all dependencies from package.json file into node_module folder - There are 2 ways to edit files:
- Run
npm run dev-modern
- it automatically re-builddist/tobii.module.js
when source changes. Run command, edit files and test usingdemo/modern.html
. Recommended way. - Edit files and run
npm run build
command to rebuild alldist/*
files.
- Run
To generate minified code for production, run npm run build
.
Code is build using "Microbundle".
-
npm install
- installs all modules that are listed on package.json file and their dependencies.. -
npm update
- updates all packages in the node_modules directory and their dependencies.. -
npm run
- list all possible npm run commands. (help) -
npm run build
- rebuilds alldist/*
files. -
npm run dev
- rebuilds onlydist/tobii.js
. -
npm run dev-modern
- rebuilds onlydist/tobii.module.js
. Can be used withdemo/modern.html
. -
npm run lint
- validatessrc/*
code using "eslint".