Feature Branches
Sygnal's preferred approach is to branch feature development to keep main clean and allow for freedom of experimentation and Webflow designer testing.
Typically we name our feature branches using the convention feature/NAME.
Creating a Feature Branch
Create your new feature branch, e.g.;
git checkout -b feature/NAMEWorking with a Feature Branch
In VSCode, you'll see the currently selected branch in the bottom-left corner;

Designer-Testing a Feature Branch
First, verify you're on the correct feature branch.
Will deploy the lib to your designated workspace, but as a Test version;
The Library name will end in
TestThe Library ID with a
-testsuffix
Sygnal's deployment setup is branch-aware and distinguishes between main and non-main branches. Any deployment of a non-main branch will be handled as a Test lib. In this setup, you can have only one Test lib at a time, so if you're developing multiple features, you can integration one at a time.
In the designer, you'll see your library as e.g. My Library Test v1.0.0 β οΈ
Install or update that library in your test project.
Add any components you want- it will
Merging a Feature Branch into Main
This outlines the basic process; make sure that if you're working in a team, that you use git pull origin to update your local copy.
In general we want to keep feature branches clean- so that they only contain the new component(s) you're building or refactoring.
Merging
In most cases we prefer to preserve branch history.
Replace NAME with the actual feature name.
From the main branch,
Update the version number in src/version.ts
Perform the feature branch merge, e.g.;
Then, usually cleanup by removing the feature branch;
Final Integration Review
With the feature now merged into main, retest to ensure the integration was successful.
Update the version.ts to reflect the new library version. This will be important for marketplace users, and for multiple-workspace distributions.
Deploy main to your testing workspace.
From main, this will deploy the library under its proper name, without the Test suffix.
Retest.
In the designer, accept the library revisions from the library panel.
Replace your Test library components with the production library components.
You can see both libraries, the test and the prod versions;

Important, currently there is no way to distinguish in the designer between test and production component versions, they will look identical in the left nav, and in the properties list during this replacement process.
To simplify this, select the old component, add the new one and it will position directly after. then copy-past your property settings.

Last updated