Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JS library support #764

Open
juliahuang opened this issue Apr 27, 2020 · 4 comments
Open

JS library support #764

juliahuang opened this issue Apr 27, 2020 · 4 comments

Comments

@juliahuang
Copy link

It says here that:

JS modules, which help import functionality declared in one file into another, are not available at this time. However, if you are looking to leverage modern features like this along with TypeScript, coding in your favorite IDE, or using third party JS libraries like Tensorflow (machine learning), Sequelize (database connector), or GPU Accelerated JavaScript (GPU processing) with the ease of Apps Script’s built-in Google services, you can use CLASP (Command Line Apps Script) in a Node.js environment.

I looked for more documentation on third party libraries but haven't seen anything (specifically Sequelize since that is specifically called out). Has anyone had experience or suggestions on how exactly to use Sequelize within google apps scripts and how CLASP helps with it?

@oshliaer
Copy link
Contributor

🤔

Sequelize is based on the nodejs platform. Before adding Sequelize as a part of you Apps Script project you have to port it to the Google Apps Script platform.

clasp can't help you here. clasp allows you to develop your Apps Script projects locally.

@PopGoesTheWza
Copy link
Collaborator

The only option available at the moment is Apps Script Libraries, which is neither CommonJS package nor ES module.

Porting sequelize to the library format does not sound like a good idea.

@PopGoesTheWza
Copy link
Collaborator

This PR may be useful here: #820

@PopGoesTheWza
Copy link
Collaborator

@juliahuang @contributorpw what is the status for this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants