Smoke tests for the Metalsmith snap
First, build and install the snap:
$ sudo apt install git snapcraft
$ git clone https://github.com/elopio/metalsmith
$ cd metalsmith
$ git checkout snapcraft
$ snapcraft
$ sudo snap install *.snap --force-dangerous
Print the help:
$ metalsmith -h
$ metalsmith --help
Usage: _metalsmith [options]
Options:
[...]
Print the version:
$ metalsmith -V
$ metalsmith --version
2.2.0
Go to the example directory:
$ cd examples/wintersmith
Install some plugins:
$ /snap/metalsmith/current/bin/npm install metalsmith-markdown
$ /snap/metalsmith/current/bin/npm install metalsmith-permalinks
$ /snap/metalsmith/current/bin/npm install metalsmith-layouts
$ /snap/metalsmith/current/bin/npm install jade
Build the site:
$ metalsmith
Metalsmith · successfully built to [...]/metalsmith/examples/wintersmith/build
Open the site:
$ firefox build/index.html