- Clone this repo
npm i
npm run build
This will create three folders:
dist
: compiled source files, suitable for the serversdk
: bundled and minified versions of the library, suitable for browser environmentsdocs
documentation generated from source code
npm run watch
- this will do an initial build, then build on any changes to srcnpm run unittest
- run tests in the /tests/unit foldernpm run test
- run tests in /tests/integration AND /tests/unit folders- tests require the following environment variables to be set:
CLARIFAI_API_KEY
- tests require the following environment variables to be set:
npm run clean
- empty and remove the folders created on build
--stage
- if set will build with the env vars found ingulpfile.js
. Possible values are:dev
(default),test
,staging
,prod
To compile docs, run npm run jsdocs