A half year at Merpay

A half year at Merpay

8bf16af62d684ea0f6206d53d0c31444?s=128

Shingo Sato

July 03, 2019
Tweet

Transcript

  1. Merpay での半年間

  2. Self Introduction

  3. None
  4. None
  5. None
  6. None
  7. None
  8. None
  9. ins0.jp

  10. Merpay Frontend Team

  11. None
  12. CS Tool Merpay Partners Admin Tool Merchants Registration Form Campaign

    LP Coupon WebView
  13. Campaign LP / Coupon WebView

  14. None
  15. None
  16. Designers can operation by itself

  17. Componentization Encapsulation Templating Simplicity

  18. None
  19. export function denyProduction({ env, error }: Context) { if (env.APP_ENV

    === 'production') { return error({ statusCode: 404 }); } }
  20. export function staticAssetsAccessControl(this: any, moduleOptions: ModuleOptions) { this.nuxt.hook('render:setupMiddleware', (app: Server)

    => { app.use((req: http.IncomingMessage, res: http.ServerResponse, next: (err?: any) => void) => { const { pathname } = parseUrl(req.url); if (/* check the `pathname` */) { return options.denyCallback(res); } return next(); }); });
  21. None
  22. None
  23. $ npm ci --production Ignore unnecessary files with .dockerignore Execute

    test and build in parallel
  24. jobs: upload_sourcemap: executor: sentry_cli steps: - checkout - attach_workspace: at:

    *workspace_root - run: shell: /bin/bash -euo pipefail command: | RELEASE_NAME=$(cat ./package.json | jq -r .version) URL_PREFIX=https://static-coupon.merpay.com/nuxt sentry-cli --auth-token=${SENTRY_AUTH_TOKEN} releases files ${RELEASE_NAME} \ upload-sourcemaps .nuxt/dist/client --no-rewrite --url-prefix=${URL_PREFIX}
  25. None
  26. None