blockchain-etl / data-studio-connectors

Connect Google BigQuery crypto public datasets to Google Data Studio
MIT License
7 stars 1 forks source link

document how to configure clasp dev environment #3

Open allenday opened 4 years ago

allenday commented 4 years ago
$ npm run push

> @ push /Users/allenday/src/google/data-studio-connectors/crypto-analytics
> dscc-scripts connector push_changes

No valid .clasp.json project file. You may need to `create` or `clone` a project first.
Command failed: npx @google/clasp push
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ push: `dscc-scripts connector push_changes`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ push script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
allenday commented 4 years ago

I updated the README with a link for how to init the .clasp.json file, but I'm not sure if this solves the problem, as npm run try_latest still fails.

It is not clear where the connectorId is defined. See attached screenshot:

Screen Shot 2020-08-18 at 2 17 27 PM
franckc commented 4 years ago

Ah sorry, my bad for not adding more details.

Following these steps should fix the issue: https://developers.google.com/datastudio/connector/local-development

I'll try on a fresh git clone to make sure it works and will update the README accordingly.

allenday commented 4 years ago

thanks - this is still not enough detail and I'm thrashing trying to get it to integrate. not clear do I need to pre-create the project and copy scriptId in, or if I should create fresh with dscc-gen.

allenday commented 4 years ago

I'll stop work now. FYI the readme should be considered inaccurate and needs to be QAed, my edits are not correctly setting up the env, I keep getting stuck on this scriptId issue on npm try try_latest

franckc commented 4 years ago

Got it. Yep, let me clean this up. Will ping this thread once I've had a chance to try the whole setup from fresh...