1
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:
2021-06-27 12:28:30 -04:00
parent 23aeb2fab1
commit 5981b99254
4 changed files with 13 additions and 4 deletions

View File

@@ -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
View File

@@ -15,6 +15,9 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*
# compiled typescript
api/**/*.js*
# Lighthouse CI
.lighthouseci/

View File

@@ -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*",
]);
}

View File

@@ -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,
},
};