Skip to content

Latest commit

 

History

History
46 lines (36 loc) · 1.16 KB

File metadata and controls

46 lines (36 loc) · 1.16 KB

cli

cli for react and vue

todo

SPA

  • empty dir src
  • mkdir src
  • touch main.tsx?
  • declare.d.ts

MPA

  • empty dir src
  • mkdir src && mkdir src/demo
  • cd src/demo && touch index.tsx? index.less? index.vue?
  • cd src && touch declare.d.ts /// react or vue

config.(js|ts|json)

  • gen wont.config.js
  • config document.title from 'html-webpack-plugin', needs wont.config.js has right title config
  • gen entry or entries (MPA needs glob) choice spa or mpa, and Convention over configuration

framework

  • react
  • vue

env config

  • done from dotenv

optimize

  • externals

dev config

  • proxy from devServer (provide webpack.js option to merge is ok)
  • port take up (portfinder)

platform

  • mobile (mainly about rem, can work with pxtorem postcss plugins)
  • pc

init dir

  • make sure dir is exit or has conflict, and resolve conflict by overwrite, both, some like git diff make sure dir is exit, is exit, overwrite by emptyDir

questions

  • how to work with copy file to dest, like yeoman fs-extra copySync is ok

SSR(finally)

  • to be continue…