Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@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
The npm package @gasket/cli receives a total of 27 weekly downloads. As such, @gasket/cli popularity was classified as not popular.
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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.