Code Monkey home page Code Monkey logo

clasp's People

Contributors

aandis avatar abetomo avatar archerscript avatar arjun-rao avatar aurelienshz avatar campionfellin avatar cruzdanilo avatar dependabot[bot] avatar diminishedprime avatar fossamagna avatar grant avatar jeanremidelteil avatar jondcallahan avatar kalmi avatar kenchan0130 avatar laughdonor avatar mainmode1 avatar msembinelli avatar nirazul avatar oshliaer avatar piotaixr avatar popgoesthewza avatar prprhyt avatar release-please[bot] avatar shouichi avatar sqrrrl avatar takanakahiko avatar tetra2000 avatar tricknotes avatar wilt00 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

clasp's Issues

[Feature testing] clasp swallows or delays output to the terminal

Intro

I'm from there google/clasp/issues/805.

My problem is that the clasp is swallowing the output or locking the output to the terminal.

I'm using spawn calls to run clasp under the webpack watch mode.

The main approach is

spawn('clasp', 'run', {
  stdio: 'inherit',
});

Two things happen there.

  1. сlasp pushes data. But it does not add output to console
  2. the console doesn't respond to Ctrl+C input. I need to call an event from webpack (it is called first in the current console) then I can press CTRL+C.

This rarely happens. I don't find a pattern.

The reasons for this topic

I'm going to test this fork for the same problem. I will respond within 2 weeks.

[fork] Introducing forked `@google/clasp`

Forked @google/clasp

Following discussion with @khalilchoudhry on google#12 from official @google/clasp repository, I started this forked branch.

Changes

It currently includes pending PRs

PR Scope Content
google#688 enhancement Support for environment varaible and CLI options to specify configuration files (potentially solves issues google#12, google#42, google#483 and google#524)
google#721 bug fix Enhanced Windows support which attempts to solve google#717
google#702 doc Instruction to use local @google/clasp install
google#708 doc Update about scriptId of Project Settings File by @kenchan0130
google#724 doc Instruction using gitpod by @takanakahiko
google#713 chore Update dependencies

Pending

The following PR has not (yet) been included. Feedback on it will motivate me to integrate it.

google#715 | enhancement | Add --account <account> flag to clasp open by @maxmclau to solve google#709

Testing the fork

Download this forked branch and build with the command:

npm uninstall -g @google/clasp && npm install && npm audit fix && npm run build

The environment variables clasp_config_project, clasp_config_ignore and clasp_config_auth can the be used to reference config files.

The (temporary) command clasp paths can help you check how config files are resolved.

$ clasp paths
project .clasp.json true .clasp.json
ignore /Users/guillaumec/.claspignore true .claspignore
auth /Users/guillaumec/.clasprc.json true /Users/guillaumec/.clasprc.json
$ clasp paths -A ~/customAuth.json -I ./dev-conf -P ./dev-conf
project ./dev-conf false ./dev-conf
ignore ./dev-conf false ./dev-conf
auth /Users/guillaumec/customAuth.json false /Users/guillaumec/customAuth.json

The clasp --help command should now display new options to reference config files:

$ clasp --help
Usage: clasp <command> [options]

clasp - The Apps Script CLI

Options:
  -A, --auth <file>                           path to an auth file or a folder with a '.clasprc.json' file.
  -I, --ignore <file>                         path to an ignore file or a folder with a '.claspignore' file.
  -P, --project <file>                        path to a project file or to a folder with a '.clasp.json' file.
  -v, --version
  -h, --help                                  output usage information

[...]

A drafted doc is here under /doc

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.