mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-24 22:05:47 +00:00
chore: action for releasing
Signed-off-by: Pranav C <pranavxc@gmail.com>
This commit is contained in:
11
scripts/pkg-executable/index.js
Normal file
11
scripts/pkg-executable/index.js
Normal file
@@ -0,0 +1,11 @@
|
||||
(async () => {
|
||||
try {
|
||||
const app = require('express')();
|
||||
const {Noco} = require("nocodb");
|
||||
const httpServer = app.listen(process.env.PORT || 8080);
|
||||
app.use(await Noco.init({}, httpServer, app));
|
||||
console.log(`Visit : localhost:${process.env.PORT}/dashboard`)
|
||||
} catch(e) {
|
||||
console.log(e)
|
||||
}
|
||||
})()
|
||||
33
scripts/pkg-executable/package.json
Normal file
33
scripts/pkg-executable/package.json
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"name": "Noco",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"bin": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"start": "node index.js",
|
||||
"upgrade": "npm uninstall --save nocodb && npm install --save nocodb",
|
||||
"build": "npx pkg . --out-path dist --compress GZip"
|
||||
},
|
||||
"pkg": {
|
||||
"assets": [
|
||||
"node_modules/**/*"
|
||||
],
|
||||
"targets": [
|
||||
"node16-linux-arm64",
|
||||
"node16-macos-arm64",
|
||||
"node16-win-arm64",
|
||||
"node16-linux-x64",
|
||||
"node16-macos-x64",
|
||||
"node16-win-x64"
|
||||
]
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"express": "^4.17.1",
|
||||
"nocodb-daily": "0.91.10"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user