summaryrefslogtreecommitdiffstats
path: root/snap
diff options
context:
space:
mode:
authorAnthony Fok <foka@debian.org>2020-05-12 14:08:08 -0600
committerAnthony Fok <foka@debian.org>2020-05-12 14:29:57 -0600
commitb69a36140f42ec99ffa2d1e029b8b86ecf8ff929 (patch)
tree55e7f3a661339ea0e5d437621695f29e4320f181 /snap
parenta0103864ab76c6a1462a6dee538801740acf4858 (diff)
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"
Diffstat (limited to 'snap')
-rw-r--r--snap/snapcraft.yaml6
1 files changed, 5 insertions, 1 deletions
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
index cd76f197f..025c4a325 100644
--- a/snap/snapcraft.yaml
+++ b/snap/snapcraft.yaml
@@ -1,4 +1,5 @@
name: hugo
+base: core
version: "0.71.0-DEV"
summary: Fast and Flexible Static Site Generator
description: |
@@ -7,6 +8,7 @@ description: |
with content and templates and renders them into a full HTML website.
confinement: strict
grade: devel # "devel" or "stable"
+license: Apache-2.0
apps:
hugo:
@@ -67,7 +69,9 @@ parts:
node:
plugin: nodejs
- node-packages: [postcss-cli, @babel/cli]
+ node-packages:
+ - postcss-cli
+ - "@babel/cli"
filesets:
node:
- bin/node