Giter VIP home page Giter VIP logo

sao-clasp's Introduction

sao-clasp

npm npm dependencies Status awesome sao-clasp Dev Token

gas clasp project template

Usage

$ npx sao clasp my-project -u

From git

$ npx sao takanakahiko/sao-clasp my-project -u

Contributing

Pull requests and stars are always welcome.

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

For bugs and feature requests, please create an issue.

License

MIT © takanakahiko

This template was made based on gas-clasp-starter. ( MIT © howdy39 )

sao-clasp's People

Contributors

dependabot[bot] avatar godan avatar horisakis avatar renovate-bot avatar renovate[bot] avatar takanakahiko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

godan horisakis

sao-clasp's Issues

Using precommit

Each user can choose whether to use lint, jest, etc.
In other words, there is a problem that npm script becomes complicated.

So, by using huskey, you can introduce lint and jest without breaking the interface.
The introduction of huskey simplifies the template.

https://www.npmjs.com/package/husky

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Edited/Blocked

These updates have been manually edited so Renovate will no longer make changes. To discard all commits and start over, click on a checkbox.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

npm
package.json
  • moment-timezone 0.5.31
  • sao 1.7.1
  • superb 4.0.0
  • ava 3.13.0
  • release-it 14.0.2

  • Check this box to trigger a request for Renovate to run again on this repository

コマンド実行時にエラー

package.jsonでカンマが連続しているためエラーになっているようです

~/d/s/sao-clasp_trial $ sao clasp my-project
error An unexpected error occurred: "/Users/user/develop/sandbox/sao-clasp_trial/my-project/package.json: Unexpected token , in JSON at
position 225".
~/d/s/sao-clasp_trial $ head -c 226 /Users/user/develop/sandbox/sao-clasp_trial/my-project/package.json
{
  "name": "my-project",
  "version": "1.0.0",
  "description": "My lovely Google Apps Script project",
  "author": "horisaki",
  "main": "index.js",
  "scripts": {
    "lint": "tslint --fix src/**/*.ts",
    "test": "jest",,

Credentials file should be private.

clasp login --creds <file> creates .clasprc.json in your working directory.
This file should be private.

We should add .clasp.json to .gitignore.

'pm' prompt is unnecessary

User can switch package manager by using --npm-client <yarn|npm> flag, this.npmInstall would also use corresponding pm automatically.

Set default timezone when generate

Expected Behavior

Ask timezone when generate.

Expected Behavior

Currently, if you don't live in Japan you need to edit the timezone of appscript.json.

steps

  • add question to sao.js
  • edit template/appscript.json
  • Remove Configuration section of template/Readme.md

Create or Clone when setup

Expected Behavior

Run clasp create or clasp clone automatically.

Expected Behavior

Currently, Users should run clasp create or clasp clone after npx sao clasp.

sao clasp fails if tslint is not used

error An unexpected error occurred: "/Users/user/develop/sandbox/sao-clasp_trial/my-project/package.json: Unexpected token , in JSON at
position 169".
 ~/d/s/sao-clasp_trial  head -c 172 my-project/package.json
{
  "name": "my-project",
  "version": "1.0.0",
  "description": "My sensational Google Apps Script project",
  "author": "horisaki",
  "main": "index.js",
  "scripts": {,

JavaScript(Legacy)選択時も同様に失敗します。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.