Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

Documentation #23

Open
42 tasks
iamssen opened this issue Sep 12, 2020 · 0 comments
Open
42 tasks

Documentation #23

iamssen opened this issue Sep 12, 2020 · 0 comments

Comments

@iamssen
Copy link
Member

iamssen commented Sep 12, 2020

web

env

  • jest configuration
  • webpackFinal of storybook
  • available import types (scripts, svg, mdx, styles, yaml, image, plain text)

config

  • set env → process.env / direnv
  • browserslist →
  • proxy → webpackDevServerConfig
  • https → webpackDevServerConfig
  • multiple static file directories → staticFileDirectories (illustration - public/a.jpg, static/b.jpg → http://localhost/a.jpg, http://localhost:b.jpg)
  • app → (illustration - start({ app: 'app' }) → focus app directory on src/ directory)
  • customize webpack configuration, ignoring webpack configurations
  • attach additional UI → children
  • change logfile location → logfile
  • remove source-map on production files → devtool ( sentry )
  • see bundle size report

advanced strategies

  • boot API server and set proxy config on one time (with @rocket-scripts/mock)
  • attach remote servers with proxy config
  • repeating profile with puppeteer and react ink UI
  • take screenshots with puppeteer
  • quick-change puppeteer settings with react ink UI (e.g. emulate vision deficiencies)
  • debug chances (node script, inspect chrome...)

start params (markdown-source-import)

  • required
    • app
  • optional
    • staticFileDirectories
    • port
    • hostname
    • logfile
  • danger zone
    • cwd
    • tsconfig
    • webpackConfig
    • webpackDevServerConfig
    • babelLoaderOptions
    • stdout
    • stdin
    • children

build params (markdown-source-import)

  • required
    • app
  • optional
    • staticFileDirectories
    • outDir
    • openBundleSizeReport
  • danger zone
    • cwd
    • tsconfig
    • webpackConfig
    • babelLoaderOptions
    • devtool
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant