Building your project locally
After defining a workflow, you can use thepara CLI to validate and build the workflow to prepare to upload it to the Paragon dashboard. Building workflows creates a subfolder in your project called out/ with auto-generated files.
You can build all workflows in your project with the build command:
Pushing your project to Paragon
Try Git Sync to configure an integration between your Paragraph files stored in a Git repository and your Paragon project.Git Sync keeps your Paragon project and Paragraph repository automatically in-sync.
push command in the CLI.
- If your workflow has previously been pushed to your Paragon project, this command will overwrite any changes that have been made to this workflow with the current contents of the Paragraph file that you are pushing.
- Workflows cannot be pushed to Staging or Production Release Environments. Create a Release to move integration updates from Development -> Staging -> Production.
-
Currently, you cannot use the
pushcommand to push or “copy” a project to a different Project ID. If your team requires this functionality, please reach out to discuss your needs and to get early access to a related feature we are working on: support@useparagon.com.- You can create a Release to move integration updates from Development -> Staging -> Production.
-
Do not attempt to modify
project.jsonorbuild.jsonto do this, as you may inadvertently cause workflows to be moved across projects.
Pulling changes from Paragon
To pull changes from the dashboard on a one-off basis to your Paragon project, first commit all pending changes in your local repository, and then use thepull command in the CLI.
- Any uncommitted changes may be overwritten by the
pullcommand. - As with the
pushcommand, any integrations or workflows that are absent from the source (your Paragon dashboard in thepullcase) will be removed from the destination (the local repository). The best way to reconcile these types of removals is with Git Sync, which will use your commits to sequence these changes.
Diagnosing build errors
The build command operates in 2 phases:- A TypeScript compilation runs to check types for all of your workflows and integration configurations.
-
The compilation result is evaluated to produce a build artifact to upload to Paragon, in
out/build.json.
If you are encountering many TypeScript compilation errors that should be ignored, you can attempt a build that suppresses these types of errors with the
--skip-type-errors flag:
- Delete the
dist/folder. - Delete the
tsconfig.tsbuildinfofile.