Skip to content

Latest commit

 

History

History
102 lines (70 loc) · 1.98 KB

setup_procedure.md

File metadata and controls

102 lines (70 loc) · 1.98 KB

Setup commands

  1. Create .venv

    python -m venv .venv
  2. Activate .venv

    For bash:

    .venv\Scripts\activate

    For powershell:

    .venv\Scripts\Activate.ps1
  3. Install nodeenv for Node.js virtual environment

    pip install nodeenv
  4. Create .env Node.js virtual environment

    nodeenv .env
  5. Activate Node.js virtual environment For bash:

    .env\Scripts\activate

    For powershell:

    .env\Scripts\Activate.ps1
  6. Install Node.js dependencies

    npm install @google/clasp -g
    npm i -S @types/google-apps-script
  7. Logs in and authorize management of your Google account's Apps Script projects

    clasp login
  8. Enable the Apps Script API in Google App Script User settings


Optional commands

  1. Install typescript compiler

    npm install tsc
  2. Install eslint in .env

    npm install eslint
  3. Create .eselintconfig

    .\node_modules\.bin\eslint --init
  4. 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
  5. Install Prettier

    npm install prettier