Deploy a Custom Developed Piece

Step 1: Build the Piece

npx nx build piece-name

Replace ‘name’ with the name of your piece.

Step 2: Navigate to the Build Directory

cd dist/packages/pieces/name

Replace ‘name’ with the actual name of your piece.

Step 3: Login to npm

npm login

Step 4: Publish Your Piece

npm publish
1 Like

I’m still a little unclear about this as a non programmer. A video (<5 min) would be amazing showing a noob how to set up their IDE to start this process. Or better, show us how to prompt chatgpt type environment to get it to do this. Just give us some prompts+system prompts which teach it to write a piece, in a 5 min video, and everyone will know what to do from there.

You need to know some basic TypeScript to create a piece. I can create a video walking through the entire flow, though it will probably take around 30 minutes to explain everything—it’s a bit too much to fit into 5 minutes :sweat_smile:

That said, the official docs are actually quite helpful if you have some programming experience.

1 Like

These steps aren’t really necessary—there’s already a command available to publish. I wasn’t aware of it earlier.

1 Like