KO
|
EN
gitlite — search
Search
#javascript
#python
#hacktoberfest
#react
#ai
#typescript
#llm
#go
#golang
#android
#machine-learning
#rust
#deep-learning
#linux
grunt-play
★ 13
Open GitHub ↗
play sound with grunt
Download README (.md)
Explore Similar Repositories
normalize.less
:
:page_facing_up: The LESS equivalent to normalize.css.
bitrix-debug
:
No description available.
HIPAA-For-Web-App-Devs
:
HIPAA for Web Applications
underscoreboard
:
Your favorite Underscore-themed outcode-your-friends adventure!
localdata-dashboard
:
No description available.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
grunt-play
?
Download (.md)
# grunt-play ## Getting Started This plugin requires Grunt `~0.4.0` ```shell npm install grunt-play --save-dev ``` One the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript: ```js grunt.loadNpmTasks('grunt-play'); ``` ## The "play" task ### Overview In your project's Gruntfile, add a section named `play` to the data object passed into `grunt.initConfig()`. ```js grunt.initConfig({ play: { fanfare: { file: './sounds/fanfare.mp3' } } }) ``` ### Usage Examples #### Example Gruntfile ```js module.exports = function (grunt) { 'use strict'; grunt.initConfig({ jshint: { all: [ 'tasks/**/*.js' ], options: { jshintrc: '.jshintrc' } }, watch: { scripts: { files: [ 'tasks/**/*.js' ], tasks: ['jshint', 'play:fanfare'] } }, play: { fanfare: { file: './sounds/fanfare.mp3' } } }); // Actually load this plugin's task(s). grunt.loadTasks('tasks'); // These plugins provide necessary tasks. grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-watch'); // By default, lint and run all tests. grunt.registerTask('default', ['jshint', 'play']); }; ``` ## thanks i love DQ :) ## Release History 2013-03-27 v0.0.1 initial release