Less changes in PR (#724)
* remove .js dir * update .gitigore * remove .dist * fix: remove EOL * clean up json_plugins * add host bash file * fix: no need to run json * add all files after merge * fix: remove run json from pre-commit * fix: not need to run git in npm json * add delay to debug * fix: git add command * fix: typo * update github actions * fix: missing checkout action * fix: make .sh executable * update readme * fix: git config * fix: action condition
This commit is contained in:
@@ -8,7 +8,10 @@ import * as pluginApi from "./test_web/api/plugins";
|
||||
import localizedFormat from "dayjs/plugin/localizedFormat";
|
||||
|
||||
const app = express();
|
||||
const port = 3000;
|
||||
const port = Number(process.argv[2]);
|
||||
if(!port){
|
||||
process.exit(0);
|
||||
}
|
||||
const host = "localhost";
|
||||
|
||||
const dirname = path.join(__dirname, "..");
|
||||
@@ -95,7 +98,7 @@ app.get("/", (req, res) => {
|
||||
});
|
||||
|
||||
app.listen(port, host, () => {
|
||||
console.log("Testing plugins web listening on http://localhost:3000");
|
||||
console.log(`Testing plugins web listening on http://localhost:${port}`);
|
||||
});
|
||||
|
||||
//Dayjs localization
|
||||
|
||||
Reference in New Issue
Block a user