Deploy via Google Apps Script an intuitive, visually appealing roadmap (built with Svelte) leveraging data from Google Sheets.
Develop locally with sample json data and seamlessly deploy to Google Apps Script using Clasp.
Based on the Svelte + Google Apps Script project
npm install to install dependencies.npm run dev to start the development server.http://localhost:5173 in your browser to see the app.src folder. The app will reload automaticallyroadmap-data.json file during development.npm run build - Build the Svelte applicationnpm run preview - Preview the production build locallynpm run check - Run TypeScript and Svelte checksAfter Deploying
npm run build to generate the contentgas folder into the Apps Script editorLogin to your Google account:
npm run clasp:login
This will open a browser window for authentication.
.clasp.json.example to .clasp.json and replace YOUR_APPS_SCRIPT_PROJECT_ID_FROM_SETTINGS with your Script IDBuild your Svelte app and push to Google Apps Script:
npm run clasp:push
This command builds the project and pushes all files to your Apps Script project.
Run the deployment command to create a new deployment:
npm run clasp:deploy
npm run clasp:login - Authenticate with Googlenpm run clasp:logout - Logout from Googlenpm run clasp:create - Create a new Apps Script projectnpm run clasp:push - Push code to Apps Scriptnpm run clasp:open - Open the Apps Script project in browsernpm run clasp:deploy - Create a new deploymentnpm run clasp:deployments - List all deploymentsnpm run deploy - Build and push to Apps Script (recommended).
├── gas/ # Google Apps Script files
│ ├── appsscript.json # Apps Script manifest
│ ├── Code.js # Server-side Apps Script code
│ ├── Index.html # Main HTML template
│ ├── Javascript.html # Generated from build (auto-generated)
│ └── Stylesheet.html # Generated from build (auto-generated)
├── src/ # Svelte source files
│ └── lib/ # Svelte components
├── .claspignore # Files to ignore when pushing
└── .clasp.json # Clasp configuration (gitignored)