Run and control concurrent App Script
tasks from HTML
sidebar.
The sidebar front-end, and the engine was made with Svelte
in Vite
.
The project was designed to edit front-end part locally, and you'll be able to play with it in Browser, without loadind to the cloud.
It will work after you install VS Code, and Node JS to your computer. All commands given will work from your computer command line, or the terminal in VS Studio.
You may install the latest version or one of the key branches.
Use command line commands:
cd /path/to/my-project
git clone https://github.com/Max-Makhrov/apps-script-parallels
cd apps-script-parallels
npm install
code .
- 🩻Naked: Vite + Svelte + Singlefile
- 👶🏼svelte-sidebar: all in Version 1 + Code for mocking the sidebar and
apps.script.run
in the dev environment. - 👧🏼parallels-basics: concurrent tasks working demo. Good start for your next tests with parallel executions.
cd /path/to/my-project
git clone -b 🌵 https://github.com/Max-Makhrov/apps-script-parallels
cd apps-script-parallels
npm install
code .
Change 🌵
to the branch name = Version
After installation:
npm run dev
Before loading the project to the cloud, you need to run automatic code building. The Svelte will compile all the code the the regular JS
, compatible with App Script
:
npm run build
Notice the “dist
” folder and the file created after the “build
” command run:
dist\ui\index.html
Use clasp
to install your code inside Google Sheet's script.
Install (once):
npm install -g @google/clasp
Get the version to check is installed:
clasp -v
Login:
clasp login
Create a project + link it to the current local project:
clasp create
Add “.clasp.json
” to “.gitignore
” if you use GitHub.
Add the root “.claspignore
” file with the text:
**/**
!appsscript.json
!dist/**/**
Build the project:
npm run build
Optionally commit to GitHub. Update the remote project:
clasp push
Open:
clasp open
Launch in the container (Spreadsheet)