-
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
.gitignorefor all - readme: create
README.mdfor 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)
- ignore: create
-
index.js: generate all template
-
utils: help functions for all
-
README.md
君鸿: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
改动:
- template/react 调用方式从之前
const { newIndex: reactNewIndex } = require('./template/react17');改为const reactSrcFile = require('./template/react17');,
新增:
- 调用
require('./template/react17'),需要新增isSass和isLess属性 - src下
style模板支持snowpack打包。单独调用为require('./template/style'),需要传递isSass和isLess属性 - 新增react ts, sass, less的模板
.fecoderc.json的featureList新增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
新增:
- 添加
mergeBasicDependencies方法处理3个打包工具共同使用的依赖包。 相关引用代码已统一处理好 - 把
getSrcTemplate这部分代码提取成utils, 降低对index.js的耦合 - 移除
beauty-js, 使用prettier统一处理格式化问题。相关代码在script/envir2code.js
-
plugins:
- webpack
- html-webpack-plugin
- webpack bundle analyzer
- clean webpack plugin
- minicss extract
- snowpack
- vite
- webpack
-
global nodejs runtime issue check