Skip to content

Commit

Permalink
snap: Quote "@babel/cli" to solve build error
Browse files Browse the repository at this point in the history
  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"
  • Loading branch information
anthonyfok committed May 12, 2020
1 parent a010386 commit b69a361
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: hugo
base: core
version: "0.71.0-DEV"
summary: Fast and Flexible Static Site Generator
description: |
Expand All @@ -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:
Expand Down Expand Up @@ -67,7 +69,9 @@ parts:
node:
plugin: nodejs
node-packages: [postcss-cli, @babel/cli]
node-packages:
- postcss-cli
- "@babel/cli"
filesets:
node:
- bin/node
Expand Down

0 comments on commit b69a361

Please sign in to comment.