![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
@gasket/plugin-git
Advanced tools
This a built-in plugin to the Gasket CLI used to set up new apps with git repositories when using the gasket create command.
The features of this plugin hooks are in the lifecycles it hooks during the create process.
The prompt
will ask users during the create command if they wish to initialize
a git repo or not. This prompt will set the gitInit
property of the create
context. It is possible to default this in a preset, by setting this in the
preset's package.json, under a gasket.create
property.
In the following example, when a new app is created with this preset, a git repo will always be initialized, and the user not prompted.
{
"name": "gasket-preset-example",
"version": "1.2.3",
"main": "index.js",
"dependencies": {
"@gasket/resolve": "^2.0.0",
"gasket-plugin-example": "^1.0.0"
},
"gasket": {
"create" : {
"gitInit": true
}
}
}
During the create
lifecycle, .gitignore and .gitattributes templates will be
registered to be generated for the app.
After all the app contents are generated, this plugin's postCreate hook will
make a first commit for the generated files. The timing for this hook is set to
run last. It is important when creating plugins that implement postCreate
hooks, that their timings do come after the Git plugin, especially if
modifying files, otherwise those modifications will not be part of the first
commit.
See plugin hook timings for more information.
FAQs
Adds git support to your application
The npm package @gasket/plugin-git receives a total of 147 weekly downloads. As such, @gasket/plugin-git popularity was classified as not popular.
We found that @gasket/plugin-git demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 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
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.