snap: Quote "@babel/cli" to solve build error

Cannot parse snapcraft.yaml from ~gohugoio/hugo/+git/hugo:master:
  while scanning for the next token found character ‘@’ that cannot
  start any token in “”, line 70, column 34: node-packages:
  [postcss-cli, @babel/cli] ^

Also:

- Upgrade to snapcraft 3.x by adding "base: core"
- Add "license: Apache-2.0"
This commit is contained in:
Anthony Fok 2020-05-12 14:08:08 -06:00
parent a0103864ab
commit b69a36140f
No known key found for this signature in database
GPG key ID: EA2500B412C59ACF

View file

@ -1,4 +1,5 @@
name: hugo name: hugo
base: core
version: "0.71.0-DEV" version: "0.71.0-DEV"
summary: Fast and Flexible Static Site Generator summary: Fast and Flexible Static Site Generator
description: | description: |
@ -7,6 +8,7 @@ description: |
with content and templates and renders them into a full HTML website. with content and templates and renders them into a full HTML website.
confinement: strict confinement: strict
grade: devel # "devel" or "stable" grade: devel # "devel" or "stable"
license: Apache-2.0
apps: apps:
hugo: hugo:
@ -67,7 +69,9 @@ parts:
node: node:
plugin: nodejs plugin: nodejs
node-packages: [postcss-cli, @babel/cli] node-packages:
- postcss-cli
- "@babel/cli"
filesets: filesets:
node: node:
- bin/node - bin/node