@fontoxml/fontoxml-development-tools 3.12.0-beta.1 → 3.13.0-nightly.20221123233045
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{.fdtrc → .fdtrc.base} +0 -0
- package/README.md +4 -4
- package/bitbucket-pipelines.yml +49 -4
- package/index.js +1 -1
- package/npm-shrinkwrap.json +1036 -898
- package/package.json +3 -3
- package/src/App.js +66 -48
- package/src/BackendAppRepository.js +248 -0
- package/src/ConfigManager.js +20 -18
- package/src/EditorRepository.js +40 -4
- package/src/FdtLicense.js +27 -27
- package/src/ModuleRegistrationApi.js +20 -7
- package/src/addModulesToApp.js +20 -18
- package/src/createConfigFile.js +13 -0
- package/src/enrichRequestObject.js +8 -6
- package/src/formatVersion.js +70 -0
- package/src/getParentDirectoryContainingFileSync.js +84 -30
- package/src/modules/content-quality/instanceTemplate/.fontoxmlFcqManifest +0 -0
- package/src/modules/core/index.js +68 -27
- package/src/modules/core/src/command.fdt.js +1 -1
- package/src/modules/core/src/command.who.js +0 -18
- package/src/modules/core/src/precontroller.help.js +2 -2
- package/src/modules/document-history/instanceTemplate/.fontoxmlFdhManifest +0 -0
- package/src/modules/editor/command.editor.controller.js +9 -0
- package/src/modules/editor/index.js +22 -0
- package/src/modules/editor/src/babelPlugins/recastPlugin.cjs +4 -1
- package/src/modules/editor/src/getAppManifest.js +3 -3
- package/src/modules/editor-pre-7-7-0/instanceTemplate/manifest.json +0 -0
- package/src/modules/editor-pre-7-7-0/instanceTemplate/messages-template.json +0 -0
- package/src/modules/editor-pre-7-7-0/instanceTemplateTypeScript/manifest.json +0 -0
- package/src/modules/editor-pre-7-7-0/instanceTemplateTypeScript/messages-template.json +0 -0
- package/src/modules/editor-pre-7-7-0/src/api/addCommentToAstNode.js +35 -6
- package/src/modules/editor-pre-7-7-0/src/api/init/createConfigConfiguration.js +25 -14
- package/src/modules/editor-pre-7-7-0/src/api/init/createSchemaExperienceResolver.js +12 -6
- package/src/modules/editor-pre-7-7-0/src/api/schema/buildElementConfigurations.js +1 -1
- package/src/modules/editor-pre-7-7-0/src/api/schema/createSchemaExperiencePackages.js +1 -1
- package/src/modules/editor-pre-7-7-0/src/command.init.controller.js +70 -12
- package/src/modules/editor-pre-7-7-0/src/command.upgrade.controller.js +1 -1
- package/src/modules/editor-pre-7-7-0/test/api/init/createConfigConfiguration.test.js +42 -6
- package/src/modules/editor-pre-7-7-0/test/api/init/fixtures/configjs-DEV-16001.js +52 -0
- package/src/modules/localization/test/index.test.js +3 -1
- package/src/modules/review/instanceTemplate/.fontoxmlReviewManifest +0 -0
- package/src/modules/schema-compiler/instanceTemplate/.fontoxmlSchemaCompilerManifest +0 -0
- package/src/modules/shared/src/addBackendDockerCommands.js +75 -19
- package/src/modules/shared/src/addBackendDownloadSelfContainedCommands.js +5 -2
- package/src/modules/shared/src/addBackendVersionsCommands.js +33 -2
- package/src/modules/shared/src/controller-templates/checkInitDestination.js +36 -0
- package/src/modules/shared/src/controller-templates/command.backend.build.controller.factory.js +9 -18
- package/src/modules/shared/src/controller-templates/command.backend.download-self-contained.controller.factory.js +1 -1
- package/src/modules/shared/src/controller-templates/command.backend.init.controller.factory.js +20 -17
- package/src/modules/shared/src/controller-templates/command.backend.run.controller.factory.js +35 -64
- package/src/modules/shared/src/controller-templates/command.backend.upgrade.controller.factory.js +12 -20
- package/src/modules/shared/src/controller-templates/command.backend.version.controller.factory.js +15 -0
- package/src/modules/shared/src/controller-templates/command.backend.versions.controller.factory.js +1 -1
- package/src/modules/shared/src/controller-templates/docker/validateBackendInstance.js +16 -15
- package/src/modules/shared/src/ensureDockerCommands.js +1 -1
- package/src/modules/spell-checker/instanceTemplate/.fontoxmlSpellCheckerManifest +0 -0
- package/src/request/Command.js +242 -0
- package/src/request/DeepOption.js +26 -0
- package/src/request/DeepParameter.js +30 -0
- package/src/request/DeepSyntaxPart.js +84 -0
- package/src/{FdtCommand.js → request/FdtCommand.js} +93 -22
- package/src/request/FdtRequest.js +12 -0
- package/src/request/InputError.js +12 -0
- package/src/request/IsolatedOption.js +44 -0
- package/src/request/MultiOption.js +85 -0
- package/src/request/NamedSyntaxPart.js +101 -0
- package/src/request/Option.js +101 -0
- package/src/request/Parameter.js +34 -0
- package/src/request/Request.js +10 -0
- package/src/request/VariableSyntaxPart.js +85 -0
- package/src/request/interpreter.js +175 -0
- package/src/request/symbols.js +11 -0
- package/src/response/FdtResponse.js +3 -3
- package/src/{editorVersions.js → versionHelpers.js} +0 -0
- package/test/.fdtrc.test +5 -0
- package/test/App.test.js +716 -657
- package/test/AssertableWritableStream.test.js +1 -3
- package/test/ConfigManager.test.js +104 -0
- package/test/FdtCommand.test.js +543 -0
- package/test/app/test-module-1/index.js +15 -0
- package/test/app-with-platform-linked/config.js +12 -0
- package/test/app-with-platform-linked/manifest.json +11 -0
- package/test/app-with-platform-linked/platform-linked/fontoxml-base/.gitkeep +0 -0
- package/test/backend-app/.env +4 -0
- package/test/backend-app/.fontoxmlFcqManifest +3 -0
- package/test/formatVersion.test.js +218 -0
- package/test/module.core.test.js +118 -46
- package/test/module.shared.test.js +0 -27
- package/src/createConfigFileInHomedir.js +0 -20
- package/src/modules/editor-pre-7-7-0/src/api/init/checkEditorDestination.js +0 -40
- package/src/modules/shared/src/controller-templates/docker/BackendManifest.js +0 -42
package/{.fdtrc → .fdtrc.base}
RENAMED
|
File without changes
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ The Fonto Development Tools are command-line tools which offer support for devel
|
|
|
6
6
|
|
|
7
7
|
### Node
|
|
8
8
|
|
|
9
|
-
The tools require [NPM](https://www.npmjs.com/get-npm) on [Node.js®](https://nodejs.org/) version 12.20.x or higher, which are freely available. An active or maintenence LTS release is recommended. After installing Node.js,
|
|
9
|
+
The tools require [NPM](https://www.npmjs.com/get-npm) on [Node.js®](https://nodejs.org/) version 12.20.x or higher, which are freely available. An active or maintenence LTS release is recommended. After installing Node.js, the latest version of the Fonto Development Tools can be installed globally on your system using the following command:
|
|
10
10
|
|
|
11
11
|
npm i -g @fontoxml/fontoxml-development-tools
|
|
12
12
|
|
|
@@ -14,13 +14,13 @@ Alternatively, the tools can be installed locally for your project using the fol
|
|
|
14
14
|
|
|
15
15
|
npm install --save-dev @fontoxml/fontoxml-development-tools
|
|
16
16
|
|
|
17
|
-
> **tip**:
|
|
17
|
+
> **tip**: 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.
|
|
18
18
|
|
|
19
19
|
### Docker
|
|
20
20
|
|
|
21
|
-
Certain commands, like `review run` and `review build`, require [Docker
|
|
21
|
+
Certain commands, like `review run` and `review build`, require [Docker](https://www.docker.com/) to be installed together with the Docker Compose plugin. Please refer to the [Docker installation instructions](https://docs.docker.com/install/) and the [Compose installation instructions](https://docs.docker.com/compose/install/) to install them.
|
|
22
22
|
|
|
23
|
-
> **
|
|
23
|
+
> **note**: Please note that the Docker Compose plugin differs from the `docker-compose` standalone tool. Run `docker compose version` to verify its availability. Newer versions of Docker Desktop include the plugin by default.
|
|
24
24
|
|
|
25
25
|
## Usage
|
|
26
26
|
|
package/bitbucket-pipelines.yml
CHANGED
|
@@ -29,17 +29,47 @@ pipelines:
|
|
|
29
29
|
- parallel: *build-tests
|
|
30
30
|
|
|
31
31
|
tags:
|
|
32
|
-
'
|
|
32
|
+
'nightly':
|
|
33
33
|
- parallel: *build-tests
|
|
34
34
|
- step:
|
|
35
|
-
|
|
35
|
+
image:
|
|
36
|
+
name: fontoxmltoolsinternal.azurecr.io/build-tools/fdt:nightly
|
|
37
|
+
username: $TOOLS_INTERNAL_REGISTRY_USERNAME
|
|
38
|
+
password: $TOOLS_INTERNAL_REGISTRY_PASSWORD
|
|
39
|
+
name: Publish @nightly
|
|
36
40
|
script:
|
|
41
|
+
- >
|
|
42
|
+
if ! NIGHTLY_VERSION=$(fdt internal generate-version --type nightly --package-json-location ./package.json); then
|
|
43
|
+
echo "Could not generate a nightly version, FDT outputted:";
|
|
44
|
+
echo "$NIGHTLY_VERSION";
|
|
45
|
+
exit 1;
|
|
46
|
+
fi
|
|
47
|
+
- echo "Publishing nightly version '$NIGHTLY_VERSION'."
|
|
48
|
+
- npm version --git-tag-version false $NIGHTLY_VERSION
|
|
37
49
|
- pipe: atlassian/npm-publish:0.2.3
|
|
38
50
|
variables:
|
|
39
|
-
EXTRA_ARGS: --tag
|
|
51
|
+
EXTRA_ARGS: --tag nightly
|
|
40
52
|
NPM_TOKEN: $NPM_API_TOKEN
|
|
41
53
|
|
|
42
|
-
'
|
|
54
|
+
'*.*.*-rc.*':
|
|
55
|
+
- parallel: *build-tests
|
|
56
|
+
- step:
|
|
57
|
+
name: Publish @rc
|
|
58
|
+
script:
|
|
59
|
+
- pipe: atlassian/npm-publish:0.2.3
|
|
60
|
+
variables:
|
|
61
|
+
EXTRA_ARGS: --tag rc
|
|
62
|
+
NPM_TOKEN: $NPM_API_TOKEN
|
|
63
|
+
|
|
64
|
+
'*.*.*-*':
|
|
65
|
+
- step:
|
|
66
|
+
name: Unsupported tag
|
|
67
|
+
script:
|
|
68
|
+
- >
|
|
69
|
+
echo "The provided tag '$BITBUCKET_TAG' has an unsupported pre-release format and will not be published.";
|
|
70
|
+
exit 1;
|
|
71
|
+
|
|
72
|
+
'*.*.*':
|
|
43
73
|
- parallel: *build-tests
|
|
44
74
|
- step:
|
|
45
75
|
name: Publish @latest
|
|
@@ -47,3 +77,18 @@ pipelines:
|
|
|
47
77
|
- pipe: atlassian/npm-publish:0.2.3
|
|
48
78
|
variables:
|
|
49
79
|
NPM_TOKEN: $NPM_API_TOKEN
|
|
80
|
+
|
|
81
|
+
custom:
|
|
82
|
+
build-release-nightly:
|
|
83
|
+
- step:
|
|
84
|
+
name: Publish @nightly
|
|
85
|
+
script:
|
|
86
|
+
- >
|
|
87
|
+
if git describe --tags --exact-match HEAD --match nightly; then
|
|
88
|
+
echo "The commit $(git rev-parse HEAD) already has the 'nightly' tag.";
|
|
89
|
+
exit 0;
|
|
90
|
+
fi
|
|
91
|
+
- echo "Placing the 'nightly' tag on commit $(git rev-parse HEAD) to trigger the nightly pipeline."
|
|
92
|
+
- git push origin --delete refs/tags/nightly || true
|
|
93
|
+
- git tag --force --annotate --message "This was an automated event ($BITBUCKET_BUILD_NUMBER)." nightly
|
|
94
|
+
- git push origin refs/tags/nightly
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { default as App } from './src/App.js';
|
|
2
2
|
export { default as AssertableWritableStream } from './src/AssertableWritableStream.js';
|
|
3
|
-
export { default as FdtCommand } from './src/FdtCommand.js';
|
|
4
3
|
export { default as FdtTable } from './src/FdtTable.js';
|
|
4
|
+
export { default as FdtCommand } from './src/request/FdtCommand.js';
|