首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

Cordova CLI源码分析(2)——package.json

2013-09-05 
Cordova CLI源码分析(二)——package.json每个包需要在其顶层目录下包含一个package.json文件,该文件不仅是

Cordova CLI源码分析(二)——package.json

每个包需要在其顶层目录下包含一个package.json文件,该文件不仅是包的说明,也影响npm安装包时的配置选项

  更多参数详见参考文档https://npmjs.org/doc/json.html 

  },  "scripts": {  "test": "jasmine-node --color spec"//存储一些默认运行命令脚本信息  //cordova test 执行 jasmine-node --color spec  },  "repository": {    "type": "git",  "url": "https://git-wip-us.apache.org/repos/asf/cordova-cli.git"  // 存储位置  },  "bugs":{    "url" : "https://issues.apache.org/jira/browse/CB",    "email" : "dev@cordova.apache.org"  },  "keywords": [    "cordova",    "client",    "cli"  ],  "dependencies": {    "colors":">=0.6.0",    "elementtree":"0.1.3",    "plugman":"0.10.0",    "plist":"0.4.x",    "xcode":"0.5.1",    "express":"3.0.0",    "shelljs":"0.1.2",    "ncallbacks":"1.0.0",    "request":"2.22.0",    "ripple-emulator":"0.9.18",    "semver":"1.1.0",    "glob":"3.2.x",    "follow-redirects":"0.0.x",    "prompt":"0.2.7",    "tar":"0.1.x",    "open": "0.0.3",    "npm":"1.3.x",    "optimist":"0.6.0"  },/*依赖模块列表version 版本号必须精确匹配>version 必须大于当前版本号>=version 必须大于等于<version   小于<=version  小于等于~1.2.3 := >=1.2.3-0 <1.3.0-0  1.3.0-beta 不满足 ~1.2.3支持条件~1.2 := >=1.2.0-0 <1.3.0-0 以1.2开始的版本1.2.x := >=1.2.0-0 <1.3.0-0 以1.2开始的版本~1 := >=1.0.0-0 <2.0.0-0 以1开始的版本1.x := >=1.0.0-0 <2.0.0-0 以1开始的版本1.2.x 1.2.0, 1.2.1,等,不超过 1.3.0http://... 见链接地址* 匹配任意版本"" 匹配任意版本version1 - version2 等价于 >=version1 <=version2.range1 || range2 range1 或 range2均可git... 见git地址user/repo见 'GitHub ' 地址*/  "devDependencies": {    "jasmine-node":"1.8.x"  },   / /开发阶段使用的模块,在用户使用时不需要依赖的模块  "author": "Anis Kadri",//开发者  "contributors": [    {"name": "Brian LeRoux","email": "b@brian.io"},    {"name": "Fil Maj", "email": "maj.fil@gmail.com"},    {"name": "Mike Reinstein", "email":"reinstein.mike@gmail.com"},    {"name": "Darry Pogue", "email":"darryl@dpogue.ca"},    {"name": "Michael Brooks", "email":"michael@michaelbrooks.ca"},    {"name": "Braden Shepherdson", "email":"braden@chromium.org"},    {"name": "Gord Tanner", "email":"gtanner@gmail.com"},    {"name": "Tim Kim", "email": "timk@adobe.com"},    {"name": "Benn Mapes", "email": "Benn.Mapes@gmail.com"},    {"name": "Michael Wolf", "email": "Michael.Wolf@Cynergy.com"},    {"name": "Andrew Grieve", "email": "agrieve@chromium.org"},    {"name": "Bryan Higgins", "email": "bhiggins@blackberry.com"},    {"name": "Don Coleman", "email": "dcoleman@chariotsolutions.com"},    {"name": "Germano Gabbianelli", "email": "tyron.mx@gmail.com"},    {"name": "Ian Clelland", "email": "iclelland@chromium.org"},    {"name": "Lucas Holmqust", "email": "lholmqui@redhat.com"},    {"name": "Matt LeGrand", "email": "mlegrand@gmail.com"},    {"name": "Michal Mocny", "email": "mmocny@gmail.com"},    {"name": "Sam Breed", "email": "sam@quickleft.com"},    {"name": "Tommy-Carlos Williams", "email": "tommy@devgeeks.org"},  {"name": "Rubén Norte", "email": "rubennorte@gmail.com"}  //贡献者人员信息  ],  "license": "Apache version 2.0"}



热点排行