# generator-clasp

> Generate a clasp project

Latest version **0.1.2** (published 2018-12-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install generator-clasp
pnpm add generator-clasp
yarn add generator-clasp
bun add generator-clasp
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2018-12-21 |
| First published | 2018-12-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 12 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Joe Sasson |
| Maintainers | joesasson |
| Keywords | yeoman-generator, yeoman, generator, clasp, typescript, vscode, git, google-apps-scripts, gas, google-sheets, javascript, boilerplate |

## Links

- npm: https://www.npmjs.com/package/generator-clasp
- Repository: https://github.com/joesasson/generator-clasp
- Homepage: https://github.com/joesasson/generator-clasp#readme
- Issues: https://github.com/joesasson/generator-clasp/issues
- npm.io page: https://npm.io/package/generator-clasp

## Dependencies (3)

- [chalk](https://npm.io/package/chalk.md) ^2.1.0
- [yosay](https://npm.io/package/yosay.md) ^2.0.1
- [yeoman-generator](https://npm.io/package/yeoman-generator.md) ^3.1.1

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.1.2 (latest) — 2018-12-21
- 0.1.1 — 2018-12-20
- 0.1.0 — 2018-12-20
- 0.0.0 — 2018-12-10

## README

# generator-clasp [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage percentage][coveralls-image]][coveralls-url]
> Generate a clasp project with a bunch of useful files for a google sheets addon

## Installation

First, install [Yeoman](http://yeoman.io) and generator-clasp using [npm](https://www.npmjs.com/) (we assume you have pre-installed [node.js](https://nodejs.org/)).

```bash
npm install -g yo
npm install -g generator-clasp
```

Then generate your new project:

```bash
yo clasp
```

To finish setting up your clasp project:

- Ensure that you are logged in to [clasp](https://github.com/google/clasp) 
- run `clasp create` to start the clasp cli
- run `npm i -S @types/google-apps-script` to add type definitions for vscode autocomplete
- Revel in the awesomeness of life :sunglasses:

## Files generated

- `.claspignore`
- `.gitignore` with a few entries
- README.md and LICENSE
- `jsconfig.json` and `tsconfig.json` for vscode
- `keys.ts` to store keys locally (I'm still trying to figure out a better way to do this as there is no .env for gas)
- A main `Code.ts` file with the name of the app autogenerated via prompt - Also contains biolerplate for `onOpen` and getting a spreadsheet, sheet and data
- `utils.ts` file to hold some useful functions that I normally use (This is the major motivation for this generator)

## Updating Generator

- Make changes (only good ones please)
- `git add . && git commit -m "A useful message" && git push`
- `npm publish`

## Getting To Know Yeoman

 * Yeoman has a heart of gold.
 * Yeoman is a person with feelings and opinions, but is very easy to work with.
 * Yeoman can be too opinionated at times but is easily convinced not to be.
 * Feel free to [learn more about Yeoman](http://yeoman.io/).

## Special Thanks

- [@robdodson](https://github.com/robdodson) for a [great video](https://www.youtube.com/watch?v=A_OEdyhgnKc) explaining custom yeoman generators (back in 2016 ¯\\\_(ツ)_/¯)
- [@grant](https://github.com/grant) for making clasp so awesome!

## License

MIT © [Joe Sasson](joesasson.github.io)

## Feedback

If you happen to find this useful, or think you may find it useful with some modification, I would love to chat!
You can [open an issue](https://github.com/joesasson/generator-clasp/issues/new), or send me an email (I'll leave that up to you to figure out)


[npm-image]: https://badge.fury.io/js/generator-clasp.svg
[npm-url]: https://npmjs.org/package/generator-clasp
[travis-image]: https://travis-ci.org/joesasson/generator-clasp.svg?branch=master
[travis-url]: https://travis-ci.org/joesasson/generator-clasp
[daviddm-image]: https://david-dm.org/joesasson/generator-clasp.svg?theme=shields.io
[daviddm-url]: https://david-dm.org/joesasson/generator-clasp
[coveralls-image]: https://coveralls.io/repos/joesasson/generator-clasp/badge.svg
[coveralls-url]: https://coveralls.io/r/joesasson/generator-clasp

---
_Source: https://npm.io/package/generator-clasp · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
