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.

Custom file extension on `clasp pull`

See original GitHub issue

Expected Behavior

Right now clasp pull defaults Apps Script files to .js.

A user should be able to specify which file extension should be used when pulling new files.

Solution: Add a new property to .clasp.json:

{
  'fileExtension': 'gs'
}

Other values could be 'js' or 'ts' (or anything else).

Actual Behavior

All pulled files have .js.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
grantcommented, Oct 1, 2018

This should have been added in one of the recent versions of clasp.

0reactions
grantcommented, Aug 31, 2018

@sat0yu created #304 which should fix this. I will close this issue when clasp is published on npm (probably next week).

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I create and push new files client side?
According to the docs (github.com/google/clasp#push) they should get pushed just fine, provided they are the correct type. You don't mention the ...
Read more >
Command Line Interface using clasp | Apps Script
This command uploads all of a script project's files from your computer to Google Drive. clasp push. List project versions.
Read more >
How to Write Google Apps Script Code Locally in VS ...
clasp login; clasp clone; clasp push -w; clasp pull. clasp login allows you to save ... Save the file and type clasp push...
Read more >
Extensions How to Handle Custom File Formats
Many modern file formats already come in XML format which allows to extract information with any XML conforming parser, e.g., as implemented in...
Read more >
Google Apps Script to Visual Studio Code with Clasp
clasp is a command-line tool that allows you to connect with your Google Apps Script files to: Pull them from the cloud. Push...
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