@sonarsource/marketing-gatsby-boilerplate

5.0.0 • Public • Published

Boilerplate commands

Purpose

  • Initialize a new Gatsby/Kentico Kontent/Netlify project while respecting the Martech team standards
  • Streamline development (Git workflow, Netlify synchronization, Kentico Kontent environments)
  • (To be implemented) Allow for easy update of existing projects using the boilerplate

How to use it

You can see the list of commands by running npx @sonarsource/marketing-gatsby-boilerplate -h.

for reach command, you can obtain even more informations on it (arguments, options, etc) by running npx @sonarsource/marketing-gatsby-boilerplate COMMAND -h (example: npx @sonarsource/marketing-gatsby-boilerplate release -h)

Table of contents

Commands

Create an environment

After creating a branch, you can create an environment dedicated to it by running the environment --create --scope production or environment --create --scope develop command, depending on the environment you want to work from. If an environment already exists, you'll be asked wether to use it, or delete and re-create it.

This new environment will be yours to play with, creating migrations, modifying content, etc.

Finish an environment

Once done with your changes, you will need to run the environment --finish command. This command will delete your Kontent environment, and run any new migrations you have created against the source environment (a.k.a the environment your environment was cloned from).

Release --create and --finish

For these, see the Release process

Troubleshooting

Netlify Forbidden error

Error: Netlify error

Solution:

Log out of Netlify using yarn netlify logout, and re-run your command. Also make sure the account you are logging in has access to the Netlify projects setup in the status.json file

Readme

Keywords

none

Package Sidebar

Install

npm i @sonarsource/marketing-gatsby-boilerplate

Weekly Downloads

156

Version

5.0.0

License

MIT

Unpacked Size

205 kB

Total Files

80

Last publish

Collaborators

  • saberduck
  • gabssnake
  • elena-vilchik
  • andrea-guarino-sonarsource
  • gregaubert
  • sonar-jay
  • philippe-perrin-sonarsource
  • xay.tanovan
  • wouter-admiraal-sonarsource
  • mathieu-sonar
  • antonio.garcia.sonarsource
  • tomverin
  • jcarsique-sonar
  • yassin-kammoun-sonarsource
  • sonartech
  • lucio.merotta.sonarsource
  • lpaulger_sonarsource