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.

Clasp create add-on templates

See original GitHub issue

Create Apps Script projects with templates

Clasp should make it easy to use our Apps Script templates. What if you could select a template when creating a clasp project?

Expected Behavior

clasp create lists template options in which you can choose from different templates, i.e.

image

Actual Behavior

clasp create creates an empty Apps Script project. Not super useful.

Thoughts @erickoledadevrel?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
grantcommented, Mar 27, 2018

Noted. We’ll have to create a list of toolchains that we’d like to inter-op with. As with this original issue, it seems like you’d be more interested in a generic solution than a specialize set of templates.

In the npm ecosystem, given toolchains change every year, it’s generally good practice to make lightweight, generic package that can hook into anything. Maybe just better inter-op with npm would be a good first step.

1reaction
erickoledadevrelcommented, Mar 27, 2018

The templates in the UI are focussed around use cases (docs add-ons, sheets add-on, etc). I’m more interested in templates around tool chains. For example, I’d love a template project that already has a way to bundle JavaScript libraries from NPM into the HTML files that Apps Script supports.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Command Line Interface using clasp | Apps Script
clasp lets you to develop your Apps Script projects locally. ... Create, update, and view your multiple deployments of your project.
Read more >
google/clasp: Command Line Apps Script Projects - GitHub
Develop Locally: clasp allows you to develop your Apps Script projects locally. That means you can check-in your code into source control, collaborate...
Read more >
CLASP Tutorial - Google Apps Script - How to Install CLASP
Learn how to setup CLASP to work with Google Apps Script projects locally. For more on this topic & help with installation check...
Read more >
clasp - The Apps Script CLI - Google Codelabs
The Apps Script CLI, or clasp , is a tool that lets you to create, edit, and deploy Apps Script projects locally. It...
Read more >
Google Apps Script Tips to build Add-ons | Railsware Blog
Note: You need to create a copy of the add-on in order for the Google store to treat it as a separate app....
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