popgoesthewza / clasp Goto Github PK
View Code? Open in Web Editor NEWThis project forked from google/clasp
π Develop Apps Script projects locally.
Home Page: developers.google.com/apps-script/guides/clasp
License: Apache License 2.0
This project forked from google/clasp
π Develop Apps Script projects locally.
Home Page: developers.google.com/apps-script/guides/clasp
License: Apache License 2.0
@google/clasp
Following discussion with @khalilchoudhry on google#12 from official @google/clasp
repository, I started this forked branch.
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 |
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
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
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.
This rarely happens. I don't find a pattern.
I'm going to test this fork for the same problem. I will respond within 2 weeks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.