Skip to content

Instantly share code, notes, and snippets.

@savelee
Created November 1, 2016 11:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save savelee/9c418ff4e7cecb96541ce464810e3288 to your computer and use it in GitHub Desktop.
Save savelee/9c418ff4e7cecb96541ce464810e3288 to your computer and use it in GitHub Desktop.
Example of a custom package configuration file
{
/**
* The name of the package.
*/
"name": "ExtAddonHref,
/**
* Alternate names for this package.
*
* "alternateName": [],
*/
"alternateName": [
'HyperLink'
],
/**
* The package type.
*
* Sencha Cmd understands the following types of packages:
* - code : An arbitrary package of code for use by applications or other packages.
* - theme : A package to be used as an application’s theme.
* - locale : A package containing localization strings or locale-specific code.
* - template : A package containing one or more templates.
*/
"type": "code",
/**
* The author of the package.
*
* Required only if you are distributing this package through a Sencha Cmd repository,
* in which case it should match the name you assign to your local package repository.
*/
"creator": "Lee Boonstra",
/**
* A summarized description of this package.
*/
"summary": "A basic component for hyperlinks",
/**
* A detailed description of this package.
*/
"detailedDescription": "A basic component for hyperlinks",
/**
* The package version.
*
* Typically, changes to the package should come along with changes to the version.
* This number should be in this format: d+(.d+)*
*/
"version": "1.0.0",
/**
* The version that users can transparently update from without requiring code changes.
*
* In addition the version property, packages can also indicate the degree to which
* they are backward compatible using the compatVersion property.
*/
"compatVersion": "6.0.0",
/**
* Spec. version of this package.json file.
* This is set automatically by Sencha Cmd when first generating this file
*/
"format": "1",
/**
* Additional resources used during theme slicing operations
*/
"slicer": {
"js": [
{
"path": "${package.dir}/sass/example/custom.js",
"isWidgetManifest": true
}
]
},
/**
* Controls the output directory.
*/
"output": "${package.dir}/build",
/**
* Indicates whether this is a locally developed package or downloaded form a repository.
* Defaults to true on newly generated packages, should not be changed.
*/
"local": true,
/**
* The theme (package) this package will use (e.g., "ext-theme-neptune", etc.).
* This is only needed if the built package will be used by a non-Cmd application.
*
* "theme": "ext-theme-classic",
*/
/**
* The framework this package will use (i.e., "ext" or "touch").
* This is only needed if the built package will be used by a non-Cmd application.
*
* "framework": "ext",
*/
/**
* Packages can require other packages in the same way that applications can require
* packages.
*
* Can be specified as an array of package names or configuration objects.
*
* "requires": [
* "foo",
* "bar@1.1-2.0",
* {
* "name": "baz"
* "version": "1.5"
* }
* ]
*
* Can also be specified as an object:
*
* "requires": {
* "foo": "2.2",
* "bar": {
* "minVersion": "1.1",
* "version": "2.0"
* }
* }
*/
"requires": [],
"js":[]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment