Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Structure

  • snowpack

    • generate package.json
    • generate snowpack.config.json
    • other config
  • webpack

    • generate package.json
    • generate webpack.config.json
    • other config
  • vite

    • generate package.json
    • generate vite.config.json
    • other config
  • template: src, common

    • ignore: create .gitignore for all
    • readme: create README.md for all
    • empty: src template for empty - no uiFramework, no mainFramework, support for typescript(optional)
    • react17: src template for react 17 - mainFramework: react 17, support for antd(optional), typescript(optional)
    • vue2: src template for vue 2 - - mainFramework: vue 2, support for element-ui(optional), typescript(optional)
    • lint: support for eslint(optional), premitter(optional)
    • style: support for sass(optional), less(optional), stuly(optional)
    • unitTest: support for jest(optional), mocha(optional)
  • index.js: generate all template

  • utils: help functions for all

  • README.md

TODO list

君鸿:empty framework +tsconfig vite 整合 贤明:vue + webpack 整合 仙伟:react + snowpack 整合

  • transpiler: typescript: 差整合 - snowpack done

  • typescript: template, react. vue(any), empty

  • style: sass/postcss/less:

    • react: sass, less done

改动:

  1. template/react 调用方式从之前const { newIndex: reactNewIndex } = require('./template/react17'); 改为 const reactSrcFile = require('./template/react17');

新增:

  1. 调用 require('./template/react17'),需要新增 isSassisLess 属性
  2. src下style模板支持snowpack打包。单独调用为require('./template/style'),需要传递isSassisLess 属性
  3. 新增react ts, sass, less的模板
  4. .fecoderc.jsonfeatureList新增sass,less属性
  • test: jest/mocha/chai/ should/expect - template react/vue - jest - lint: eslint/prettier - alone: format all generation files
  • framework: vue3 - ts - sass - less

新增:

  1. 添加 mergeBasicDependencies 方法处理3个打包工具共同使用的依赖包。 相关引用代码已统一处理好
  2. getSrcTemplate 这部分代码提取成utils, 降低对 index.js 的耦合
  3. 移除 beauty-js , 使用 prettier 统一处理格式化问题。相关代码在 script/envir2code.js
  • plugins:

    • webpack
      • html-webpack-plugin
      • webpack bundle analyzer
      • clean webpack plugin
      • minicss extract
    • snowpack
    • vite
  • global nodejs runtime issue check