Do not rename .gs files to .js before pushing
See original GitHub issueExpected 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
- use clasp push with *.gs files
Specifications
- Version (
npm list | grep clasp
): 1.1.5 - OS (Mac/Linux/Windows): all ?
Issue Analytics
- State:
- Created 6 years ago
- Comments:18 (15 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
much appreciated 👍 I suppose we can close this issue now ?
fixed by #27
+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