
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
@ministryofjustice/fb-editor-node
Advanced tools
Form Builder Editor creates forms as configuration data for Form Builder Runner.
Node >= 12.4.0
git clone git@github.com:ministryofjustice/fb-editor-node.git
cd fb-editor-node
npm install
The SERVICE_PATH
environment variable describes the location on your file system of the form for Editor to use.
To set the SERVICE_PATH
environment variable, open a terminal and change into the root directory of Runner, then execute the command:
SERVICE_PATH=[path to form] npm start
(Where [path to form]
is a path to the location on your file system of the form. An Example Service form can be cloned from https://github.com/ministryofjustice/fb-example-service
.)
By default, Editor will start on localhost port 3000
.
To run on a different port, set the PORT
environment variable:
PORT=4321 SERVICE_PATH=[path to form] npm start
npm test
npm run lint
Some module paths are aliased.
At runtime they are resolved with @ministryofjustice/module-alias
. (Its definitions can be found in the _moduleAliases {}
field on package.json
.)
During development aliases can be resolved in different ways according to needs of the developer's IDE. A solution we provide is via Webpack, which is supported automatically in WebStorm and related IDEs, or with some manual steps.
At start-up WebStorm will report in the Event Log that "Module resolution rules from webpack.config.js
are now used for coding assistance" if the configuration is automatically identified -- if not, follow the manual steps:
lib
directory and select Mark Directory as > Resource root
Preferences > Languages & Frameworks > JavaScript > Webpack
then in the right-hand pane use the file browser to select webpack.config.js
from the package rootYou shouldn't need to restart but it won't hurt.
FAQs
Form Builder Editor (for Node)
The npm package @ministryofjustice/fb-editor-node receives a total of 42 weekly downloads. As such, @ministryofjustice/fb-editor-node popularity was classified as not popular.
We found that @ministryofjustice/fb-editor-node demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 15 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
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.