<commit_before>#Frontify

## Synchronizing the FEF patterns to Frontify


FEF patterns can be synced to the srf frontify project by using the following command:

```gulp frontify --token xxxxxxxxxxxxxxx```

## What happens in the sync task?

1. Existing  "/public/assets" and "/export/" folders are deleted.

2. FEF patternlab is built and placed in the  "/public/" folder (using the standard `gulp build` task).

3. A patternlab export is generated into the "/export/" folder.

4. Some of the asset paths within the .html-files of the "/export/" folder are changed to a frontify compatible path.

5. The javascript files  "/public/assets/js/vendor.js" and  "/public/assets/js/bundle.js" are concatinated and saved as a new  "/public/assets/frontify/frontify-bundle.js" file

6. The patterns from the "/export/" folder are synced via frontify api to frontify

7. The assets from the  "/public/assets/" folder are synced via frontify api to frontify<commit_msg>better description of the gulp task in the documentation<commit_after>#Frontify

## Synchronizing the FEF patterns to Frontify

FEF patterns can be synced to the srf frontify project by using the following command:

```gulp frontify --token <access_token>```

`<access_token>` is the frontify access token (it's stored in our password safe).


## What happens in the sync task?

1. Existing  "/public/assets" and "/export/" folders are deleted.

2. FEF patternlab is built and placed in the  "/public/" folder (using the standard `gulp build` task).

3. A patternlab export is generated into the "/export/" folder.

4. Some of the asset paths within the .html-files of the "/export/" folder are changed to a frontify compatible path.

5. The javascript files  "/public/assets/js/vendor.js" and  "/public/assets/js/bundle.js" are concatinated and saved as a new  "/public/assets/frontify/frontify-bundle.js" file.

6. The patterns from the "/export/" folder are synced via frontify api to frontify.

7. The assets from the  "/public/assets/" folder are synced via frontify api to frontify.
{'fraction_non_alphanumeric': 0.09033203125, 'fraction_numerical': 0.0068359375, 'mean_word_length': 3.901913875598086, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1726668', 'n_tokens_mistral': 600, 'n_tokens_neox': 580, 'n_words': 281}