Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up
for free
A half year at Merpay
Shingo Sato
July 03, 2019
Technology
3
630
A half year at Merpay
Shingo Sato
July 03, 2019
Tweet
Share
Other Decks in Technology
See All in Technology
masakick
0
120
tdys13
4
3.4k
sasakendayo
2
380
saoritakita
0
350
kurotanshi
0
180
tzkoba
0
390
oracle4engineer
1
220
ytaka23
0
430
sumi
0
210
yosuke_furukawa
PRO
8
1.9k
shotakashihara
1
1.3k
humank
0
220
Featured
See All Featured
philhawksworth
192
8.8k
hatefulcrawdad
257
17k
philnash
8
490
caitiem20
308
17k
samanthasiow
56
6.3k
thoeni
4
550
bryan
30
3.3k
eitanlees
111
9.9k
jonrohan
1021
380k
pedronauck
652
110k
jeffersonlam
328
15k
morganepeng
92
13k
Transcript
Merpay での半年間
Self Introduction
None
None
None
None
None
None
ins0.jp
Merpay Frontend Team
None
CS Tool Merpay Partners Admin Tool Merchants Registration Form Campaign
LP Coupon WebView
Campaign LP / Coupon WebView
None
None
Designers can operation by itself
Componentization Encapsulation Templating Simplicity
None
export function denyProduction({ env, error }: Context) { if (env.APP_ENV
=== 'production') { return error({ statusCode: 404 }); } }
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(); }); });
None
None
$ npm ci --production Ignore unnecessary files with .dockerignore Execute
test and build in parallel
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}
None
None