UNPKG

catlogjs

Version:

Static site generator, translate human readable text format(such as markdown) into html, with a lot of other functions

52 lines (51 loc) 2.85 kB
{ "name": "grunt-open", "description": "Open urls and files from a grunt task", "version": "0.2.2", "homepage": "https://github.com/onehealth/grunt-open", "author": { "name": "Jarrod Overson", "email": "jsoverson@gmail.com", "url": "http://jarrodoverson.com/" }, "repository": { "type": "git", "url": "git://github.com/onehealth/grunt-open.git" }, "bugs": { "url": "https://github.com/onehealth/grunt-open/issues" }, "licenses": [ { "type": "MIT", "url": "https://github.com/onehealth/grunt-open/blob/master/LICENSE" } ], "main": "Gruntfile.js", "bin": { "grunt-open": "bin/grunt-open" }, "engines": { "node": ">= 0.6.0" }, "scripts": { "test": "grunt test" }, "dependencies": { "open": "~0.0.4" }, "devDependencies": { "grunt": "~0.4.0", "grunt-contrib-jshint": "~0.1.1" }, "keywords": [ "gruntplugin", "open", "url", "file" ], "readme": "# grunt-open\n\nOpen urls and files from a grunt task\n\n## Installation\n\nInstall alongside your Gruntfile\n\n```bash\n$ npm install --save grunt-open\n```\n\n## Usage\n\nThis is immediately useful as part of your task chain between `server` and `watch`\n\n```js\ngrunt.registerTask('default', ['server', 'open', 'watch']);\n```\n\nYou can specify different configurations so that you can set up task chains like\n\n```js\ngrunt.registerTask('dev', ['server', 'open:dev', 'watch']);\ngrunt.registerTask('build', ['build', 'server', 'open:build', 'watch:build');\n```\n\n## Getting Started\nInstall this grunt plugin next to your project's [Gruntfile][getting_started] with: `npm install grunt-open`\n\n## Configuration\n\nThis is a very simple task and takes two configuration parameter, `path` (required) and `app` (optionnal). If app is unused, default application will launch. \n\n```js\ngrunt.initConfig({\n open : {\n dev : {\n path: 'http://127.0.0.1:8888/src',\n app: 'Google Chrome'\n },\n google : {\n path : 'http://google.com/',\n app: 'Firefox'\n },\n file : {\n path : '/etc/hosts'\n }\n }\n})\n\ngrunt.loadNpmTasks('grunt-open');\n\n```\n\n[grunt]: https://github.com/gruntjs/grunt\n[getting_started]: https://github.com/cowboy/grunt/blob/master/docs/getting_started.md\n\n## Contributing\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [grunt][grunt].\n\n## Release History\n\n - 0.2.0 grunt 0.4.0 support, added and preferring `path` parameter.\n - 0.1.0 initial release\n\n## License\n\nCopyright OneHealth Solutions, Inc\n\nWritten by Jarrod Overson\n\nLicensed under the Apache 2.0 license.\n", "readmeFilename": "README.md", "_id": "grunt-open@0.2.2", "_from": "grunt-open@~0.2.0" }