grunt-createjs-manifests
v0.2.0
Published
Grunt plugin to combine the manifests of multiple CreateJS exported files.
Downloads
8
Readme
grunt-createjs-manifests
Grunt plugin to combine the manifests from multiple CreateJS exported files and output to a JSON file.
Install
npm install grunt-createjs-manifests
Usage
grunt.initConfig({
manifests: {
all: {
output: "manifests.json",
files: "src/assets/*.js",
remove: "../../deploy/"
}
}
});
Properties
Property | Type | Description | Default ---|---|---|--- output | string | The output JSON file | null files | string,array | The list of files or single file, also accepts * wildcard | null remove (optional) | string | The string to remove from each manifest file path | "" insert (optional) | string | The string to prepend to each manifest file path | "" excludeAudio (optional) | boolean | Exlude any audio files from createjs in the manifest | true cwd (optional) | string | The current working directory | "./"
Options
Option | Type | Description | Default ---|---|---|--- space (optional) | string | White-space character for JSON stringify output | "" lowercase (optional) | boolean | If the manifest keys should be lowercased (first character is lowercased) | false audio (optional) | boolean | If we should include audio files (.mp3, etc) | false ignoreEmpties (optional) | boolean | Ignore manifests which are empty of assets | true
grunt.initConfig({
manifests: {
release: {
output: "manifests.json",
files: "src/assets/*.js",
remove: "../../deploy/"
},
debug: {
output: "manifests.json",
files: "src/assets/*.js",
remove: "../../deploy/",
options: {
// output is easier to read
space: "\t"
}
}
}
});