mirror of
				https://github.com/jakejarvis/jarv.is.git
				synced 2025-10-27 02:55:47 -04:00 
			
		
		
		
	generate function source maps for sentry releases
This commit is contained in:
		
							
								
								
									
										4
									
								
								.github/workflows/post-deploy.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/workflows/post-deploy.yml
									
									
									
									
										vendored
									
									
								
							| @@ -18,6 +18,9 @@ jobs: | ||||
|     - uses: actions/setup-node@v2 | ||||
|       with: | ||||
|         node-version: 14.x | ||||
|     - run: yarn install --frozen-lockfile | ||||
|     # https://docs.sentry.io/platforms/node/typescript/#configuring-typescript-compiler | ||||
|     - run: npx -p typescript tsc --esModuleInterop --sourceMap --sourceRoot '/' --inlineSources api/**/*.ts | ||||
|     - uses: getsentry/action-release@v1 | ||||
|       if: github.event.deployment_status.environment == 'production' | ||||
|       env: | ||||
| @@ -26,6 +29,7 @@ jobs: | ||||
|         SENTRY_PROJECT: jarvis | ||||
|       with: | ||||
|         environment: ${{ github.event.deployment_status.environment }} | ||||
|         sourcemaps: ./api | ||||
|     - uses: browser-actions/setup-chrome@latest | ||||
|       with: | ||||
|         chrome-version: stable | ||||
|   | ||||
							
								
								
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @@ -15,6 +15,9 @@ npm-debug.log* | ||||
| yarn-debug.log* | ||||
| yarn-error.log* | ||||
|  | ||||
| # compiled typescript | ||||
| api/**/*.js* | ||||
|  | ||||
| # Lighthouse CI | ||||
| .lighthouseci/ | ||||
|  | ||||
|   | ||||
| @@ -21,7 +21,7 @@ exports.default = gulp.series( | ||||
| ); | ||||
|  | ||||
| exports.serve = gulp.parallel( | ||||
|   npx("webpack", ["serve"]), | ||||
|   npx("webpack", ["serve", "--progress"]), | ||||
|   npx("hugo", ["--watch", "--buildDrafts", "--buildFuture", "--verbose"]), | ||||
| ); | ||||
|  | ||||
| @@ -77,6 +77,7 @@ function clean() { | ||||
|     "_vendor/", | ||||
|     "static/assets/", | ||||
|     "data/manifest.json", | ||||
|     "api/**/*.js*", | ||||
|   ]); | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -77,7 +77,7 @@ module.exports = { | ||||
|                 ], | ||||
|               ], | ||||
|             }, | ||||
|           } | ||||
|           }, | ||||
|         ], | ||||
|       }, | ||||
|       { | ||||
| @@ -164,9 +164,10 @@ module.exports = { | ||||
|     ], | ||||
|   }, | ||||
|   devServer: { | ||||
|     contentBase: path.join(__dirname, "public/"), | ||||
|     publicPath: "/assets/", | ||||
|     port: process.env.PORT || 1337, | ||||
|     contentBase: path.join(__dirname, "public/"), | ||||
|     watchContentBase: true, | ||||
|     publicPath: "/assets/", | ||||
|     compress: true, | ||||
|   }, | ||||
| }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user