
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Tool to configure, setup, build and publish npm plugins.
First setup a new project with npm init or by manually creating a package.json and then add this tool to the project.
npm i --save-dev padua
Alternatively, you can start with various templates:
npm init now padua ./my-plugin [template]
Replace [template] with one of the following available templates: default, node, react, typescript, react-typescript, test or cli.
Upon installation a start and test script along with the necessary configuration have already been added to your package.json unless they already existed.
npm startBuilds the plugin in watch mode. Full command npx padua watch [--clean].
npm testRun tests if there are any.
npx padua buildBuilds the plugin minified for distribution including types.
npx padua lintLints the code and prints errors.
npx padua release📦 Much simpler: Check out release-npm-action to automate releasing to npm.
npm publishpackage.json if yet unreleasednpx padua updateChecks if there are updates to any dependencies and automatically updates them.
The goal of this package is to allow you to create npm plugins just having to focus on writing the actual features.
Everything is zero-configuration but the configurations can easily be extended. To do that add
a padua property to your package.json with the following options available:
{
"name": "my-plugin",
"padua": {
// No build step, directly publish source files, default false.
"source": true,
// Output directory for build files, default 'dist'.
"output": "public",
// Is project written in TypeScript, automatically detected from extension (ts).
"typescript": true,
// Does the project include React, automatically detected from extension (jsx, tsx).
"react": true,
// Are there any tests, default false.
"test": true,
// Name of the entry files, automatically adds [src/]?index.[jt]sx? files if available.
"entry": "another.tsx",
"entry": ["another.js", "several.jsx"],
"entry": "theme/*.ts",
// package.json properties to be left untouched during configuration.
"ignorePkgProperties": ["engines", "eslintConfig.rules"],
// Additional tsconfig properties that will be added to the extended tsconfig.json.
"tsconfig": {
"compilerOptions": {
"types": [
"@types/jest"
]
}
},
// Additional configuration passed to esbuild.
"esbuild": {
"external": [
"naven"
]
},
// Add stylelint configuration, default false.
// true if @emotion/react, styled-components or jss installed.
"stylelint": true,
// Folders to ignore by lint and/or test tools, "output" folder always ignored.
// String => ignore for lint & test, disable either with `test: false` or `lint: false`.
"ignore": ['demo', { name: 'index.d.ts', test: false }, { name: 'test/fixture', lint: false }]
},
"eslintConfig": {
// Added automatically upon installation.
"extends": "./node_modules/padua/configuration/eslint.cjs"
// Override ESLint default here.
"rules": {
"no-console": 0
}
},
}
FAQs
Setup, configure, build and publish npm plugins.
We found that padua demonstrated a not healthy version release cadence and project activity because the last version was released 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.