
Product
Introducing Reports: An Extensible Reporting Framework for Socket Data
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.
@automattic/newspack-blocks
Advanced tools
=== Newspack Blocks === Contributors: (this should be a list of wordpress.org userid's) Donate link: https://example.com/ Tags: comments, spam Requires at least: 4.5 Tested up to: 5.1.1 Stable tag: 0.1.0 License: GPLv2 or later License URI: https://www.gn
This plugin is meant to serve as a container for most Newspack Gutenberg blocks. There may be certain blocks that relate to specific functionality in other plugins, in which case they would live with the primary functionality, but besides this exception most will live in this one.
To get set up for block development, run composer install && npm install
To generate a build of the current blocks, run npm run build.
To clean out the built blocks, run npm run clean.
To work on Block development and have Webpack watch your files for changes run: npm start.
is performed on changed files before commiting. In other words, is run during pre-commit git hook, but only on staged files. The hook is configured in composer.json.
| PHP | JS | SCSS | |
|---|---|---|---|
| tool | PHPCS | eslint | stylelint |
| config | .phpcs.xml.dist | .eslintrc.js | .stylelintrc |
| run manually | composer lint | npm run lint:js | npm run lint:scss |
| autofix ✨ | ./vendor/bin/phpcbf <file> | npm run lint:js -- --fix | npm run lint:scss -- --fix |
To get started with a new block:
src/index.js and change name and title definitions.production array in src/setup/blocks.json$newspack_blocks_blocks array in newspack-blocks.phpnpm run build. If all went smoothly, you should see a Newspack category in the block picker, and your block should appear within it.FAQs
=== Newspack Blocks === Contributors: (this should be a list of wordpress.org userid's) Donate link: https://example.com/ Tags: comments, spam Requires at least: 4.5 Tested up to: 5.1.1 Stable tag: 0.1.0 License: GPLv2 or later License URI: https://www.gn
The npm package @automattic/newspack-blocks receives a total of 1,105 weekly downloads. As such, @automattic/newspack-blocks popularity was classified as popular.
We found that @automattic/newspack-blocks demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 55 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.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.