Hi,
I’m developing code in PHPStorm IDE from JetBrains, and its quite usefull to be able to use inteligent code autocomplete and skip some lines which you don’t want them to end up in your live server code.
for example:
import {Moralis} from "moralis"; //will not allow to code to be uploaded because imports are restricted
or where you dont want to include some lines used while debugging localy:
async function createMachine(res){
//Loading user record for testing from postman
if(res.params["user.id"]){
res.user = {id: res.params["user.id"]};
}
someCodeHere(res);
const hardCodedConst = "some_secret_used_for_debug";
res.someSecret = hardCodedConst;
await someFunction(res);
}
I’ve added a functionality to a watchCloudFolder.js file to be able to exclude lines from code.
syntax: at the begining of line “//skip:number_of_lines”. “//skip:1” to skip one line
//skip:1
import {Moralis} from "moralis"; //will not allow to code to be uploaded because imports are restricted
async function createMachine(res){
//skip:4
//Loading user record for testing from postman
if(res.params["user.id"]){
res.user = {id: res.params["user.id"]};
}
someCodeHere(res);
//skip:2
const hardCodedConst = "some_secret_used_for_debug";
res.someSecret = hardCodedConst;
await someFunction(res);
}
And the question is is there a git where i could fork moralis-admin-cli to be able to keep it updated and have some addons like this?
If anyone will be interested I can post watchCloudFolder.js is a separate comment