Code with JSDoc support + Vitest + Typescript-type checks.
Use Clasp to store.
Deploy into compatible ES-5 code
Use the green "Use this template" button at the top.
You can clone either the original repository or your fork.
-
Open your terminal (like Powershell).
-
Navigate to folder you want with
cdcommandSample code:
cd C:\Users\Asus\Documents\CoolTables -
Clone the repository:
git clone https://github.com/YOU/YourRepo.git YourNewProjectName
-
Navigate into the cloned directory:
cd YourNewProjectName
-
Open the project in your preferred code editor.
code .
-
npm init
Create shortcut commands for terminal:
[Ctrl]+[Shift]+[P] => search
Search for
Open Keyboard Shortcuts (JSON)Add this command:
{ "key": "ctrl+alt+n", "command": "workbench.action.terminal.sendSequence", "args": { "text": "& {npm init -y; npm install; Add-Content -Path '.gitignore' -Value '.history/'}" } }Now you can use [ctrl+alt+n] shortcut in terminal and run the installation command!
".history/' is for those (like me), using "history" add-on, and willing to ignore it.
- Install (
npm install -g @google/clasp) → login (clasp login) - Create a clasp project:
clasp create --title "My Project" --type standalone - Change root dir in
clasp.jsonto"rootDir":".\\dist" - Delete
appsscript.jsonfrom main folder,\distalready has it npm run buildshould work fine and update.dist/clasp push→clasp open
- Update
README.md: - Commit and push your changes:
git add . git commit -m "Initial customization for new project" git push
git add .
git commit -m "Who cares"
git push origin master
get remote URL
git remote get-url origin