Socket
Book a DemoInstallSign in
Socket

grunt-sound-manifests

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-sound-manifests

Generates aconfiig files for sound files in spring.

latest
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

grunt-sound-manifests

Generates a sounds manifest config file for use in a Springroll game/application.

Getting Started

This plugin requires Grunt ~0.4.5 and is designed for use with the Springroll sound playback.

npm install grunt-sound-manifests --save-dev
grunt.loadNpmTasks('grunt-sound-manifests');

The "sound_manifests" task

Overview

In your project's Gruntfile, add a section named soundManifests to the data object passed into grunt.initConfig().

grunt.initConfig({
  sound_manifests: {
    inputPath: "deploy/assets/sounds",
    outputPath: "src/%namespace%/config"
  },
});

Options

options.inputPath

Type: String Default value: "deploy/assets/sounds"

A string value of the relative path to the sounds folders (music/, sfx/, and vo/).

options.outputPath

Type: String Default value: src/%namespace%/config

A string value of the relative path to the config folder for the project.

Usage Examples

Default Options

After placing or renaming sound files in the deploy/assets/sounds/<music/,sfx/,vo/> folders, run grunt sound-manifest to build new src/%namespace%/config/sounds/<music/,sfx/,vo/> files. Note: The process is a complete re-write, however, it will check-for and copy objects that have the same id or src in the current config files. If a file is renamed at the src (e.g. in Finder) and the process is run, it will lose the object's data (unless you had already set the id to be the new name).

Release History

(Nothing yet)

Keywords

gruntplugin

FAQs

Package last updated on 10 Apr 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts