Code Monkey home page Code Monkey logo

template's Introduction

使用 phaser3 + es6 + webpack4.8.1 开发

build passing version node version phaser version webpack version license MIT

安装依赖

npm install // 或 yarn

本地运行查看

npm start

发布生产

// 生成到根目录下的 dist 目录中
npm run prod 

知识点

  1. 安装使用 yarn

    更多 yarn 命令

    # 安装 yarn
    brew install yarn --without-node
    
    # 更新 yarn
    brew upgrade yarn
    
    # 查看 yarn 是否安装成功
    yarn --version
    
    # yarn 最常用的命令
    yarn init # 初始化项目
    
    yarn add [package] # 安装最新,默认安装写进 dependencies 中
    yarn add [package]@[version] # 安装指定版本
    yarn add [package]@[tag] # 安装指定标签
    
    yarn add [package] --dev # 开发包
    yarn add [package] --peer # 同等依赖包
    yarn add [package] --optional # 可选择依赖包
    
    yarn upgrade [package] # 更新
    yarn upgrade [package]@[version] # 更新
    yarn upgrade [package]@[tag] # 更新
    
    yarn remove [package] # 移除指定包
    
    yarn # 安装所有依赖 等效于 yarn install
    yarn install # 安装所有依赖

  2. 安装配置 webpack

    1. conf/webpack.dev.js 配置本地开发环境
    2. conf/webpack.prod.js 配置发布生产环境

template's People

Contributors

liurongqing avatar

Stargazers

Tuan Duc Tran avatar  avatar kale avatar  avatar  avatar alex liu avatar Mimo avatar xuanjian avatar  avatar  avatar Emily Baker avatar  avatar 张宇 avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

liure

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.