Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
@gasket/cli
Advanced tools
CLI for rapid application development
npm i -global @gasket/cli
The configure
lifecycle executes for each Gasket command.
Configuration for a Gasket session goes through a series of steps:
init
lifecycle is executedconfigure
lifecycleWhen the CLI starts up, it attempts to load the gasket.config
in its default
expected location, or as specified with [command options]. Plugins then have the
opportunity in the configure
lifecycle.
See the Configuration Guide for additional details.
With the Gasket CLI, you can run commands to create new apps, or commands that
perform actions with an app. In a terminal, you can run gasket
to see what
commands are available, and gasket help
to get more details on command.
Display help for Gasket CLI and commands, also available with the --help
option.
Usage: gasket [options] [command]
CLI for rapid application development with gasket
Options:
--gasket-config [gasket-config-path] Fully qualified Gasket config to load (default: "gasket.config")
-V, --version output the version number
-h, --help display help for command
Commands:
create [options] <appname> Create a new Gasket application
help [command] display help for command
Display expanded help output for a specific command.
gasket <cmd> --help
Using this flag allows preloading modules when the CLI starts up. The module
may be either a path to a file, or a node module name. Only CommonJS modules are
supported. This can be useful for loading instrumentation modules.
gasket start --require ./setup.js --require elastic-apm-node/start
Tests are written with jest
. They can be run &
debugged with npm
:
### Run all tests
npm test
### Run all unit or integration tests
npm run test:unit
npm run test:integration
### Run a single test file
npx mocha --require test/setup.js test/command.test.js
### Debug gasket within tests
DEBUG='gasket*' npm test
### Debug npm and gasket across two child process layers
DEBUG=gasket* GASKET_DEBUG_NPM=yes GASKET_DEBUG_TESTS=yes npx mocha --require test/setup.js test/integration/commands/create.test.js
If you want to use a local copy of the CLI has a drop-in replacement for the one
bundled in gasket
applications you can use --config
flag to manually specify
where the configuration is. NB you will need to install some additional
dependencies that Gasket apps come with so that the CLI can work properly. Be
sure to npm install --no-save
so you don't mutate the built in the
package.json
for this CLI:
# install extra dependencies
npm install --no-save @gasket/preset-nextjs @gasket/redux next react-dom
# run `gasket local`, for example
./bin/run local --config /path/to/gasket.config.js
FAQs
CLI for rapid application development with gasket
We found that @gasket/cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.