Official repository for apm.
##Files
packages.json
- list of all packages in repositorypackage-name.json
- info about packagegenerate.rb
- generator of 'packages.json'
##Structure of package-name.json
name
- name of package (lowercase with dashes)description
- short description of packagecategory
- category of package (lowercase)versions
:version
- version of package (in this format:x.x.x
)url
- link to download this version of package (only.zip
supported)
files
- array of directories/files to installdependencies
- other packages that must be installed with package (optional):dependency-name
- name of packagedependency-version
- version of package that must be installed
Example package-name.json
:
{
"name": "example-code",
"description": "Just for example.",
"category": "examples",
"homepage": "http://example.com/example",
"versions": {
"2.0.0": "http://download.example.com/example2.0.zip",
"1.0.0": "http://download.example.com/example1.0.zip",
},
"files": ["libTwo", "libOne"],
"dependencies": {
"awesome": "*"
}
}
##How to contribute
- Fork.
- Make changes.
- Check packages with JSONLint.
- Generate new
packages.json
with apm-repo-gen. - Pull request.
You can add issues with tag missing package
to suggest new packages in repository.