@dobettest/scaffold
v0.1.8
Published
A tool to help web developer build env
Downloads
38
Maintainers
Readme
简介
@dobettest/scaffold是一个工具集合,包括github
模版添加、初始化项目、加速下载等,webpack
支持项目开发和打包优化,内置了对vue
、react
的项目支持,使用环境变量[scss,less,typescript,micro,aegis、publicPath、prettier]
轻松开启相关配置,按需加载,用户只需要关心核心业务的编写。
一、安装
npm install @dobettest/scaffold --save-dev
二、命令
一、start
(1)、dev运行
wrench start dev
二、template
(1)、添加模版
wrench tempate add
(2)、移除模版
wrench tempate remove
(3)、列出所有模版
wrench tempate list
(4)、使用模版创建项目
wrench tempate init
注意
从0.0.5版本开始,为了降低用户的使用成本,所需要的一些必要依赖,需要用户根据需要进行自定义安装,如下的依赖不是强制使用版本也不是必须安装的,用户可以根据提示进行缺失依赖安装和升级新版本。 推荐:
一、vue支持
1)、2.0版本需要的依赖:
npm install vue-laoder@15 -D \
npm install vue-template-compiler -D \
npm install eslint-plugin-vue -D
2)、3.0版本需要的依赖:
npm install vue-laoder@17 -D \
npm install eslint-plugin-vue -D
二、sass/scss支持
npm install sass-loader^12.6.0 \
npm install sass^1.51.0
三、less支持
npm install less-loader
四、关于其他配置
!!!! 不推荐在package.json中去配置eslint等选项,重复的配置可能导致问题
五、需要改进的问题
对于一些文件仍然需要需要进行手动的导入,比如qiankun
中的public-path
文件,这个问题可能将在下一个版本进行修复,尽请期待。