Build
Build your Roam extension for use in production
The RoamJS Scripts
build
command compiles your extension in production mode with NODE_ENV=production
. It handles compiling both typescript
and javascript
, while expecting all of these files to be in a root-level src
directory. The output is bundled into a single minified javascript file called main.js
, outputted to a root-level directory called build
. It also assumes that the entry point file is either named index.[t|j]s
or the name of the extension found in the name
field of the package.json
.Add the following script to your
package.json
:"build": "roamjs-scripts build"
Then run the following command from the command line:
npm run build
Last modified 2yr ago