Commit Graph

4 Commits

Author SHA1 Message Date
Sorin Sbarnea ad3167bd56 Fixes all tasks should be named rule
This prepared for ansible-lint v5 which no longer has exceptions
for task naming, requiring all to be named.

Change-Id: I5e761d1e3836fa270d7afdcf01780320001f820d
Part-Of: #773245
2021-03-08 13:30:32 +00:00
Monty Taylor 202cce830e Add new non-npm specific javascript jobs
We have a bunch of jobs that are built around the npm role, but
for projects using yarn, that can lead to ignoring yarn.lock.

For projects with a yarn.lock, we can assume the user wants to
use yarn. Make a new js-package-manager role that can detect
if that's the case and otherwise use npm. Make an js_build_tool
parameter that allows the user to override that auto-detection.

Make a whole new suite of jobs that do this behavior, do not have
npm in their name, and default to the latest node LTS, version 14.

Don't install yarn if we're not going to use yarn. Also allow people
who want to use yarn but don't have a yarn.lock to override
js_build_tool everywhere we do that logic.

Mark the old jobs deprecated.

Shift the npm and yarn roles to use the new js-package-manager role
with defaults set.

Change-Id: I8013228ca05607a69f390a9bb75991fc6543f865
2020-05-12 07:50:19 +02:00
James E. Blair 54dd1db16e Remove "--verbose" from yarn commands
This apparently gets passed to the subcommand, which may not
support a "--verbose" argument.

Change-Id: I8326403ea01f0121f6ff14c10d2cd1e4e7ca7c70
2019-02-08 14:23:01 -08:00
Monty Taylor 98aa9f9bb0
Add a yarn role
Projects using yarn for dependencies can just run yarn commands instead
of npm commands. Add a yarn role that allows a project to do that.

Change-Id: I48a722ca55c88c6330114da3a2c035b1f84f92e1
2018-07-27 09:34:22 -04:00