Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add compatiblity with transpilers. #2

Open
gabrielgortabns opened this issue Jan 31, 2023 · 0 comments
Open

Add compatiblity with transpilers. #2

gabrielgortabns opened this issue Jan 31, 2023 · 0 comments

Comments

@gabrielgortabns
Copy link

gabrielgortabns commented Jan 31, 2023

Let say, I have transpiler, that transform some code in ./src/ directory to other code in ./build/ directory. It would be nice, to be able to trigger upload from ./src/ directory, that would upload transpiled version of code.

Possible solution:

Configuration/setting where user can specify that if they trigger upload in ./src/FileCabined/SuiteScripts/sample.ts it will upload ./build/FileCabined/SuiteScripts/sample.js... it could be defined via regex, or syntax like:

{
    "source": ["src/**/*.ts", "src/**/*.js"]
    "build": ["build/**/*.js"]
}

or function:

export function pathUpdate(path) {
    return path.replace(/^build/, "src").replace(/.ts$/, ".js");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant