question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Do not rename .gs files to .js before pushing

See original GitHub issue

Expected Behavior

When using : clasp push a file named: Code.gs is still named Code.gs (locally, i’m not talking about remote)

Actual Behavior

When using : clasp push a file named: Code.gs is renamed to Code.js

The project files should not be changed by the pushing operation. Any preparation to the push operation should be done by the tool, without affecting project files.

Steps to Reproduce the Problem

  1. use clasp push with *.gs files

Specifications

  • Version (npm list | grep clasp): 1.1.5
  • OS (Mac/Linux/Windows): all ?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:18 (15 by maintainers)

github_iconTop GitHub Comments

5reactions
JeanRemiDelteilcommented, Jun 19, 2018

much appreciated 👍 I suppose we can close this issue now ?

fixed by #27

4reactions
erickoledadevrelcommented, Apr 9, 2018

+1 to this issue, clasp shouldn’t rename files. The clasp push command should be a read-only operation in regards to the file system.

I’d rather see:

  • clasp push supports both .js and .gs extensions, but outputs a warning for .gs files noting the preference for .js
  • clasp pull always creates .js files, regardless of whether or not .gs files are present
Read more comments on GitHub >

github_iconTop Results From Across the Web

Problems when using CLASP to push client-side files from a ...
Edit your .clasp.json and set the "fileExtension" property to "gs". That will prevent clasp from renaming your "gs" to "js".
Read more >
Output filename with ts-loader do not rename the declaration ...
I have a server-only export that I name index.server.ts . I want this file to be renamed server.js so that import foobar from ......
Read more >
Develop Apps Script using TypeScript
To use TypeScript in an App Script file, simply rename the file extension from gs to ts . Edit local TypeScript files. Using...
Read more >
Solved: Rename document with custom model with javascript
Hi,. I have alfresco community 5.2f. Actually i have files uploaded with custom models. I want with a javascript rename it with metadata ......
Read more >
Google Apps Script Tips to build Add-ons | Railsware Blog
js files with ES6 to .gs files processable by Google Apps Script. I hope that this blog post was useful and helped you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found