Giter Club home page Giter Club logo

fifa's Introduction

前端基于 FIS3 的工程母板

环境要求

要求 Node.js v4.0 及以上。

安装

工程取消了原有的全局安装,所有依赖均在本地。进入工程目录,使用以下命令安装:

npm i

yarn

如遇网络环境不稳定,建议安装 nrm, 切换仓库后重试。执行安装 npm i -g nrmyarn global add nrm查看手册

运行

启动

使用 npm run server:startyarn server:start 启动开发服务器,默认运行于 http://127.0.0.1:8080/http://[本机 IP]:8080/ .

FIS3 内置的 Server 会在后台常驻,直到重启计算机或者调用命令关闭。所以,后续不需要每次 release 就启动一次 server。

停止

使用 npm run server:stopyarn server:stop 停止开发服务器。

预览及监听

使用 npm run startyarn start 启动监听。

发布

使用 npm run buildyarn build 将产出输出至 ./docs 文件夹。推送至 github 后,./docs 文件夹将用于生成 Github Pages .

IDE 集成

假设你正在使用 VS Code .

  • 安装 Prettier.

    用户设置 中启用自动保存,及保存时自动格式化。

      "files.autoSave": "onFocusChange",
      "editor.formatOnSave": true,
      "javascript.format.enable": false // JavaScript 格式化将由 ESLint 接管。
  • 安装 ESLint, 以启用 JavaScript 语法检查,及自动格式化。将使用 Prettier 配置。修改 用户设置

      "eslint.autoFixOnSave": true,
      "eslint.alwaysShowStatus": true,
      "eslint.enable": true,
      "eslint.packageManager": "yarn"

VS Code 有很多高效设置,了解更多

fifa's People

Stargazers

 avatar

Watchers

 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.