您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

95 行
2.6KB

  1. {
  2. "name": "test",
  3. "description": "Test NPM",
  4. "version": "1.0.0-pre",
  5. "keywords": [
  6. "foo",
  7. "bar"
  8. ],
  9. "homepage": "http://test.tld",
  10. "license": "MIT",
  11. "author": {
  12. "name": "Foo Bar",
  13. "email": "foo@bar.tld",
  14. "url": "http://foo.bar.tld"
  15. },
  16. "contributors": [
  17. {
  18. "name": "Bar Foo",
  19. "email": "bar@foo.tld",
  20. "url": "http://bar.foo.tld"
  21. }
  22. ],
  23. "dependencies": {
  24. "library1": ">= 1.0.0",
  25. "library2": ">= 1.0.0",
  26. "library2-0.9.0": "library2#0.9.0",
  27. "library3": "git@foobar.tld:user/repository3.git",
  28. "library4": "git@foobar.tld:user/repository4.git#1.2.3",
  29. "library5": "git@foobar.tld:user/repository5.git#0a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b",
  30. "library6": "git@foobar.tld:user/repository6.git#branch",
  31. "library7": "git@foobar.tld:user/repository7.git#1.2.*",
  32. "library8": "git@foobar.tld:user/repository8.git#1.2.x",
  33. "library9": "git@foobar.tld:user/repository9.git#master",
  34. "library10": "git@foobar.tld:user/repository10#1.0.0",
  35. "library11": "git@foobar.tld:user/repository11",
  36. "library12": "git@foobar.tld:user/repository11#>=1 <2",
  37. "library13": ">=1 <2",
  38. "library14": "*",
  39. "library15": "library15#*",
  40. "library16": "library16#>=1 <2",
  41. "library17": "http://foobar.tld/library17-1.2.3.js",
  42. "library18": "http://foobar.tld/library18.js#1.2.3",
  43. "library19": "http://foobar.tld/library19.js",
  44. "library20": "1 || 2"
  45. },
  46. "devDependencies": {
  47. "dev-library1": ">= 1.0.0",
  48. "dev-library2": ">= 1.0.0",
  49. "dev-library2-0.9.0": "dev-library2#0.9.0",
  50. "library3": "library3,bar/*.js"
  51. },
  52. "bin": "bin/foo",
  53. "bugs": {
  54. "url": "http://foo.bar.tld",
  55. "email": "foo@bar.tld"
  56. },
  57. "files": [
  58. "dist/js/foo.js"
  59. ],
  60. "main": [
  61. "dist/js/bar.js"
  62. ],
  63. "man": [],
  64. "directories": {
  65. "lib": "lib",
  66. "bin": "bin",
  67. "man": "man",
  68. "doc": "doc",
  69. "example": "example"
  70. },
  71. "repository": {
  72. "type" : "git",
  73. "url" : "http://github.com/npm/npm.git"
  74. },
  75. "scripts": {
  76. "build": "npm install && grunt"
  77. },
  78. "config": {
  79. "foo": "bar"
  80. },
  81. "bundledDependencies": [],
  82. "optionalDependencies": [],
  83. "engines": {
  84. "node": ">=0.10.3 <0.12"
  85. },
  86. "engineStrict": true,
  87. "os": ["darwin", "linux"],
  88. "cpu": ["x64", "ia32"],
  89. "preferGlobal": true,
  90. "private": false,
  91. "publishConfig": {
  92. "foo": "bar"
  93. }
  94. }