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",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"body-parser": "^1.20.2",
"express": "^4.18.2",
"nanotimer": "^0.3.15",
"smpp": "^0.6.0-rc.4",
"ws": "^8.13.0"
}
"name": "smsgwtester",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"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": "",
"license": "ISC",
"dependencies": {
"body-parser": "^1.20.2",
"express": "^4.18.2",
"nanotimer": "^0.3.15",
"smpp": "^0.6.0-rc.4",
"ws": "^8.13.0"
}
}