hugo/testscripts/commands/mod_npm.txt

24 lines
360 B
Text
Raw Normal View History

# Test mod npm.
hugo mod npm pack
cmp package.hugo.json golden/package.hugo.json
-- hugo.toml --
baseURL = "https://example.org/"
-- package.json --
{
"name": "test",
"version": "1.0.0",
"dependencies": {
"mod": "foo-bar"
}
}
-- golden/package.hugo.json --
{
"name": "test",
"version": "1.0.0",
"dependencies": {
"mod": "foo-bar"
}
}