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 |     - uses: actions/setup-node@v2 | ||||||
|       with: |       with: | ||||||
|         node-version: 14.x |         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 |     - uses: getsentry/action-release@v1 | ||||||
|       if: github.event.deployment_status.environment == 'production' |       if: github.event.deployment_status.environment == 'production' | ||||||
|       env: |       env: | ||||||
| @@ -26,6 +29,7 @@ jobs: | |||||||
|         SENTRY_PROJECT: jarvis |         SENTRY_PROJECT: jarvis | ||||||
|       with: |       with: | ||||||
|         environment: ${{ github.event.deployment_status.environment }} |         environment: ${{ github.event.deployment_status.environment }} | ||||||
|  |         sourcemaps: ./api | ||||||
|     - uses: browser-actions/setup-chrome@latest |     - uses: browser-actions/setup-chrome@latest | ||||||
|       with: |       with: | ||||||
|         chrome-version: stable |         chrome-version: stable | ||||||
|   | |||||||
							
								
								
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @@ -15,6 +15,9 @@ npm-debug.log* | |||||||
| yarn-debug.log* | yarn-debug.log* | ||||||
| yarn-error.log* | yarn-error.log* | ||||||
|  |  | ||||||
|  | # compiled typescript | ||||||
|  | api/**/*.js* | ||||||
|  |  | ||||||
| # Lighthouse CI | # Lighthouse CI | ||||||
| .lighthouseci/ | .lighthouseci/ | ||||||
|  |  | ||||||
|   | |||||||
| @@ -21,7 +21,7 @@ exports.default = gulp.series( | |||||||
| ); | ); | ||||||
|  |  | ||||||
| exports.serve = gulp.parallel( | exports.serve = gulp.parallel( | ||||||
|   npx("webpack", ["serve"]), |   npx("webpack", ["serve", "--progress"]), | ||||||
|   npx("hugo", ["--watch", "--buildDrafts", "--buildFuture", "--verbose"]), |   npx("hugo", ["--watch", "--buildDrafts", "--buildFuture", "--verbose"]), | ||||||
| ); | ); | ||||||
|  |  | ||||||
| @@ -77,6 +77,7 @@ function clean() { | |||||||
|     "_vendor/", |     "_vendor/", | ||||||
|     "static/assets/", |     "static/assets/", | ||||||
|     "data/manifest.json", |     "data/manifest.json", | ||||||
|  |     "api/**/*.js*", | ||||||
|   ]); |   ]); | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -77,7 +77,7 @@ module.exports = { | |||||||
|                 ], |                 ], | ||||||
|               ], |               ], | ||||||
|             }, |             }, | ||||||
|           } |           }, | ||||||
|         ], |         ], | ||||||
|       }, |       }, | ||||||
|       { |       { | ||||||
| @@ -164,9 +164,10 @@ module.exports = { | |||||||
|     ], |     ], | ||||||
|   }, |   }, | ||||||
|   devServer: { |   devServer: { | ||||||
|     contentBase: path.join(__dirname, "public/"), |  | ||||||
|     publicPath: "/assets/", |  | ||||||
|     port: process.env.PORT || 1337, |     port: process.env.PORT || 1337, | ||||||
|  |     contentBase: path.join(__dirname, "public/"), | ||||||
|  |     watchContentBase: true, | ||||||
|  |     publicPath: "/assets/", | ||||||
|     compress: true, |     compress: true, | ||||||
|   }, |   }, | ||||||
| }; | }; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user