mirror of
https://github.com/discourse/discourse.git
synced 2024-12-24 01:36:27 +08:00
a10dcffb73
Non-bundled plugins have their own linting configs/commands, and should not be linted by these package.json commands
17 lines
390 B
Bash
Executable File
17 lines
390 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# This script lists all bundled plugins in the Discourse project.
|
|
# It accepts an optional suffix argument that will be appended to each plugin name.
|
|
#
|
|
# Usage:
|
|
# ./list_bundled_plugins [suffix]
|
|
#
|
|
# Arguments:
|
|
# suffix: An optional string to append to each plugin name.
|
|
#
|
|
|
|
set -e -u -o pipefail
|
|
|
|
suffix=${1:-}
|
|
git ls-tree --name-only -d HEAD plugins/* | sed "s|$|$suffix|"
|