2 Star 1 Fork 0

dongfang / react-es6-postcss-webpack

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

react redux es6 postcss webpack 种子项目

使用

git clone 项目地址 --depth 1 只克隆最后一次commit记录,否则项目很大

项目介绍

  • 本项目使用koa搭建服务,前端react,react router,redux, react-redux, postcss,es6,babel等,webpack 和gulp配合打包构建,打包后的项目资源代码自动上传到七牛云
  • 提供快速搭建项目结构,自动化构建开发流程,自动化部署的单页面模块化应用

操作命令

  • npm run precompile 预编译第三方库依赖包
  • npm run build 生成开发环境代码
  • npm start 开发环境
  • npm start --production 生产环境
  • npm run release 打包到生产环境
  • npm run qiniu 上传生产环境文件到七牛云
  • npm run qiniu_list 查看七牛云文件列表

config配置详细

  • port 开发环境、正式环境端口
  • rootDir 开发目录、编译目录,正式环境目录
  • qiniu qiniu相关配置 host: qiniu域名 bucket_name: 存放文件bucket pre_path: 自定义文件路径 ACCESS_KEY: access_key SECRET_KEY: secret_key upload_dir: 上传到七牛云的正式环境下的目录集合,数组

说明

  • 先执行npm run precompile对一些固定不变的第三方依赖库预编译打包
  • npm start开发之前先执行npm run build命令
The MIT License (MIT) Copyright (c) 2016 刘博 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

react-es6-postcss-webpack种子 展开 收起
JavaScript
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/liubo1/react-es6-postcss-webpack.git
git@gitee.com:liubo1/react-es6-postcss-webpack.git
liubo1
react-es6-postcss-webpack
react-es6-postcss-webpack
master

搜索帮助