Is it possible to create apps script using Dart and the Dart->JS translator?
I'm guessing the answer is no, but I'd be interested in learning of any plans to integrate the two development environments.
Is it possible to create apps script using Dart and the Dart->JS translator?
I'm guessing the answer is no, but I'd be interested in learning of any plans to integrate the two development environments.
A Googler has shown in DartConf 2018 lightning talk for using Dart in App Script. He promised it will be open sourced. The demonstrated solution includes App Script library in Dart, automated build and deployment through Google Drive.
You guessed right, the answer is no indeed. You can't write Apps Scripts in Dart.
Although your second question can only be answered by a Googler, but as a Top Contributor, I can say that if such plans exist they're probably not for the near future. I'd guess that it will not be here within a year.
Google Apps Script have a very specific set of libraries and usage that I imagine not to be Dart's team goal. I think such integration does not have much "appeal" for either teams (Apps Script and Dart).
This article Google Apps Scripts with Dart (by the speaker of the DartConf 2018 lightning talk mentioned in the other answer) describes the process in detail.
"Ever wanted to automate something in Google Docs, Spreadsheet, or any other of Google’s apps? If yes, then Google Apps Script is what you should look at. In this article I will show how we can use Dart to write programs for Google Apps Scripts."
The article also links to their open-source tool apps_script_tools
that automates the process.
© 2022 - 2024 — McMap. All rights reserved.