-
Create
.venv
python -m venv .venv
-
Activate
.venv
For bash:
.venv\Scripts\activate
For powershell:
.venv\Scripts\Activate.ps1
-
Install nodeenv for Node.js virtual environment
pip install nodeenv
-
Create
.env
Node.js virtual environmentnodeenv .env
-
Activate Node.js virtual environment For bash:
.env\Scripts\activate
For powershell:
.env\Scripts\Activate.ps1
-
Install Node.js dependencies
npm install @google/clasp -g npm i -S @types/google-apps-script
-
Logs in and authorize management of your Google account's Apps Script projects
clasp login
-
Enable the Apps Script API in Google App Script User settings
-
Install typescript compiler
npm install tsc
-
Install eslint in
.env
npm install eslint
-
Create
.eselintconfig
.\node_modules\.bin\eslint --init
-
Configure
.eslintconfig
How would you like to use ESLint? · style √ What type of modules does your project use? · commonjs √ Which framework does your project use? · none √ Does your project use TypeScript? · No / Yes √ Where does your code run? · browser √ How would you like to define a style for your project? · guide √ Which style guide do you want to follow? · standard-with-typescript √ What format do you want your config file to be in? · JSON
-
Install Prettier
npm install prettier