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.
block-template-html
Advanced tools
Block Protocol block template for an html-based block
See https://blockprotocol.org/docs/developing-blocks
TL;DR: Run npx create-block-app@latest [your-block-name] --template=html
Other templates are available. See npx create-block-app@latest --help
Change into the folder: cd path/to/your-block-name
Update block-metadata.json
and block-schema.json
to define your block's metadata and the properties it takes.
Write your block starting in app.html
. To test it during development:
edit dev/index.html
to give your block starting properties
run the dev server with yarn dev
(or npm run dev
)
When finished, run yarn build
(or npm run build
), which:
block-metadata.json
to load a block and its schema. This file is documented in full here.Please see the Block Protocol docs for help in creating and updating data from your block.
You can format your code using yarn format
(or npm run format
).
N.B.
Head over to blockprotocol.org to read instructions on publishing your block.
This template assumes there is no bundling process. You will need to reference external dependencies using ES Modules. Tools like esm.sh or unpkg.com can make this much easier.
The Block Protocol does not currently support externals
when using HTML blocks.
The component can be debugged locally by first starting yarn dev
.
Now (using VS Code), go to the Debug tab, select "Launch Chrome" and start the debugger (F5).
You should now be able to set breakpoints and step through the code.
FAQs
Block Protocol block template for an html-based block
The npm package block-template-html receives a total of 5 weekly downloads. As such, block-template-html popularity was classified as not popular.
We found that block-template-html demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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.