In order to use a warped module from a Browser or a Node.js script, you need first to transform the module you want to warp in a warped module by using the
build WarpJS SDK command.
In that command you specify an output format to generate the appropriate module file you can import in the browser, or require in a Node.js script.
The module file can be pushed where you would like, in an npm module, on an url, on a local filesystem, or used within a builder to build your app or module.
We provide documentation on how to import it
Our WarpJS SDK provides a set of commands to create, run and deploy a warped module.
There are 4 main commands:
warp dev, and
warp build generates a warped module to specific outputs. An output defines the type/format of module to generate, and where to create it.
warp emulator starts a module emulation so you can run the module on your computer to test it.
warp emulatorcommands you create the CI workflow you need to test your warped modules
warp dev provides you a way to develop with live reload. It builds and starts an emulator, and at each change of your module code it rebuilds and restarts the emulator.
warp deploy is used to deploy the warped module on an environment infrastructure.
To get all other available commands you can use
warp help. Please refer to the command line documentation for details and supported options.