JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q24612F

自定义egg框架

Package Exports

  • sugar-coat
  • sugar-coat/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (sugar-coat) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

sugar-coat

NPM version npm download

基于 egg 的 Node.js web 框架。

配置

sugar-coat 支持不同环境加载不同的配置,在 ${baseDir}/config 目录下,有以下配置文件:

├── config.default.js  # 默认配置
├── config.local.js    # 本地开发配置,在本地开发的时候会和 default 配置合并(覆盖)
├── config.daily.js    # 日常配置,在日常的时候会和 default 配置合并(覆盖)
├── config.pre.js      # 预发配置,在预发的时候会和 default 配置合并(覆盖),注意,如果没有此文件,则在预发下使用 prod 的配置
└── config.prod.js     # 生产配置,在生产环境的时候会和 default 配置合并(覆盖)