Bug 1799207 - Part 2: Install lit when installing storybook r=hjones

Depends on D161341

Differential Revision: https://phabricator.services.mozilla.com/D161342
This commit is contained in:
Mark Striemer 2022-11-07 15:04:24 +00:00
parent 0fc1fc6ebf
commit 6af8cfa539

View File

@ -2,10 +2,7 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from mach.decorators import (
Command,
SubCommand,
)
from mach.decorators import Command, SubCommand
def run_mach(command_context, cmd, **kwargs):
@ -40,6 +37,12 @@ def storybook_launch(command_context):
description="Install Storybook node dependencies.",
)
def storybook_install(command_context):
# Bug 1790483: First, we need to make sure lit is installed
run_mach(
command_context,
"npm",
args=["run", "vendor", "--prefix=toolkit/content/vendor/lit"],
)
return run_npm(command_context, args=["ci"])