spm打seajs压缩包摘抄

FieldDescription
name*name of the package in lowercase, use a - or . as a separator between words
version*semantic versioning like 1.0.0
descriptiona brief description of the package
keywordsan array of keywords
homepageurl of the package's website
authorauthor of the package: Hsiaoming Yang <me@lepture.com> or { "name": "Hsiaoming Yang", "email": "me@lepture.com" }
maintainersan array of maintainers, just like author
repositoryspecify the place where the code is hosted. { "type": "git", "url": "http://github.com/isaacs/npm.git" }
bugsthe url to the package's issue tracker and / or the email address to which issues should be reported.
licenselicense
spm* 
spm.mainthe only entry point of the package, default index.js, or could be set to index.css for a css-only package
spm.outputan array of other files needed to be output
spm.dependenciesspecify dependencies relation of the package
spm.devDependenciesspecify dependencies relation of the package in developing situation
spm.testsspecify all test files, support glob patterns: tests/*-spec.js
spm.buildArgsspecify the cli arguments for spm build
spm.ignorean array of ignore files in package, same function as .spmignore
spm.scriptslike npm.scripts, handle around some spm commands, it support prebuildpostbuildpreinstallpostinstall,prepublishpostpublish.

{
  "name": "arale-calendar",
  "version": "1.1.0",
  "description": "Calendar widget.",
  "keywords": [
    "widget",
    "month",
    "datepicker"
  ],
  "author": "Hsiaoming Yang <me@lepture.com>",
  "maintainers": [
    "hotoo <hotoo.cn@gmail.com>",
    "shengyan <shengyan1985@gmail.com>"
  ],
  "homepage": "http://aralejs.org/calendar/",
  "repository": {
    "type": "git",
    "url": "https://github.com/aralejs/calendar.git"
  },
  "bugs": {
    "url": "https://github.com/aralejs/calendar/issues"
  },
  "license": "MIT",
  "spm": {
    "main": "calendar.js",
    "dependencies": {
      "jquery": "1.7.2",
      "moment": "2.6.0",
      "arale-base": "1.1.0",
      "arale-position": "1.1.0",
      "arale-iframe-shim": "1.1.0",
      "handlebars": "1.3.0",
      "arale-widget": "1.2.0"
    },
    "devDependencies": {
      "expect.js": "0.3.1"
    },
    "tests": "tests/*-spec.js",
    "ignore": ["dist"],
    "buildArgs": "--ignore jquery",
    "scripts": {
      "prepublish": "lessc index.less index.css"
    }
  }
}


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值