-
Notifications
You must be signed in to change notification settings - Fork 16
/
package.json
38 lines (38 loc) · 1.94 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
"name": "calc-monaco-editor",
"version": "0.0.2",
"author": "Strumenta",
"license": "Apache-2.0",
"repository": "https://github.com/Strumenta/calc-monaco-editor",
"dependencies": {
"antlr4": "4.13.2",
"calc-monaco-editor": "file:",
"monaco-editor": "0.40.0"
},
"type": "module",
"devDependencies": {
"@types/expect": "^24.3.0",
"@types/mocha": "10.0.0",
"css-loader": "6.8.1",
"mocha": "10.2.0",
"monaco-editor-webpack-plugin": "7.0.1",
"run-script-os": "^1.1.6",
"serve": "14.2.0",
"style-loader": "3.3.3",
"typescript": "^5.1.6",
"webpack-cli": "5.1.3"
},
"scripts": {
"all": "npm install && npm run generateParser && npm run compile && npm run test && npm run bundle && npm run packageWeb && npm run serve",
"generateParser": "run-script-os",
"generateParser:default": "./gradlew generateParser",
"generateParser:win32": "gradlew generateParser",
"test": "tsc && mocha src/main-generated/javascript/test/typescript",
"compile": "tsc",
"bundle": "webpack",
"packageWeb": "run-script-os",
"packageWeb:default": "mkdir -p web/css && mkdir -p web/js && cp src/main/html/index.html web/index.html && cp src/main/css/style.css web/css/style.css && cp dist/main.js web/js/main.js && cp dist/editor.worker.js web/js/editor.worker.js && cp dist/4a477f66bfd4e4d3cf68.ttf web/js/4a477f66bfd4e4d3cf68.ttf",
"packageWeb:win32": "powershell New-Item -Path 'web\\css' -ItemType Directory -Force -ErrorAction SilentlyContinue && powershell New-Item -Path 'web\\js' -ItemType Directory -Force -ErrorAction SilentlyContinue && powershell cp src\\main\\html\\index.html web\\index.html && powershell cp src\\main\\css\\style.css web\\css\\style.css && powershell cp dist\\main.js web\\js\\main.js && powershell cp dist\\editor.worker.js web\\js\\editor.worker.js && powershell cp dist\\4a477f66bfd4e4d3cf68.ttf web\\js\\4a477f66bfd4e4d3cf68.ttf",
"serve": "serve web -p 8888"
}
}