{"_id":"@clevyr/clevyr-grunt-dust","_rev":"3-e16d5a98e25fb4f4ea05579e52b5e707","name":"@clevyr/clevyr-grunt-dust","description":"Grunt.js plugin to compile dustjs templates.","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@clevyr/clevyr-grunt-dust","description":"Grunt.js plugin to compile dustjs templates.","version":"0.1.0","homepage":"https://clevyr.com","author":{"name":"Clevyr","email":"support@clevyr.com"},"repository":{"type":"git","url":"git://github.com/clevyr/clevyr-grunt-dust.git"},"bugs":{"url":"https://github.com/clevyr/clevyr-grunt-dust/issues"},"licenses":[{"type":"MIT"}],"main":"Gruntfile.js","bin":{"grunt-dust":"bin/grunt-dust"},"engines":{"node":"*"},"scripts":{"test":"grunt test"},"dependencies":{"grunt":"~0.4.1","dustjs-linkedin":"~2.2.2","coffee-script":"~1.6.3","semver":"2.2.1","js-beautify":"~1.4.2"},"devDependencies":{"wrench":"~1.5.4","string":"~1.3.0","grunt-mocha-test":"~0.2.2","should":"~1.2.2","grunt-cli":"~0.1.7","esprima":"~1.0.4"},"keywords":["gruntplugin","clevyr","dustjs","grunt"],"_id":"@clevyr/clevyr-grunt-dust@0.1.0","dist":{"shasum":"e10ca082d547287ce35816352e1dbed2a3cf681e","tarball":"https://registry.npmjs.org/@clevyr/clevyr-grunt-dust/-/clevyr-grunt-dust-0.1.0.tgz","integrity":"sha512-fuF+M0IkbavDhLEp/P5KYHNHOTDwifXIUwqPZwtARhnJek43IK98n9rmm8KJja/sUwcrSERr5aVzPhrF7CuOOQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAGKfTqrxz1UzNWVEwA5q6OjOjQPtyBE7im+jXTkUao1AiBOGoJCCp82p59jVv/YkEeEksJXGH4JADdpjGhre5uSZQ=="}]},"_from":".","_resolved":"https://registry.npmjs.org/grunt-dust/-/clevyr-grunt-dust-0.7.7.tgz","gitHead":"b1bbf028c111bf25f3077a0350d4236073401d20","_shasum":"e10ca082d547287ce35816352e1dbed2a3cf681e","_npmVersion":"3.3.3","_nodeVersion":"4.1.1","_npmUser":{"name":"clevyr","email":"support@clevyr.com"},"maintainers":[{"name":"clevyr","email":"support@clevyr.com"}]}},"readme":"# grunt-dust [![build status](https://secure.travis-ci.org/vtsvang/grunt-dust.png)](http://travis-ci.org/vtsvang/grunt-dust) [![dependencies status](https://david-dm.org/vtsvang/grunt-dust.png)](https://david-dm.org/vtsvang/grunt-dust)\n\nGrunt.js plugin to compile dustjs templates.\n\n## Getting Started\nThis plugin requires Grunt `~0.4.0`\n\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:\n\n```shell\nnpm install grunt-dust --save-dev\n```\n\nOnce the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\n\n```js\ngrunt.loadNpmTasks('grunt-dust');\n```\n\n*This plugin was designed to work with Grunt 0.4.x. If you're still using grunt v0.3.x it's strongly recommended that [you upgrade](http://gruntjs.com/upgrading-from-0.3-to-0.4), but in case you can't please use [v0.1.1](https://github.com/vtsvang/grunt-dust/tree/v0.1.0).*\n\n\n\n## Dust task\n_Run this task with the `grunt grunt-dust` command._\n\nTask targets, files and options may be specified according to the grunt [Configuring tasks](http://gruntjs.com/configuring-tasks) guide.\n### Options\n\n#### wrapper\nType: `String/boolean`\nDefault: \"amd\"\n\nWrapper style to use - \"amd\" or \"commonjs\" are the only accepted values.\n\n#### wrapperOptions\nType: `Object`\nDefault: null\n\nOptions for the package wrapper.\n\n#### wrapperOptions.packageName\nType: `String`\nDefault: null\n\nPackage name used in define() invocation.\n\n#### wrapperOptions.returning\nType: `String`\nDefault: \"dust\"\n\nName of variable which will be returned in CommonJS wrapper.\n\n#### wrapperOptions.deps\nType: `Object`\nDefault: { dust: \"dust-runtime\" }\n\nAmd package dependencies.\n\n#### runtime\nType: `boolean`\nDefault: true\n\nInclude dust runtime file.\n\n#### relative\nType: `boolean`\nDefault: false\n\nMake templates names relative from cwd (working only if used [Grunt Dynamic Mappings](http://gruntjs.com/configuring-tasks#building-the-files-object-dynamically)).\n\n#### basePath\nType: `string`\nDefault: false\n\nExclude this path from templates names.\n\n#### useBaseName\nType: `boolean`\nDefault: false\n\nIf 'true' template names will be the same as the basename of the file, sans prepended paths and file extensions. When coupled with globbing pattern '[root_folder]/**/*' all files matched will use their base names regardless of where the file is located in the directory tree rooted at root_folder. Note: One caveat - filenames must be unique! Otherwise name collisions will occur.\n\n\n### Usage Examples\n\n```js\ndust: {\n\n  defaults: {\n    files: {\n      \"dst/default/views.js\": \"src/**/*.dust\"\n    },\n  },\n\n  many_targets: {\n    files: [\n      {\n        expand: true,\n        cwd: \"src/\",\n        src: [\"**/*.dust\"],\n        dest: \"dst/many_targets/\",\n        ext: \".js\"\n      }\n    ],\n    options: {\n      relative: true\n    }\n  },\n\n  many_targets_without_package_name: {\n    files: [\n      {\n        expand: true,\n        cwd: \"src/\",\n        src: [\"**/*.dust\"],\n        dest: \"dst/many_targets_without_package_name/\",\n        ext: \".js\"\n      }\n    ],\n    options: {\n      wrapper: \"amd\",\n      wrapperOptions: {\n        packageName: null, // disable packageName\n        deps: {\n          dust: \"v1/dust-helpers\"\n        }\n      }\n    }\n  },\n\n  amd_without_package_name_and_deps: {\n    files: {\n      \"dst/amd_without_package_name_and_deps/views.js\": \"src/**/*.dust\"\n    },\n    options: {\n      wrapper: \"amd\",\n      wrapperOptions: {\n        packageName: null,\n        deps: false\n      }\n    }\n  },\n\n  no_wrapper: {\n    files: {\n      \"dst/views_no_amd/views.js\": \"src/**/*.dust\"\n    },\n    options: {\n      wrapper: false\n    }\n  },\n\n  amd_custom_deps: {\n    files: {\n      \"dst/views_amd_custom_deps/views.js\": \"src/**/*.dust\"\n    },\n    options: {\n      wrapper: \"amd\",\n      wrapperOptions: {\n        deps: {\n          dust: \"dust-core-1.0.0.min.js\"\n        }\n      }\n    }\n  },\n\n  amd_without_deps: {\n    files: {\n      \"dst/views_amd_without_deps/views.js\": \"src/**/*.dust\"\n    },\n    options: {\n      wrapper: \"amd\",\n      wrapperOptions: {\n        deps: false\n      }\n    }\n  },\n\n  amd_with_package_name: {\n    files: {\n      \"dst/views_amd_with_package_name/views.js\": \"src/**/*.dust\"\n    },\n    options: {\n      wrapper: \"amd\",\n      wrapperOptions: {\n        packageName: \"views\"\n      }\n    }\n  },\n\n  commonjs: {\n    files: {\n      \"dst/views_commonjs/views.js\": \"src/**/*.dust\"\n    },\n    options: {\n      wrapper: \"commonjs\",\n      wrapperOptions: {\n        returning: \"dust\",\n        deps: {\n          foo: \"foo.js\",\n          dust: \"dust.js\"\n        }\n      }\n    }\n  },\n\n  nested_relative: {\n    files: {\n      \"dst/views_nested_relative/views.js\": \"src/**/*.dust\"\n    },\n    options: {\n      wrapperOptions: {\n        deps: false\n      },\n      basePath: \"src/\"\n    }\n  },\n\n  use_base_name: {\n    files: {\n      \"dst/views_use_base_name/views.js\": \"src/**/*.dust\"\n    },\n    options: {\n      wrapperOptions: {\n        deps: false\n      },\n      useBaseName: true\n    }\n  },\n\n  no_runtime: {\n    files: {\n      \"dst/views_no_runtime/views.js\": \"src/**/*.dust\"\n    },\n    options: {\n      runtime: false\n    }\n  }\n\n}\n```\n\nFor more examples on how to use the `expand` API to manipulate the default dynamic path construction in the `glob_to_multiple` examples, see \"Building the files object dynamically\" in the grunt wiki entry [Configuring Tasks](http://gruntjs.com/configuring-tasks).\n\n## Release History\n* v0.7.7\n  - Added ability to disable package name. [Idea by Maarten van Oudenniel]\n* v0.7.6\n  - Updated dustjs-linkedin dependency\n  - Updated semver dependency\n* v0.7.5\n  - Refactored wrappers helpers\n  - Removed callback argument from template rendering function (no more compatible with previous version)\n  - Updated AMD integration example\n* v0.7.0\n  - **WARNING: some of features no more compatible with previous versions**\n  - Brand new AMD wrapper [Idea by [tfga](https://github.com/tfga)]\n  - Tests refactoring\n  - Added AMD integration examples\n* v0.6.4\n  - Update wrench version\n* v0.6.3\n  - Fixed failed tests\n* v0.6.2\n  - Fixed basePath support on Windows. [Thanks to [James Cunningham](https://github.com/jamesearl)]\n* v0.6.1\n  - Added useBaseName option. [Thanks to [DamionLNL](https://github.com/DamionLNL)]\n* v0.6.0\n  - Bring basePath option back into service. [Thanks to [Michael Gilley](https://github.com/michaelgilley)]\n* v0.5.5\n  - Update dustjs-linkedin version to v2.0.2\n* v0.5.4\n  - AMD wrapper now exports template(s) name. [Thanks to [silnijlos](https://github.com/silnijlos)]\n* v0.5.3\n  - Update dustjs-linkedin version to v2.0.0\n* v0.5.2\n  - Added \"returning\" option, which specifies the name of returning variable in CommonJS mode. [Thanks to [Wilson Wise](https://github.com/wilsonodk)]\n* v0.5.1\n  - Resolve runtime path with semver\n  - Update dustjs-linkedin version to 1.2.5\n* v0.5.0\n  - Added CommonJS support. [Thanks to [Alastair Coote](https://github.com/alastaircoote)]\n  - Two new properties \"wrapper\" and \"wrapperOptions\" instead of \"amd\".\n  - Property \"amd\" is now deprecated\n  - Added ability to define named dependencies (\"deps\" property stay object and no more compatible with previous version) [Idea by Daniel Suchy]\n* v0.4.1\n  - Fixed compatibility with new coffee-script version. [Thanks to [Alastair Coote](https://github.com/alastaircoote)]\n* v0.4.0\n  - Added option \"relative\". [Thanks to [Andy Engle](https://github.com/andyengle)]\n  - Remove extension from templates names. [Thanks to [Andy Engle](https://github.com/andyengle)]\n* v0.3.5\n  - Fixed issue with dustjs runtime path obtainment on Windows. [Thanks to Daniel Suchy]\n* v0.3.4\n  - Obtain runtime destination without `fs.*` invocations. [Thanks to Daniel Suchy]\n* v0.3.3\n  - Replaced grunt.js with Gruntfile.js in package.json\n* v0.3.2\n  - Bump grunt dependency version\n* v0.3.1\n  - Added usage examples\n  - Added options documentation\n* v0.3.0\n  - Support of final version of Grunt.js API (Thanks to Ian Parkins aka [@parkotron](https://github.com/parkotron))\n  - Tests on Mocha\n  - Tasks written on coffee compiles in runtime\n* v0.2.0\n  - Support of new Grunt.js API\n  - Refactored API according to Grunt.js updates\n* v0.1.1\n  - Fixed issue with empty array of dependencies and added ability to set package name for AMD\n* v0.1.0\n  - First release\n\n## License\nCopyright (c) 2013 Vladimir Tsvang\nLicensed under the MIT license.\n\n\n[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/vtsvang/grunt-dust/trend.png)](https://bitdeli.com/free \"Bitdeli Badge\")\n\n","maintainers":[{"name":"clevyr","email":"support@clevyr.com"}],"time":{"modified":"2022-06-12T16:05:39.487Z","created":"2015-09-24T20:33:41.623Z","0.1.0":"2015-09-24T20:33:41.623Z"},"homepage":"https://clevyr.com","keywords":["gruntplugin","clevyr","dustjs","grunt"],"repository":{"type":"git","url":"git://github.com/clevyr/clevyr-grunt-dust.git"},"author":{"name":"Clevyr","email":"support@clevyr.com"},"bugs":{"url":"https://github.com/clevyr/clevyr-grunt-dust/issues"},"readmeFilename":"README.md"}