This repository has been archived by the owner on Sep 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
49 lines (49 loc) · 3.8 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
"name": "grunt-devdir",
"description": "Grunt plugin for switching between specified dev / prod files",
"version": "0.2.0",
"homepage": "https://github.com/JanciMertel/grunt-devdir",
"author": {
"name": "JanciMertel",
"email": "[email protected]"
},
"repository": {
"type": "git",
"url": "git://github.com/JanciMertel/grunt-devdir.git"
},
"bugs": {
"url": "https://github.com/JanciMertel/grunt-devdir/issues"
},
"licenses": [
{
"type": "MIT",
"url": "https://github.com/JanciMertel/grunt-devdir/blob/master/LICENSE-MIT"
}
],
"engines": {
"node": ">= 0.8.0"
},
"scripts": {
"test": "grunt test"
},
"devDependencies": {
"grunt-contrib-jshint": "^0.9.2",
"grunt-contrib-clean": "^0.5.0",
"grunt-contrib-nodeunit": "^0.3.3",
"grunt": "~0.4.5"
},
"peerDependencies": {
"grunt": "~0.4.5"
},
"keywords": [
"gruntplugin"
],
"main": " ",
"license": "MIT",
"gitHead": "4d2452a706a1cf406e6e4b8c59536c2563875744",
"readme": "# grunt-devdir\r\n\r\n> Grunt plugin for switching between specified dev / prod files\r\n\r\n## Getting Started\r\nThis plugin requires Grunt `~0.4.5`\r\n\r\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:\r\n\r\n```shell\r\nnpm install grunt-devdir --save-dev\r\n```\r\n\r\nOnce the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\r\n\r\n```js\r\ngrunt.loadNpmTasks('grunt-devdir');\r\n```\r\n\r\n## The \"devdir\" task\r\n\r\n### Overview\r\nIn your project's Gruntfile, add a section named `devdir` to the data object passed into `grunt.initConfig()`.\r\n\r\n```js\r\ngrunt.initConfig({\r\n devdir: {\r\n options: {\r\n // Task-specific options go here.\r\n },\r\n your_target: {\r\n // Target-specific file lists and/or options go here.\r\n },\r\n },\r\n});\r\n```\r\n\r\n### Options\r\n\r\n#### options.separator\r\nType: `String`\r\nDefault value: `', '`\r\n\r\nA string value that is used to do something with whatever.\r\n\r\n#### options.punctuation\r\nType: `String`\r\nDefault value: `'.'`\r\n\r\nA string value that is used to do something else with whatever else.\r\n\r\n### Usage Examples\r\n\r\n#### Default Options\r\nIn this example, the default options are used to do something with whatever. So if the `testing` file has the content `Testing` and the `123` file had the content `1 2 3`, the generated result would be `Testing, 1 2 3.`\r\n\r\n```js\r\ngrunt.initConfig({\r\n devdir: {\r\n options: {},\r\n files: {\r\n 'dest/default_options': ['src/testing', 'src/123'],\r\n },\r\n },\r\n});\r\n```\r\n\r\n#### Custom Options\r\nIn this example, custom options are used to do something else with whatever else. So if the `testing` file has the content `Testing` and the `123` file had the content `1 2 3`, the generated result in this case would be `Testing: 1 2 3 !!!`\r\n\r\n```js\r\ngrunt.initConfig({\r\n devdir: {\r\n options: {\r\n separator: ': ',\r\n punctuation: ' !!!',\r\n },\r\n files: {\r\n 'dest/default_options': ['src/testing', 'src/123'],\r\n },\r\n },\r\n});\r\n```\r\n\r\n## Contributing\r\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](http://gruntjs.com/).\r\n\r\n## Release History\r\n_(Nothing yet)_\r\n",
"readmeFilename": "README.md",
"_id": "[email protected]",
"_shasum": "934c32917e446b823b886bf0899c16516ba43626",
"_from": "grunt-devdir@"
}