
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
@player-tools/cli
Advanced tools
Config files are able to customize the behavior of the CLI commands without requiring args. Behavior specific to execution can leverage plugins
, which can be composed together using presets
. Full configs can also be shared using extensions
.
To resolve a full configuration, the extension
is taken as the base, the presets
are applied in order, then local plugins
.
The format is similar to eslint
, babel
and other .rc/json/js based approaches.
Config files are searched using cosmiconfig, which will look for:
player
property in package.json.playerrc
file in JSON or YAML format.player.json
, .playerrc.yaml
, .playerrc.yml
, .playerrc.js
, or .playerrc.cjs
fileplayer.config.js
or player.config.cjs
CommonJS module exporting an objectExample:
module.exports = {
extends: '@my-scope/base',
plugins: [
'plugin-npm-package',
['some-plugin-with-config', { config: true }],
{
// Plugins can also be defined inline
handler: () => {},
},
],
};
Options defined via the CLI arguments will take precedence over the config files (for things that overlap).
Plugins are the way to change runtime behavior of the CLI actions. This includes augmenting the behavior of the DSL compiler, language-service, and more.
player dsl compile
Compile Player DSL files into JSON
USAGE
$ player dsl compile -i <value> [-c <value>] [-o <value>] [--skip-validation]
FLAGS
-c, --config=<value> Path to a specific config file to load.
By default, will automatically search for an rc or config file to load
-i, --input=<value> (required) An input directory to compile.
Any jsx/ts/tsx files will be loaded via babel-require automatically.
-o, --output=<value> [default: _out] Output directory to write results to
--skip-validation Option to skip validating the generated JSON
DESCRIPTION
Compile Player DSL files into JSON
player dsl validate
Runs isolated TSC type-checking instance on authored Player DSL Typescript files.
USAGE
$ player dsl validate [-f <value>] [-c <value>]
FLAGS
-c, --config=<value> Path to a specific config file to load.
By default, will automatically search for an rc or config file to load
-f, --files=<value>... A list of files or globs to validate
DESCRIPTION
Runs isolated TSC type-checking instance on authored Player DSL Typescript files.
FAQs
## Config
We found that @player-tools/cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.