Giter Club home page Giter Club logo

loca-auto-update-scene's Introduction

guitar

🔭 - Local - Auto - Update - Scene 🔎


当前脚本用于解决内部方便替换新的本地场景数据 🚀


👨‍💻 用法


安装

# 安装包 local-auto-update-scene
pnpm install local-auto-update-scene

准备配置

在项目的根目录位置建立一个 laus.config.json 文件,并且在文件内写入对应的参数

{
  "sceneUrl": "",
  "sceneStaticPath": ""
}
  • sceneUrl:我们的请求场景的 url 。
  • sceneStaticPath:是我们要在项目里面引入的本地场景数据文件地址。

构建

在和构建的命令行前面写入 laus 也是就是我们执行更新场景数据的命令。例如:

"build": "laus && pnpm build"

然后在服务器构建的时候就会自动更新我们本地的场景数据了。


注意 🌟

如果在本地单独执行 laus 的话会可能触发一个 commit。需要记得提交

loca-auto-update-scene's People

Contributors

declanchiu 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.