Skip to content

Proton Beta 5

Pre-release
Pre-release
Compare
Choose a tag to compare
@joeworkman joeworkman released this 22 Dec 04:26
· 23 commits to develop since this release
v0.5.0
4810fd0

Updates

  • New watch command allows you to spin up a local server and recompile templates as they are updated.
  • New init --template option allows you to create a new project based off a pre-defined template. Only sites works as an value for now.
  • New Proton template with Foundation for Sites: https://github.com/foundation/proton-sites-template
  • Sitemap fixes
  • Better file cleanup

Watch

The new watch feature requires the following NPM packages to be installed in your repo.

yarn add browser-sync chokidar -D

There are 2 new configuration values for this:

npmBuild: yarn
devserver: browsersync
  • npmBuild is the command that would be run via terminal to build the NPM released for this site. The default is yarn build.
  • devserver has two possible options at this time: browsersync and php

Init Template

Right now, only one template exists for Proton. It uses Foundation for Sites as its base. You can create a new project using this template via terminal. The folder that you create this project in must be blank.

$ proton init --template=sites
$ yarn install

You can also pass any GitHub URL to the template option and it will clone that repo as a template. Feel free to start creating your own templates for proton.

How to Update

You can update proton simply by running proton self-update. Enjoy the update!