Giter Club home page Giter Club logo

es6-react-template's Introduction

es6-react-template

印客学院 ES6 React 项目模板

⛰️ 能力支持

🛡️ 配置要求

🔨 如何使用

1.下载代码仓库,执行如下指令

git clone [email protected]:encode-studio-fe/es6-react-template.git
cd es6-react-template

2.安装依赖

前提条件:使用最新版本的 pnpm

pnpm run init # pnpm install

3.执行指令

pnpm run build  # 打包依赖
pnpm run start  # 运行生产环境下的服务端

打开 http://localhost:8080

注意:如果想切换端口号,请在 ./src/config中修改。

🚀 运行指令

使用cross-env提供跨平台的设置及环境变量:

pnpm run <script> 描述
dev localhost:3000端口号上运行,并支持 HMR
dev:build 在开发模式下打包至 ./public/server
start 在生成环境下启动服务器,在localhost:8080端口号上运行
build 打包客户端和服务器端代码
build:server 打包服务器端代码,并置于 ./public/server
build:client 打包客户端代码,并置于 ./public/assets
analyze:server 服务器端代码打包内容可视化
analyze:client 客户端代码打包内容可视化

es6-react-template's People

Contributors

encode-studio-fe avatar xianzao avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.