Git Product home page Git Product logo

deploy-asset's Introduction

deploy-asset

简称 da,对前端静态资源进行 Minify, Revisioning 以及 Uploading

常见问题

  • HTML 放在后端,CSS/JS 放在静态服务器上,同时 CSS 中的图片也能放到静态服务器上,但 HTML 中的图片放哪?

如果放静态服务器,但测试服务器和线上服务器的地址不一样,必然会引起在发布代码时更新 HTML 中图片的域名, 这样就需要后端提供一个可配置域名的服务!

如果放到动态服务器,这样图片地址就需要换成相对于动态服务器的地址

相关文档

待办事项

  • 自动合拼图片(用在此工具上有点困难)
  • 有空了可以自己写个 ftp 模块,正好学习下 node 的 socket 编程
  • 最好重写下 ServerEnv 这一块的东西
  • update-notifier - Update notifications for your CLI app.
  • uploader 可以指定在上传完后才生成远程链接,这样就强制 concurrency 为 1 了
  • CLI-MD
    • CLI-TO-MD: 将 yargs 产生的 help 信息生成 markdown (HERE_DOC)
    • MD-TO-CLI: 用 markdown 来产生 yargs 的 help 信息 (HERE_DOC)

更新日志

CHANGELOG.md

License

Copyright (c) 2015 Zhonglei Qiu. Licensed under the MIT license.

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.