基于python3.x的脚手架工具,方便构建应用,目前支持react项目
sudo pip3 install hangcli
在终端执行
hangcli react --project=yourprojectname
|____hangcli.py
|____setup.py
|____src
| |____react
| | |____.babelrc
| | |____index.html
| | |____index.js
| | |____package.json
| | |____webpack.config.js
|____upload.py
目前的功能较少,所以结构也很简单
其中hangcli.py
实现主要cli功能,setup.py
指定打包pypi配置信息,upload.py
是上架打包脚本,src/react
中存放react项目需要用的文件。
修改了脚手架代码之后,我们首先需要更新setup.py
中的版本信息,然后执行upload.py
脚本之后,输入用户名和密码。
- configured webpack.config.js && package.json
- less && scss loader in box
- include spread function