1.0.6 • Published 5 years ago

jss-umbrella v1.0.6

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

jss-umbrella

npm.io

codebeat badge npm.io npm.io npm.io npm.io SonarCloud Bugs SonarCloud Vulnerabilities

Umbrella for Sitecore JSS is a utility that synchronizes items from your Sitecore JSS website to a folder on your computer where you can work directly in your local JSS application even when you're offline. It pulls the current state of your app in Sitecore to your local state. It serves client and server side out of the box and you can deploy straight to docker in Azure. All can be done connected and disconnected.

Why? In Sitecore JSS you can choose between two developer workflow states. I think Sitecore First is the one to go with, but you cannot start without the Code First approach.

Installation

npm link jss-umbrella

Configuration

Usage

from the command line you can use:

umbrella

Options

SwitchAction
-t, --templatesSync all the templates from Sitecore
-p, --placeholdersSync all the placeholders from Sitecore
-m, --manifestsSync all the component manifests from Sitecore
-c, --contentSync all the content from your Sitecore JSS website
-d, --dryrunSync but do not write to disk
-x, --typescriptCreates manifests in TypeScript

By default, the script will generate JS files.

Examples

Help is shown when you run umbrella -h or umbrella --help

Sync placeholders:

umbrella -p 

Sync templates and write it in TypeScript:

umbrella -t -x

Sync component manifests and write it in TypeScript but do not write to disk:

umbrella -t -x -d