@fontoxml/fontoxml-development-tools
Development tools for Fonto.
Last updated 2 months ago by evandervalk .
MIT · Original npm · Tarball · package.json
$ cnpm install @fontoxml/fontoxml-development-tools 
SYNC missed versions from official npm registry.

fontoxml-development-tools NPM version

The Fonto Development Tools are command-line tools which offer support for developers when configuring Fonto Editor instances and its complementary products, and facilitate running them locally for testing purposes. They act as a gateway to the Fonto SDK and can be used for creating and updating editor instances, and preparing XML schemas for use with Fonto.

Installation

Node

The tools require NPM on Node.js® version 10.13.0 or higher, which are freely available. An active or maintenence LTS release is recommended. After installing Node.js, you can install the latest version of the Fonto Development Tools globally on your system using the following command:

npm i -g @fontoxml/fontoxml-development-tools

Alternatively, the tools can be installed locally for your project using the following command:

npm install --save-dev @fontoxml/fontoxml-development-tools

tip: You can use Node Version Manager on Linux/MacOS or its Windows counterpart to install and use multiple version of Node.js on a single system. This is useful if you develop different projects with different versions of Node.js.

Docker

Certain commands, like review run and review build, require Docker Community Edition to be installed.

tip: Docker places their installers behind an unnecessary login. Use the following direct links to avoid having to create an account: Windows installer, macOS installer. For Linux, Docker Community Edition is usually available through package managers.

Usage

Get help for the available commands:

fontoxml-development-tools --help

Get help for a specific command, detailing all its arguments:

fontoxml-development-tools <command> --help

Output the current version:

fontoxml-development-tools --version

Use the fdt shorthand instead of fontoxml-development-tools:

fdt <command> --help

Development license

Certain commands, like editor, connectors and content-quality, require a valid developer license file on your system and the permissions to run them. A license file fonto.lic can be stored in either of these locations:

  • In your user home directory ($HOME on linux/MacOS, or %homepath% on Windows).
  • In an ancestor folder of where you are running the fdt command.

Verify that your license file is installed correctly by running the fdt license validate command.

To obtain a license file, or to obtain additional permissions, please contact us at https://fontoxml.com/contact-us/ or reach out to your Fonto contact if you have one available. License files are personal and we disadvice to store them in any version control system you might have.

Usage examples

Licensing

Validate and update the currently installed license file:

fdt license validate

Schema

Output a table with information about all attributes in a schema:

fdt attributes [--schema <schemaPath>] [--columns name ns use defaultvalue ...]

Output schema information about a specific attribute, including all its definitions:

fdt attribute <attributeName> [--schema <schemaPath>]

Output a table with information about all elements in a schema:

fdt elements [--schema <schemaPath>] [--columns name ns local desc atts ...]

Output schema information about a specific element, including detailed content model info:

fdt element <elementName> [--schema <schemaPath>]

Output a table with information about all schemas:

fdt schemas [--columns package locations path]

Output a table with information about all simple types in a schema:

fdt simpletypes [--columns name variety format]

Operations

Output a table with information about all operations in a repository:

fdt operations [--columns name file label desc key ...]

Output information about a specific operation:

fdt operation <operationName>

Localization

Extract messages from packages and save them in a message bundle template:

fdt localization extract [<output>] [--paths <package1> [<package2> ...]]

Merge multiple message bundles into a single bundle:

fdt localization merge [<output>] --bundles <bundle1> <bundle2> [<bundle3> ...]

Update message bundle with a new template bundle:

fdt localization update <output> <bundle> [--output-to-stdout]

Output a table with information about all messages in a message (template) bundle:

fdt localization messages <bundle> [--search-in <search text>] [--search-out <search text>] [--search-package <search text>] [--search-file <search text>] [--with-conflicts] [--without-conflicts] [--with-out] [--without-out] [--no-table]

Editor

Create a new instance of Fonto Editor:

fdt editor init [<output>] [--version <version|'nightly'>] [--name <name>] [--schema <path>] [--add-ons <addonName> [<addonName> ...]] [--non-interactive]

Upgrade an instance of Fonto Editor:

fdt editor upgrade [--version <version|'nightly'>] [--non-interactive] [--remove-backup]

Add add-ons to, or remove add-ons from, a Fonto Editor instance:

fdt editor add-ons [--add <addonName> [<addonName> ...]] [--remove <addonName> [<addonName> ...]] [--add-ons <addonName> [<addonName> ...]] [--non-interactive] [--remove-backup]

Start a development server for running a Fonto Editor instance:

fdt editor run [--body-parser-limit <limit>] [--cache-control-disabled] [--cache-control-max-age <maxAge>] [--delay <delay>] [--disable-dist-authentication] [--dist] [--lock-not-acquired] [--lock-not-available] [--memory-store-ttl <seconds>] [--open] [--port] [--release-locks-on-state-request] [--savemode <savemode>] [--verbose]

Create a build version of a Fonto Editor instance for production usage:

fdt editor build [--no-mangle]

Compile a XSD schema to a schema format which can be used by Fonto Editor:

fdt editor schema compile [<input>] [--overwrite] [--version <version|'nightly'>]

Connectors

Initialize a Fonto Connectors instance in an empty or non-existent directory:

fdt connectors init [--location <path>] --version <version>

Run a Fonto Connectors instance with a self-signed certificate to test your configuration:

fdt connectors run [--location <path>] [--config-location <path>]

Build a Fonto Connectors docker image for production use:

fdt connectors build [--location <path>] [--image-name <image-name>] [--image-tag <image-tag>]

Upgrade an existing Fonto Connectors instance to the specified version:

fdt connectors upgrade [--location <path>] --version <version>

Download a self-contained build:

fdt connectors download-self-contained --version <version> --runtime <runtime> [--location <path>]

Content Quality

Initialize a Fonto Content Quality instance in an empty or non-existent directory:

fdt content-quality init [--location <path>] --version <version>

Run a Fonto Content Quality instance to test your configuration:

fdt content-quality run [--location <path>] [--config-location <path>] [--port]

Build a Fonto Content Quality docker image for production use:

fdt content-quality build [--location <path>] [--image-name <image-name>] [--image-tag <tag>]

Upgrade an existing Fonto Content Quality instance to the specified version:

fdt content-quality upgrade [--location <path>] --version <version>

Download a self-contained build:

fdt content-quality download-self-contained --version <version> --runtime <runtime> [--location <path>]

Document History

Download a self-contained build:

fdt document-history download-self-contained --version <version> --runtime <runtime> [--location <path>]

Review

Download a self-contained build:

fdt review download-self-contained --version <version> --runtime <runtime> [--location <path>]

Schema Compiler

Download a self-contained build:

fdt schema-compiler download-self-contained --version <version> --runtime <runtime> [--location <path>]

Spell Checker

Download a self-contained build:

fdt spell-checker download-self-contained --version <version> --runtime <runtime> [--location <path>]

Current Tags

  • 3.2.0-beta.2                                ...           beta (19 days ago)
  • 3.1.1                                ...           latest (2 months ago)

89 Versions

  • 3.2.0-beta.2                                ...           19 days ago
  • 3.2.0-beta.1                                ...           21 days ago
  • 3.1.1                                ...           2 months ago
  • 3.1.1-beta.1                                ...           2 months ago
  • 3.1.0                                ...           2 months ago
  • 3.1.0-beta.4                                ...           2 months ago
  • 3.1.0-beta.3                                ...           2 months ago
  • 3.1.0-beta.2                                ...           3 months ago
  • 3.1.0-beta.1                                ...           3 months ago
  • 3.0.0                                ...           5 months ago
  • 3.0.0-beta.8                                ...           6 months ago
  • 3.0.0-beta.7                                ...           6 months ago
  • 3.0.0-beta.6                                ...           6 months ago
  • 3.0.0-beta.5                                ...           6 months ago
  • 3.0.0-beta.4                                ...           6 months ago
  • 3.0.0-beta.3                                ...           6 months ago
  • 3.0.0-beta.2                                ...           6 months ago
  • 3.0.0-beta.1                                ...           6 months ago
  • 2.6.0-beta.1                                ...           8 months ago
  • 2.5.0                                ...           8 months ago
  • 2.5.0-rc.6                                ...           8 months ago
  • 2.5.0-rc.5                                ...           8 months ago
  • 2.5.0-rc.4                                ...           8 months ago
  • 2.5.0-rc.3                                ...           8 months ago
  • 2.5.0-rc.2                                ...           9 months ago
  • 2.5.0-rc.1                                ...           9 months ago
  • 2.5.0-beta.8                                ...           9 months ago
  • 2.5.0-beta.7                                ...           9 months ago
  • 2.5.0-beta.6                                ...           9 months ago
  • 2.5.0-beta.5                                ...           9 months ago
  • 2.5.0-beta.4                                ...           9 months ago
  • 2.5.0-beta.3                                ...           10 months ago
  • 2.5.0-beta.2                                ...           10 months ago
  • 2.5.0-beta.1                                ...           a year ago
  • 2.4.2                                ...           a year ago
  • 2.4.1                                ...           a year ago
  • 2.4.1-rc.1                                ...           a year ago
  • 2.4.0                                ...           a year ago
  • 2.4.0-rc.7                                ...           a year ago
  • 2.4.0-rc6                                ...           a year ago
  • 2.4.0-rc5                                ...           a year ago
  • 2.4.0-rc4                                ...           a year ago
  • 2.4.0-rc3                                ...           a year ago
  • 2.4.0-rc2                                ...           a year ago
  • 2.4.0-rc1                                ...           a year ago
  • 2.3.1                                ...           a year ago
  • 2.3.1-rc6                                ...           a year ago
  • 2.3.1-rc5                                ...           a year ago
  • 2.3.1-rc4                                ...           a year ago
  • 2.3.1-rc3                                ...           a year ago
  • 2.3.1-rc2                                ...           a year ago
  • 2.3.1-rc1                                ...           a year ago
  • 2.3.0                                ...           a year ago
  • 2.2.0                                ...           a year ago
  • 2.1.0                                ...           a year ago
  • 2.1.0-rc10                                ...           a year ago
  • 2.1.0-rc9                                ...           a year ago
  • 2.1.0-rc8                                ...           a year ago
  • 2.1.0-rc7                                ...           a year ago
  • 2.1.0-rc6                                ...           a year ago
  • 2.1.0-rc5                                ...           a year ago
  • 2.1.0-rc4                                ...           a year ago
  • 2.1.0-rc3                                ...           a year ago
  • 2.1.0-rc2                                ...           a year ago
  • 2.1.0-rc1                                ...           2 years ago
  • 2.0.2                                ...           2 years ago
  • 2.0.1                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 2.0.0-rc11                                ...           2 years ago
  • 2.0.0-rc10                                ...           2 years ago
  • 2.0.0-rc9                                ...           2 years ago
  • 2.0.0-rc8                                ...           2 years ago
  • 2.0.0-rc7                                ...           2 years ago
  • 2.0.0-rc6                                ...           2 years ago
  • 2.0.0-rc5                                ...           2 years ago
  • 2.0.0-rc4                                ...           2 years ago
  • 2.0.0-rc3                                ...           2 years ago
  • 2.0.0-rc2                                ...           2 years ago
  • 2.0.0-rc1                                ...           2 years ago
  • 1.5.0                                ...           2 years ago
  • 1.4.0                                ...           2 years ago
  • 1.3.0                                ...           2 years ago
  • 1.2.3                                ...           2 years ago
  • 1.2.2                                ...           2 years ago
  • 1.2.1-rc1                                ...           2 years ago
  • 1.2.0                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 2
Last Month 138
Dev Dependencies (7)

Copyright 2014 - 2016 © taobao.org |