@fontoxml/fontoxml-development-tools 3.9.0-beta.3 → 3.9.0-beta.6
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/npm-shrinkwrap.json +6 -14
- package/package.json +1 -1
- package/src/modules/editor/src/getAppManifest.js +3 -3
- package/src/modules/editor-pre-7-7-0/instanceTemplateTypeScript/package.json +5 -0
- package/src/modules/editor-pre-7-7-0/src/command.init.controller.js +11 -7
- package/src/modules/editor-pre-7-7-0/src/command.upgrade.controller.js +23 -1
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fontoxml/fontoxml-development-tools",
|
|
3
|
-
"version": "3.9.0-beta.
|
|
3
|
+
"version": "3.9.0-beta.6",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@fontoxml/fontoxml-development-tools",
|
|
9
|
-
"version": "3.9.0-beta.
|
|
9
|
+
"version": "3.9.0-beta.6",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@babel/core": "7.14.6",
|
|
@@ -8156,9 +8156,7 @@
|
|
|
8156
8156
|
"version": "1.6.2",
|
|
8157
8157
|
"resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz",
|
|
8158
8158
|
"integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==",
|
|
8159
|
-
"engines": [
|
|
8160
|
-
"node >= 0.8"
|
|
8161
|
-
],
|
|
8159
|
+
"engines": ["node >= 0.8"],
|
|
8162
8160
|
"dependencies": {
|
|
8163
8161
|
"buffer-from": "^1.0.0",
|
|
8164
8162
|
"inherits": "^2.0.3",
|
|
@@ -9987,9 +9985,7 @@
|
|
|
9987
9985
|
"version": "1.3.0",
|
|
9988
9986
|
"resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz",
|
|
9989
9987
|
"integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=",
|
|
9990
|
-
"engines": [
|
|
9991
|
-
"node >=0.6.0"
|
|
9992
|
-
]
|
|
9988
|
+
"engines": ["node >=0.6.0"]
|
|
9993
9989
|
},
|
|
9994
9990
|
"node_modules/fast-deep-equal": {
|
|
9995
9991
|
"version": "3.1.3",
|
|
@@ -10337,9 +10333,7 @@
|
|
|
10337
10333
|
"dev": true,
|
|
10338
10334
|
"hasInstallScript": true,
|
|
10339
10335
|
"optional": true,
|
|
10340
|
-
"os": [
|
|
10341
|
-
"darwin"
|
|
10342
|
-
],
|
|
10336
|
+
"os": ["darwin"],
|
|
10343
10337
|
"engines": {
|
|
10344
10338
|
"node": "^8.16.0 || ^10.6.0 || >=11.0.0"
|
|
10345
10339
|
}
|
|
@@ -16674,9 +16668,7 @@
|
|
|
16674
16668
|
"version": "1.10.0",
|
|
16675
16669
|
"resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz",
|
|
16676
16670
|
"integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=",
|
|
16677
|
-
"engines": [
|
|
16678
|
-
"node >=0.6.0"
|
|
16679
|
-
],
|
|
16671
|
+
"engines": ["node >=0.6.0"],
|
|
16680
16672
|
"dependencies": {
|
|
16681
16673
|
"assert-plus": "^1.0.0",
|
|
16682
16674
|
"core-util-is": "1.0.2",
|
package/package.json
CHANGED
|
@@ -8,9 +8,9 @@ export default async function getAppManifest(editorPath) {
|
|
|
8
8
|
appManifest.favicon = appManifest.favicon || 'assets/images/favicon.ico';
|
|
9
9
|
appManifest.name = appManifest.name || 'Fonto Editor';
|
|
10
10
|
appManifest.supportedBrowsers = appManifest.supportedBrowsers || {
|
|
11
|
-
chrome: '
|
|
12
|
-
edge: '
|
|
13
|
-
firefox: '
|
|
11
|
+
chrome: '98',
|
|
12
|
+
edge: '98',
|
|
13
|
+
firefox: '97',
|
|
14
14
|
safari: '15',
|
|
15
15
|
};
|
|
16
16
|
return appManifest;
|
|
@@ -4,7 +4,7 @@ import path from 'path';
|
|
|
4
4
|
import unzipper from 'unzipper';
|
|
5
5
|
import { fileURLToPath } from 'url';
|
|
6
6
|
|
|
7
|
-
import { isNightly
|
|
7
|
+
import { isNightly } from '../../../editorVersions.js';
|
|
8
8
|
import addonsAddDependencies from './api/addonsAddDependencies.js';
|
|
9
9
|
import createMessageTemplate from './api/createMessageTemplate.js';
|
|
10
10
|
import downloadEditorSDK from './api/downloadEditorSDK.js';
|
|
@@ -49,8 +49,6 @@ export default async function editorInitCommand(req, res) {
|
|
|
49
49
|
);
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
const useTypeScript = !req.options['output-javascript'];
|
|
53
|
-
|
|
54
52
|
// Check if the required fonto.json path has been specified when running non-interactive.
|
|
55
53
|
if (req.options['non-interactive'] && !req.options['schema']) {
|
|
56
54
|
throw new res.InputError('Missing schema value.');
|
|
@@ -119,6 +117,14 @@ export default async function editorInitCommand(req, res) {
|
|
|
119
117
|
destroySpinner();
|
|
120
118
|
}
|
|
121
119
|
|
|
120
|
+
// Do not initialise with TypeScript when no tsconfig.json is found.
|
|
121
|
+
const platformHasTsConfig = sdkFiles.some(
|
|
122
|
+
(file) => file.path === 'tsconfig.json'
|
|
123
|
+
);
|
|
124
|
+
const useTypeScript = req.options['output-javascript']
|
|
125
|
+
? false
|
|
126
|
+
: platformHasTsConfig;
|
|
127
|
+
|
|
122
128
|
// Set the sdkVersion to the actual version, for nightlies it's sets to the specific nightly version string instead of 'nightly'.
|
|
123
129
|
sdkVersion = sdkManifest.version;
|
|
124
130
|
|
|
@@ -529,10 +535,8 @@ export default async function editorInitCommand(req, res) {
|
|
|
529
535
|
|
|
530
536
|
destroySpinner();
|
|
531
537
|
|
|
532
|
-
//
|
|
533
|
-
|
|
534
|
-
await npmInstall(editorPath, res);
|
|
535
|
-
}
|
|
538
|
+
// Install NPM depencencies when there's a package.json.
|
|
539
|
+
await npmInstall(editorPath, res);
|
|
536
540
|
|
|
537
541
|
// Done.
|
|
538
542
|
res.break();
|
|
@@ -331,6 +331,21 @@ export default async function editorUpgradeCommand(req, res) {
|
|
|
331
331
|
overwrite: false,
|
|
332
332
|
}
|
|
333
333
|
);
|
|
334
|
+
|
|
335
|
+
// Add a package.json with a TypeScript dependency when there's none.
|
|
336
|
+
await fs.copy(
|
|
337
|
+
path.resolve(
|
|
338
|
+
__dirname,
|
|
339
|
+
'..',
|
|
340
|
+
'instanceTemplateTypeScript',
|
|
341
|
+
'package.json'
|
|
342
|
+
),
|
|
343
|
+
path.resolve(editorPath, 'package.json'),
|
|
344
|
+
{
|
|
345
|
+
// Silently fail when target already exists.
|
|
346
|
+
overwrite: false,
|
|
347
|
+
}
|
|
348
|
+
);
|
|
334
349
|
}
|
|
335
350
|
|
|
336
351
|
await req.fdt.license.sendTelemetry({
|
|
@@ -365,5 +380,12 @@ export default async function editorUpgradeCommand(req, res) {
|
|
|
365
380
|
|
|
366
381
|
// Done.
|
|
367
382
|
res.break();
|
|
368
|
-
res.notice('
|
|
383
|
+
res.notice('You succesfully upgraded Fonto Editor!');
|
|
384
|
+
if (platformHasTsConfig) {
|
|
385
|
+
res.break();
|
|
386
|
+
res.notice('For setting up code intelligence and/or TypeScript, see:');
|
|
387
|
+
res.notice(
|
|
388
|
+
'https://documentation.fontoxml.com/latest/typescript-f488eb98fb35'
|
|
389
|
+
);
|
|
390
|
+
}
|
|
369
391
|
}
|