-
Notifications
You must be signed in to change notification settings - Fork 438
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
Possible to specify directory for push / pull ? #22
Comments
Your Perhaps the README can describe how this works a bit more (for users that have different folders). |
Moving the program
.command('push [dir]')
.description('Update the remote project')
.action((dir = './') => { // use './' as a default
...
recursive(dir, (err, filePaths) => {
...
let nameWithoutExt = name.slice(0, -path.extname(name).length);
let formattedName = nameWithoutExt;
if (dir !== './') {
// Transforms build/appsscript to appsscript
formattedName = formattedName.slice(dir.length + 1, formattedName.length);
}
...
return {
name: formattedName, // the API separates the extension |
Another workaround for this use case is to ignore everything but the build directory in the |
This is an interesting case. I'd be hesitant to add an option for It seems like the root directory should be a property of So
If you want to work on this feature, I'll accept PRs. |
* #22: Adds support for rootDir in .clasp.json * Stylistic changes + properly formatting name * object bracket spacing
I encountered the same issue and I'd like to share my personal experience with it. I was using @google/aside and decided to switch projects. To do this, I removed the |
Expected Behavior
I have my source files in an
src
directory, but do some transpiling which outputs the files to abuild
directory. Is it possible to specify a directory to push files from?Actual Behavior
Files are pushed and pulled from the root of the repo
Specifications
node -v
): anynpm list | grep clasp
): 1.0.7The text was updated successfully, but these errors were encountered: