0.2.14 • Published 3 years ago

@ministryofjustice/fb-editor-node v0.2.14

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

fb-editor-node

Form Builder Editor creates forms as configuration data for Form Builder Runner.

Pre-requisites

Node >= 12.4.0

Installation

git clone git@github.com:ministryofjustice/fb-editor-node.git
cd fb-editor-node
npm install

Usage

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

Testing

npm test

Linting

npm run lint

Module Aliases

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:

  1. Right-click on the lib directory and select Mark Directory as > Resource root
  2. From the application menu select Preferences > Languages & Frameworks > JavaScript > Webpack then in the right-hand pane use the file browser to select webpack.config.js from the package root

You shouldn't need to restart but it won't hurt.

0.2.14

3 years ago

0.2.13

4 years ago

0.2.12

4 years ago

0.2.11

4 years ago

0.2.10

4 years ago

0.2.9

5 years ago

0.2.8

5 years ago

0.2.7

5 years ago

0.2.6

5 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.1

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.0

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.0.198

5 years ago

0.0.197

5 years ago

0.0.196

5 years ago

0.0.195

5 years ago

0.0.194

5 years ago

0.0.193

5 years ago

0.0.192

5 years ago

0.0.191

5 years ago

0.0.190

5 years ago

0.0.189

5 years ago

0.0.188

5 years ago

0.0.187

5 years ago

0.0.186

5 years ago

0.0.185

5 years ago

0.0.184

5 years ago

0.0.183

5 years ago

0.0.181

5 years ago

0.0.180

5 years ago

0.0.178

5 years ago

0.0.177

5 years ago

0.0.176

5 years ago

0.0.175

5 years ago

0.0.173

5 years ago

0.0.169

5 years ago

0.0.168

5 years ago

0.0.165

6 years ago

0.0.163

6 years ago

0.0.162

6 years ago

0.0.161

6 years ago

0.0.153

6 years ago

0.0.137-alpha

6 years ago

0.0.89-alpha

7 years ago