Add run scripts

This commit is contained in:
David Majdandžić
2023-03-29 14:03:40 +02:00
parent 630c8a1004
commit e69938f9a1
2 changed files with 30 additions and 17 deletions

12
.run/pkg_windows.run.xml Normal file
View File

@@ -0,0 +1,12 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="pkg:windows" type="js.build_tools.npm" nameIsGenerated="true">
<package-json value="$PROJECT_DIR$/package.json" />
<command value="run" />
<scripts>
<script value="pkg:windows" />
</scripts>
<node-interpreter value="project" />
<envs />
<method v="2" />
</configuration>
</component>

View File

@@ -1,19 +1,20 @@
{ {
"name": "smsgwtester", "name": "smsgwtester",
"version": "1.0.0", "version": "1.0.0",
"description": "", "description": "",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "pkg:windows": "pkg main.js --target node16-windows-x64 --output main.exe",
}, "pkg:linux": "pkg main.js --target node16-linux-x64 --output main.exe"
"keywords": [], },
"author": "", "keywords": [],
"license": "ISC", "author": "",
"dependencies": { "license": "ISC",
"body-parser": "^1.20.2", "dependencies": {
"express": "^4.18.2", "body-parser": "^1.20.2",
"nanotimer": "^0.3.15", "express": "^4.18.2",
"smpp": "^0.6.0-rc.4", "nanotimer": "^0.3.15",
"ws": "^8.13.0" "smpp": "^0.6.0-rc.4",
} "ws": "^8.13.0"
}
} }