@kusto/monaco-kusto 4.0.4 → 4.1.1
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/package.json +88 -88
- package/release/dev/kustoMode.js +1127 -1127
- package/release/dev/kustoWorker.js +2047 -1859
- package/release/dev/monaco.contribution.js +323 -323
- package/release/esm/commandFormatter.js +34 -34
- package/release/esm/commandHighlighter.js +47 -47
- package/release/esm/extendedEditor.js +38 -38
- package/release/esm/kusto.worker.js +8 -8
- package/release/esm/kustoMode.js +98 -98
- package/release/esm/kustoWorker.js +223 -199
- package/release/esm/languageFeatures.js +834 -834
- package/release/esm/languageService/kustoLanguageService.js +1752 -1588
- package/release/esm/languageService/kustoMonarchLanguageDefinition.js +76 -76
- package/release/esm/languageService/schema.js +64 -64
- package/release/esm/monaco.contribution.d.ts +13 -13
- package/release/esm/monaco.contribution.js +187 -187
- package/release/esm/monaco.d.ts +293 -240
- package/release/esm/workerManager.js +102 -102
- package/release/min/Kusto.Language.Bridge.min.js +1 -1
- package/release/min/kustoMode.js +1 -1
- package/release/min/kustoWorker.js +3 -3
- package/release/min/monaco.contribution.d.ts +13 -13
- package/release/min/monaco.contribution.js +1 -1
- package/release/min/monaco.d.ts +293 -240
- package/scripts/bundle.js +65 -65
- package/scripts/release.js +25 -25
package/scripts/bundle.js
CHANGED
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
const requirejs = require('requirejs');
|
|
2
|
-
const path = require('path');
|
|
3
|
-
const fs = require('fs');
|
|
4
|
-
const Terser = require("terser");
|
|
5
|
-
const helpers = require('monaco-plugin-helpers');
|
|
6
|
-
|
|
7
|
-
const REPO_ROOT = path.resolve(__dirname, '..');
|
|
8
|
-
|
|
9
|
-
const sha1 = helpers.getGitVersion(REPO_ROOT);
|
|
10
|
-
const semver = require('../package.json').version;
|
|
11
|
-
const headerVersion = semver + '(' + sha1 + ')';
|
|
12
|
-
|
|
13
|
-
const BUNDLED_FILE_HEADER = [
|
|
14
|
-
'/*!-----------------------------------------------------------------------------',
|
|
15
|
-
' * Copyright (c) Microsoft Corporation. All rights reserved.',
|
|
16
|
-
' * monaco-kusto version: ' + headerVersion,
|
|
17
|
-
' * Released under the MIT license',
|
|
18
|
-
' * https://https://github.com/Azure/monaco-kusto/blob/master/README.md',
|
|
19
|
-
' *-----------------------------------------------------------------------------*/',
|
|
20
|
-
''
|
|
21
|
-
].join('\n');
|
|
22
|
-
|
|
23
|
-
bundleOne('monaco.contribution', ['vs/language/kusto/kustoMode']),
|
|
24
|
-
bundleOne('kustoMode'),
|
|
25
|
-
bundleOne('kustoWorker')
|
|
26
|
-
|
|
27
|
-
function bundleOne(moduleId, exclude) {
|
|
28
|
-
requirejs.optimize({
|
|
29
|
-
baseUrl: './',
|
|
30
|
-
name: 'vs/language/kusto/' + moduleId,
|
|
31
|
-
out: 'release/dev/' + moduleId + '.js',
|
|
32
|
-
exclude: exclude,
|
|
33
|
-
paths: {
|
|
34
|
-
'vs/language/kusto': REPO_ROOT + '/out/amd'
|
|
35
|
-
},
|
|
36
|
-
optimize: 'none',
|
|
37
|
-
packages: [{
|
|
38
|
-
name: 'vscode-languageserver-types',
|
|
39
|
-
location: path.join(REPO_ROOT, '/node_modules/vscode-languageserver-types/lib/umd'),
|
|
40
|
-
main: 'main'
|
|
41
|
-
}, {
|
|
42
|
-
name: 'xregexp',
|
|
43
|
-
location: path.join(REPO_ROOT, '/node_modules/xregexp'),
|
|
44
|
-
main: 'xregexp-all.js'
|
|
45
|
-
}, {
|
|
46
|
-
name: 'lodash',
|
|
47
|
-
location: path.join(REPO_ROOT, '/node_modules/lodash'),
|
|
48
|
-
main: 'lodash.min.js'
|
|
49
|
-
}],
|
|
50
|
-
}, function (buildResponse) {
|
|
51
|
-
const devFilePath = path.join(REPO_ROOT, 'release/dev/' + moduleId + '.js');
|
|
52
|
-
const minFilePath = path.join(REPO_ROOT, 'release/min/' + moduleId + '.js');
|
|
53
|
-
const fileContents = fs.readFileSync(devFilePath).toString();
|
|
54
|
-
console.log();
|
|
55
|
-
console.log(`Minifying ${devFilePath}...`);
|
|
56
|
-
const result = Terser.minify(fileContents, {
|
|
57
|
-
output: {
|
|
58
|
-
comments: 'some'
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
console.log(`Done.`);
|
|
62
|
-
try { fs.mkdirSync(path.join(REPO_ROOT, 'release/min')) } catch (err) { }
|
|
63
|
-
fs.writeFileSync(minFilePath, BUNDLED_FILE_HEADER + result.code);
|
|
64
|
-
})
|
|
65
|
-
}
|
|
1
|
+
const requirejs = require('requirejs');
|
|
2
|
+
const path = require('path');
|
|
3
|
+
const fs = require('fs');
|
|
4
|
+
const Terser = require("terser");
|
|
5
|
+
const helpers = require('monaco-plugin-helpers');
|
|
6
|
+
|
|
7
|
+
const REPO_ROOT = path.resolve(__dirname, '..');
|
|
8
|
+
|
|
9
|
+
const sha1 = helpers.getGitVersion(REPO_ROOT);
|
|
10
|
+
const semver = require('../package.json').version;
|
|
11
|
+
const headerVersion = semver + '(' + sha1 + ')';
|
|
12
|
+
|
|
13
|
+
const BUNDLED_FILE_HEADER = [
|
|
14
|
+
'/*!-----------------------------------------------------------------------------',
|
|
15
|
+
' * Copyright (c) Microsoft Corporation. All rights reserved.',
|
|
16
|
+
' * monaco-kusto version: ' + headerVersion,
|
|
17
|
+
' * Released under the MIT license',
|
|
18
|
+
' * https://https://github.com/Azure/monaco-kusto/blob/master/README.md',
|
|
19
|
+
' *-----------------------------------------------------------------------------*/',
|
|
20
|
+
''
|
|
21
|
+
].join('\n');
|
|
22
|
+
|
|
23
|
+
bundleOne('monaco.contribution', ['vs/language/kusto/kustoMode']),
|
|
24
|
+
bundleOne('kustoMode'),
|
|
25
|
+
bundleOne('kustoWorker')
|
|
26
|
+
|
|
27
|
+
function bundleOne(moduleId, exclude) {
|
|
28
|
+
requirejs.optimize({
|
|
29
|
+
baseUrl: './',
|
|
30
|
+
name: 'vs/language/kusto/' + moduleId,
|
|
31
|
+
out: 'release/dev/' + moduleId + '.js',
|
|
32
|
+
exclude: exclude,
|
|
33
|
+
paths: {
|
|
34
|
+
'vs/language/kusto': REPO_ROOT + '/out/amd'
|
|
35
|
+
},
|
|
36
|
+
optimize: 'none',
|
|
37
|
+
packages: [{
|
|
38
|
+
name: 'vscode-languageserver-types',
|
|
39
|
+
location: path.join(REPO_ROOT, '/node_modules/vscode-languageserver-types/lib/umd'),
|
|
40
|
+
main: 'main'
|
|
41
|
+
}, {
|
|
42
|
+
name: 'xregexp',
|
|
43
|
+
location: path.join(REPO_ROOT, '/node_modules/xregexp'),
|
|
44
|
+
main: 'xregexp-all.js'
|
|
45
|
+
}, {
|
|
46
|
+
name: 'lodash',
|
|
47
|
+
location: path.join(REPO_ROOT, '/node_modules/lodash'),
|
|
48
|
+
main: 'lodash.min.js'
|
|
49
|
+
}],
|
|
50
|
+
}, function (buildResponse) {
|
|
51
|
+
const devFilePath = path.join(REPO_ROOT, 'release/dev/' + moduleId + '.js');
|
|
52
|
+
const minFilePath = path.join(REPO_ROOT, 'release/min/' + moduleId + '.js');
|
|
53
|
+
const fileContents = fs.readFileSync(devFilePath).toString();
|
|
54
|
+
console.log();
|
|
55
|
+
console.log(`Minifying ${devFilePath}...`);
|
|
56
|
+
const result = Terser.minify(fileContents, {
|
|
57
|
+
output: {
|
|
58
|
+
comments: 'some'
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
console.log(`Done.`);
|
|
62
|
+
try { fs.mkdirSync(path.join(REPO_ROOT, 'release/min')) } catch (err) { }
|
|
63
|
+
fs.writeFileSync(minFilePath, BUNDLED_FILE_HEADER + result.code);
|
|
64
|
+
})
|
|
65
|
+
}
|
package/scripts/release.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
const path = require('path');
|
|
2
|
-
const helpers = require('monaco-plugin-helpers');
|
|
3
|
-
|
|
4
|
-
const REPO_ROOT = path.join(__dirname, '../');
|
|
5
|
-
|
|
6
|
-
helpers.packageESM({
|
|
7
|
-
repoRoot: REPO_ROOT,
|
|
8
|
-
esmSource: 'out/esm',
|
|
9
|
-
esmDestination: 'release/esm',
|
|
10
|
-
entryPoints: [
|
|
11
|
-
'monaco.contribution.js',
|
|
12
|
-
'kustoMode.js',
|
|
13
|
-
'kusto.worker.js',
|
|
14
|
-
],
|
|
15
|
-
resolveAlias: {
|
|
16
|
-
},
|
|
17
|
-
resolveSkip: [
|
|
18
|
-
'monaco-editor-core'
|
|
19
|
-
],
|
|
20
|
-
destinationFolderSimplification: {
|
|
21
|
-
'node_modules': '_deps',
|
|
22
|
-
'vscode-languageserver-types/lib/esm': 'vscode-languageserver-types',
|
|
23
|
-
'/node_modules/xregexp': 'xregexp',
|
|
24
|
-
'/node_modules/lodash': 'lodash'
|
|
25
|
-
}
|
|
1
|
+
const path = require('path');
|
|
2
|
+
const helpers = require('monaco-plugin-helpers');
|
|
3
|
+
|
|
4
|
+
const REPO_ROOT = path.join(__dirname, '../');
|
|
5
|
+
|
|
6
|
+
helpers.packageESM({
|
|
7
|
+
repoRoot: REPO_ROOT,
|
|
8
|
+
esmSource: 'out/esm',
|
|
9
|
+
esmDestination: 'release/esm',
|
|
10
|
+
entryPoints: [
|
|
11
|
+
'monaco.contribution.js',
|
|
12
|
+
'kustoMode.js',
|
|
13
|
+
'kusto.worker.js',
|
|
14
|
+
],
|
|
15
|
+
resolveAlias: {
|
|
16
|
+
},
|
|
17
|
+
resolveSkip: [
|
|
18
|
+
'monaco-editor-core'
|
|
19
|
+
],
|
|
20
|
+
destinationFolderSimplification: {
|
|
21
|
+
'node_modules': '_deps',
|
|
22
|
+
'vscode-languageserver-types/lib/esm': 'vscode-languageserver-types',
|
|
23
|
+
'/node_modules/xregexp': 'xregexp',
|
|
24
|
+
'/node_modules/lodash': 'lodash'
|
|
25
|
+
}
|
|
26
26
|
});
|