{"_id":"grunt-ng-constant","_rev":"36-e1eee67cf0d7a08dfcc5ca7e4cfaad20","name":"grunt-ng-constant","description":"Plugin for dynamic generation of angular constant modules.","dist-tags":{"latest":"2.0.3"},"versions":{"0.4.0":{"name":"grunt-ng-constant","description":"Plugin for dynamic generation of angular constant modules.","version":"0.4.0","homepage":"https://github.com/werk85/grunt-ng-constant","author":{"name":"Malte Legenhausen","email":"legenhausen@werk85.de"},"repository":{"type":"git","url":"git://github.com/werk85/grunt-ng-constant.git"},"bugs":{"url":"https://github.com/werk85/grunt-ng-constant/issues"},"licenses":[{"type":"MIT","url":"https://github.com/werk85/grunt-ng-constant/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.1.1","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.1.2","grunt":"~0.4.1","ejs":"~0.8.3"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin"],"_id":"grunt-ng-constant@0.4.0","dist":{"shasum":"3cd709aa6a7924f627dea054d0867eb3d45698aa","tarball":"https://registry.npmjs.org/grunt-ng-constant/-/grunt-ng-constant-0.4.0.tgz","integrity":"sha512-NMQrs7TMkcgMvqEgQSKwvFxWTtNV9xL2renEV7F2k06HPJK7RWTVkmYMj90eIL1p++wfXFYS78v7kHuJoHvTiQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHfweWwW6g2qIvVblVOq+rUqBzGCeiFg4pkSyzlsZywdAiEAsbgU0ghEE6B9OOY9E2bv5WkLpTWAzPz3UiAjITagCiw="}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"mlegenhausen","email":"mlegenhausen@gmail.com"},"maintainers":[{"name":"mlegenhausen","email":"mlegenhausen@gmail.com"}],"directories":{}},"0.4.1":{"name":"grunt-ng-constant","description":"Plugin for dynamic generation of angular constant modules.","version":"0.4.1","homepage":"https://github.com/werk85/grunt-ng-constant","author":{"name":"Malte Legenhausen","email":"legenhausen@werk85.de"},"repository":{"type":"git","url":"git://github.com/werk85/grunt-ng-constant.git"},"bugs":{"url":"https://github.com/werk85/grunt-ng-constant/issues"},"licenses":[{"type":"MIT","url":"https://github.com/werk85/grunt-ng-constant/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"dependencies":{"ejs":"~0.8.3"},"devDependencies":{"grunt-contrib-jshint":"~0.1.1","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.1.2","grunt":"~0.4.1"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin"],"_id":"grunt-ng-constant@0.4.1","dist":{"shasum":"b0e0060da4a12a84691cd5c5cceafcf470e49d2b","tarball":"https://registry.npmjs.org/grunt-ng-constant/-/grunt-ng-constant-0.4.1.tgz","integrity":"sha512-LtVJHVY5ZBS4/VdpZ998nrSkx/TTsP8JP2oAvIqYdpc0rZKpDmX/xL0PwdRlOp5rwPdWshU2scmFSEQ3EZ1ZcQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDW+wK/+Lg1mBw2kY8YPhq2lbS2mQTiAh3fcUaa2OGBjgIhALSKRI5iYMec7FqQT9BeFKUv74C9d88eLQ5W01qllHaj"}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"mlegenhausen","email":"mlegenhausen@gmail.com"},"maintainers":[{"name":"mlegenhausen","email":"mlegenhausen@gmail.com"}],"directories":{}},"0.4.2":{"name":"grunt-ng-constant","description":"Plugin for dynamic generation of angular constant modules.","version":"0.4.2","homepage":"https://github.com/werk85/grunt-ng-constant","author":{"name":"Malte Legenhausen","email":"legenhausen@werk85.de"},"repository":{"type":"git","url":"git://github.com/werk85/grunt-ng-constant.git"},"bugs":{"url":"https://github.com/werk85/grunt-ng-constant/issues"},"licenses":[{"type":"MIT","url":"https://github.com/werk85/grunt-ng-constant/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"dependencies":{"ejs":"~0.8.3"},"devDependencies":{"grunt-contrib-jshint":"~0.1.1","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.1.2","grunt":"~0.4.1"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin","angular","angularjs","constants","module","generator"],"_id":"grunt-ng-constant@0.4.2","dist":{"shasum":"e391e1e7d89ec022c5da5a70b509b581ada79c28","tarball":"https://registry.npmjs.org/grunt-ng-constant/-/grunt-ng-constant-0.4.2.tgz","integrity":"sha512-7MHped1nCytT0vqR2FXD1tWPT95upxJBRsWv5hK2KRITIQ5ajN1IGdsYGNFaYOrXlPuQ4+lI5gaLHi7kNwhlnQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD3qiAJ1D0B7QPvG0YZizAwHE2yqYi2FiwDRABWIpzHCQIhAKsQhyANqE+AvcI49ajg7KFMeDlvMfqW/9S8KHPEwS2M"}]},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"mlegenhausen","email":"mlegenhausen@gmail.com"},"maintainers":[{"name":"mlegenhausen","email":"mlegenhausen@gmail.com"}],"directories":{}},"0.4.3":{"name":"grunt-ng-constant","description":"Plugin for dynamic generation of angular constant modules.","version":"0.4.3","homepage":"https://github.com/werk85/grunt-ng-constant","author":{"name":"Malte Legenhausen","email":"legenhausen@werk85.de"},"repository":{"type":"git","url":"git://github.com/werk85/grunt-ng-constant.git"},"bugs":{"url":"https://github.com/werk85/grunt-ng-constant/issues"},"licenses":[{"type":"MIT","url":"https://github.com/werk85/grunt-ng-constant/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.1.1","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.1.2","grunt":"~0.4.1"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin","angular","angularjs","constants","module","generator"],"_id":"grunt-ng-constant@0.4.3","dist":{"shasum":"ad154e655d505068ce8b741dae0d41f3137ad341","tarball":"https://registry.npmjs.org/grunt-ng-constant/-/grunt-ng-constant-0.4.3.tgz","integrity":"sha512-6nt8v0YjhcTcm2+yXzDxuHStM6oOH67gTP0HatH5PDf//t0WV56CdwWS4vV6ZhAgpXxrNqmqgEgKNZNYs7sUnw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDzb+i9WT5EE/qOM7Y4kajOyq+FKIqtqwmWxt5M8tywkwIhAJCidQsVkTbnLSDv2KPpUEibSFrmZUBCsqJ9Lzzz6KQk"}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"mlegenhausen","email":"mlegenhausen@gmail.com"},"maintainers":[{"name":"mlegenhausen","email":"mlegenhausen@gmail.com"}],"directories":{}},"0.4.4":{"name":"grunt-ng-constant","description":"Plugin for dynamic generation of angular constant modules.","version":"0.4.4","homepage":"https://github.com/werk85/grunt-ng-constant","author":{"name":"Malte Legenhausen","email":"legenhausen@werk85.de"},"repository":{"type":"git","url":"git://github.com/werk85/grunt-ng-constant.git"},"bugs":{"url":"https://github.com/werk85/grunt-ng-constant/issues"},"licenses":[{"type":"MIT","url":"https://github.com/werk85/grunt-ng-constant/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.1.1","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.1.2","grunt":"~0.4.1","grunt-bump":"0.0.11"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin","angular","angularjs","constants","module","generator"],"_id":"grunt-ng-constant@0.4.4","dist":{"shasum":"e199e10e4130324d9e093966703618c73cff8c51","tarball":"https://registry.npmjs.org/grunt-ng-constant/-/grunt-ng-constant-0.4.4.tgz","integrity":"sha512-gDaoENswgF+LvP7TlcuzMp4c44dolLoBvtG9qwXMrn1tqx+b+Leryx1sm2To/bxYUwDXZhfsqaATVWULPPv2NQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDW7/TjxLEQinWVO1YYuQH7OoW6Zvaes2xK+DXdXFVhnAiEApJ9B6NIw5rKejgdBKDZ6qb5vv3HgW4X73t4kf2eOYXs="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"mlegenhausen","email":"mlegenhausen@gmail.com"},"maintainers":[{"name":"mlegenhausen","email":"mlegenhausen@gmail.com"}],"directories":{}},"0.4.5":{"name":"grunt-ng-constant","description":"Plugin for dynamic generation of angular constant modules.","version":"0.4.5","homepage":"https://github.com/werk85/grunt-ng-constant","author":{"name":"Malte Legenhausen","email":"legenhausen@werk85.de"},"repository":{"type":"git","url":"git://github.com/werk85/grunt-ng-constant.git"},"bugs":{"url":"https://github.com/werk85/grunt-ng-constant/issues"},"licenses":[{"type":"MIT","url":"https://github.com/werk85/grunt-ng-constant/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.1.1","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.1.2","grunt":"~0.4.1","grunt-bump":"0.0.11"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin","angular","angularjs","constants","module","generator"],"dependencies":{"js2coffee":"~0.2.3","lodash":"~2.2.1"},"_id":"grunt-ng-constant@0.4.5","dist":{"shasum":"f04221a0cc921c7c94b3d699423014afb68872af","tarball":"https://registry.npmjs.org/grunt-ng-constant/-/grunt-ng-constant-0.4.5.tgz","integrity":"sha512-R2p2QDSTAO1ekcBwFVnDFX3cbbpy5B6siDZvFfu1ExCvuX3f5x8L+mZMsFq+TqcagpDLreOm1GGIxa+LKejqXA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCE8UM+3KdIJSTIgGikwSNh0H6KIyNZYX3sPmi6t5cXVgIgDnC8e8eXZfFjyZrsiNc0r887uuSM1OGGSdLV0BT57p0="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"mlegenhausen","email":"mlegenhausen@gmail.com"},"maintainers":[{"name":"mlegenhausen","email":"mlegenhausen@gmail.com"}],"directories":{}},"0.4.6":{"name":"grunt-ng-constant","description":"Plugin for dynamic generation of angular constant modules.","version":"0.4.6","homepage":"https://github.com/werk85/grunt-ng-constant","author":{"name":"Malte Legenhausen","email":"legenhausen@werk85.de"},"repository":{"type":"git","url":"git://github.com/werk85/grunt-ng-constant.git"},"bugs":{"url":"https://github.com/werk85/grunt-ng-constant/issues"},"licenses":[{"type":"MIT","url":"https://github.com/werk85/grunt-ng-constant/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.1.1","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.1.2","grunt":"~0.4.1","grunt-bump":"0.0.11"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin","angular","angularjs","constants","module","generator"],"dependencies":{"js2coffee":"~0.2.3","lodash":"~2.4.1"},"_id":"grunt-ng-constant@0.4.6","dist":{"shasum":"a978855603fddc00a7835cb4366b1e638c16ea2c","tarball":"https://registry.npmjs.org/grunt-ng-constant/-/grunt-ng-constant-0.4.6.tgz","integrity":"sha512-i6rjs0Tuje3m8t1UTCfLzeJ6Col4tWl3Is7Zq6Faa7WrmncVSx/I45MarV8eGKDVtmcW1HM+/PKIJpobwC0nhQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCV8n6ulxi7S4Uol6Utry/gquqtpbIeQQIuXZFh7+7beAIgTN7XwO/nk0JqYNMbaKD3hNzFeGGjdwafqIURA46TwPU="}]},"_from":".","_npmVersion":"1.3.15","_npmUser":{"name":"mlegenhausen","email":"mlegenhausen@gmail.com"},"maintainers":[{"name":"mlegenhausen","email":"mlegenhausen@gmail.com"}],"directories":{}},"0.4.7":{"name":"grunt-ng-constant","description":"Plugin for dynamic generation of angular constant modules.","version":"0.4.7","homepage":"https://github.com/werk85/grunt-ng-constant","author":{"name":"Malte Legenhausen","email":"legenhausen@werk85.de"},"repository":{"type":"git","url":"git://github.com/werk85/grunt-ng-constant.git"},"bugs":{"url":"https://github.com/werk85/grunt-ng-constant/issues"},"licenses":[{"type":"MIT","url":"https://github.com/werk85/grunt-ng-constant/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.1.1","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.1.2","grunt":"~0.4.1","grunt-bump":"0.0.11"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin","angular","angularjs","constants","module","generator"],"dependencies":{"js2coffee":"~0.2.3","lodash":"~2.4.1"},"_id":"grunt-ng-constant@0.4.7","dist":{"shasum":"70185979d88fa0e2edbf4338c701493cde900f58","tarball":"https://registry.npmjs.org/grunt-ng-constant/-/grunt-ng-constant-0.4.7.tgz","integrity":"sha512-t+G7WFsrSTRVP8+TFYuv41/VqpSgFj5A3eeIcXZ6XiFg82ALLoaMiDTNnW6VffAPiMzl8CDy7uddnsatg7jaxQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH4KHz/RAKGjuhI/ZfDS3WsaxM3GPW1eT8kBNYmJXmBBAiEA2RZKHZW/Uyk7o7lAwYy7DTmvwOVgzaYxD64akO9wESY="}]},"_from":".","_npmVersion":"1.3.17","_npmUser":{"name":"mlegenhausen","email":"mlegenhausen@gmail.com"},"maintainers":[{"name":"mlegenhausen","email":"mlegenhausen@gmail.com"}],"directories":{}},"0.4.8":{"name":"grunt-ng-constant","description":"Plugin for dynamic generation of angular constant modules.","version":"0.4.8","homepage":"https://github.com/werk85/grunt-ng-constant","author":{"name":"Malte Legenhausen","email":"legenhausen@werk85.de"},"repository":{"type":"git","url":"git://github.com/werk85/grunt-ng-constant.git"},"bugs":{"url":"https://github.com/werk85/grunt-ng-constant/issues"},"licenses":[{"type":"MIT","url":"https://github.com/werk85/grunt-ng-constant/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.8.0","grunt-contrib-clean":"~0.5.0","grunt-contrib-nodeunit":"~0.2.2","grunt":"~0.4.1","grunt-bump":"0.0.13"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin","angular","angularjs","constants","module","generator"],"dependencies":{"js2coffee":"~0.2.3","lodash":"~2.4.1"},"_id":"grunt-ng-constant@0.4.8","dist":{"shasum":"f39f9badb85f385c4f56ae2a99f62793cffc85e0","tarball":"https://registry.npmjs.org/grunt-ng-constant/-/grunt-ng-constant-0.4.8.tgz","integrity":"sha512-QGRfWp1PXr/yXd6m8JNewakBzxhCPuUl2lTcEvnhUZb6xg7mM02dyCTvsariN0EtO6IyGKgtR3Gu2sjL5bST2g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCGvoT4CxHHaSEPvGNfwUmTbFvQj60H2iWQiX8Uk0hnhwIhAMGyVjuysWl8fJZ3hAkXZoHyRLHa8Il+yhcJKnUcM/5+"}]},"_from":".","_npmVersion":"1.3.23","_npmUser":{"name":"mlegenhausen","email":"mlegenhausen@gmail.com"},"maintainers":[{"name":"mlegenhausen","email":"mlegenhausen@gmail.com"}],"directories":{}},"0.5.0":{"name":"grunt-ng-constant","description":"Plugin for dynamic generation of angular constant modules.","version":"0.5.0","homepage":"https://github.com/werk85/grunt-ng-constant","author":{"name":"Malte Legenhausen","email":"legenhausen@werk85.de"},"repository":{"type":"git","url":"git://github.com/werk85/grunt-ng-constant.git"},"bugs":{"url":"https://github.com/werk85/grunt-ng-constant/issues"},"licenses":[{"type":"MIT","url":"https://github.com/werk85/grunt-ng-constant/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","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.1","grunt-bump":"0.0.13"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["grunt","gruntplugin","angular","angularjs","constants","constant","values","value","module","generator"],"dependencies":{"lodash":"~2.4.1"},"_id":"grunt-ng-constant@0.5.0","dist":{"shasum":"b8739e36921c4111bece041a6d3294479aa7ef73","tarball":"https://registry.npmjs.org/grunt-ng-constant/-/grunt-ng-constant-0.5.0.tgz","integrity":"sha512-RyLqDMK62Uu/uFX8cnjPJA0aJRJZSMxrAP+kr7ZyehhyDF+UYgj/bYsQKYezVe4yyt7C3CwoRd+abBMSF5rgYQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA19qEol++/YmalpEpWRjjU7Evc6M7m09qblM7p0qSl0AiAN+zXz9FVFPsg6Jax+wWgYlM94Z9xlL7f+l+5yOH1mYA=="}]},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"mlegenhausen","email":"mlegenhausen@gmail.com"},"maintainers":[{"name":"mlegenhausen","email":"mlegenhausen@gmail.com"}],"directories":{}},"1.0.0":{"name":"grunt-ng-constant","description":"Plugin for dynamic generation of angular constant modules.","version":"1.0.0","homepage":"https://github.com/werk85/grunt-ng-constant","author":{"name":"Malte Legenhausen","email":"legenhausen@werk85.de"},"repository":{"type":"git","url":"git://github.com/werk85/grunt-ng-constant.git"},"bugs":{"url":"https://github.com/werk85/grunt-ng-constant/issues"},"licenses":[{"type":"MIT","url":"https://github.com/werk85/grunt-ng-constant/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.10.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"~0.4.1","grunt-bump":"0.0.15","grunt-contrib-clean":"^0.6.0","grunt-contrib-jshint":"^0.10.0","grunt-contrib-nodeunit":"^0.4.1"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["grunt","gruntplugin","angular","angularjs","constants","constant","values","value","module","generator"],"dependencies":{"jju":"^1.0.4","lodash":"~2.4.1","tosource":"^0.1.1"},"gitHead":"db610100e0f1437a31728999d07e3228affca866","_id":"grunt-ng-constant@1.0.0","_shasum":"484536f561de502e1d06d5caae12dba1c6cf99ee","_from":".","_npmVersion":"1.4.16","_npmUser":{"name":"mlegenhausen","email":"mlegenhausen@gmail.com"},"maintainers":[{"name":"mlegenhausen","email":"mlegenhausen@gmail.com"}],"dist":{"shasum":"484536f561de502e1d06d5caae12dba1c6cf99ee","tarball":"https://registry.npmjs.org/grunt-ng-constant/-/grunt-ng-constant-1.0.0.tgz","integrity":"sha512-aSve6BD9gzR/drMkhznivm9bWtQ+7roc2ZKPZvLzX/yD3u/FEkvsF52gcYNEj4kRu8stHYwGGPnKL7lgh4kCVQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDCKAOBplQZN6TkcG0LW7is2W8dEIdTVm7eY/pxUF/pMAIgQtDUPYXIbaRHmZ4c8ZXGezWllz7AVQ33ej36We1qrPE="}]},"directories":{}},"1.1.0":{"name":"grunt-ng-constant","description":"Plugin for dynamic generation of angular constant modules.","version":"1.1.0","homepage":"https://github.com/werk85/grunt-ng-constant","author":{"name":"Malte Legenhausen","email":"legenhausen@werk85.de"},"repository":{"type":"git","url":"git://github.com/werk85/grunt-ng-constant.git"},"bugs":{"url":"https://github.com/werk85/grunt-ng-constant/issues"},"licenses":[{"type":"MIT","url":"https://github.com/werk85/grunt-ng-constant/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.10.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"~0.4.1","grunt-bump":"0.0.15","grunt-contrib-clean":"^0.6.0","grunt-contrib-jshint":"^0.10.0","grunt-contrib-nodeunit":"^0.4.1"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["grunt","gruntplugin","angular","angularjs","constants","constant","values","value","module","generator"],"dependencies":{"jju":"^1.0.4","lodash":"~2.4.1","tosource":"^0.1.1"},"gitHead":"30fae8b49d8084b1e880ed58b0ff05128144f4bb","_id":"grunt-ng-constant@1.1.0","_shasum":"a68dc041a4baea79f95abaf5ebc7797a4217771c","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"mlegenhausen","email":"mlegenhausen@gmail.com"},"maintainers":[{"name":"mlegenhausen","email":"mlegenhausen@gmail.com"}],"dist":{"shasum":"a68dc041a4baea79f95abaf5ebc7797a4217771c","tarball":"https://registry.npmjs.org/grunt-ng-constant/-/grunt-ng-constant-1.1.0.tgz","integrity":"sha512-ytd3hTMR/aasSmHHFcpD3bqtPnI08EA9GX4IVwvS1t1LmUSwmKsQu/2GhhCMmc2lFHkzCrq0zoTgK9g7stQIPQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC6xKPNMDhwW9GHBzvT06sc/qxA0H7wCNNmlp8sLS2S6AiEA0dw/BGEM4XTkArywFtFKnA3lrVY/mIhhEjcU8YLqzBA="}]},"directories":{}},"2.0.0":{"name":"grunt-ng-constant","description":"Plugin for dynamic generation of angular constant modules.","version":"2.0.0","homepage":"https://github.com/werk85/grunt-ng-constant","author":{"name":"Malte Legenhausen","email":"legenhausen@werk85.de"},"repository":{"type":"git","url":"git://github.com/werk85/grunt-ng-constant.git"},"bugs":{"url":"https://github.com/werk85/grunt-ng-constant/issues"},"licenses":[{"type":"MIT","url":"https://github.com/werk85/grunt-ng-constant/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.10.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"^0.4.5","grunt-bump":"^0.7.0","grunt-cli":"^0.1.13","grunt-contrib-clean":"^0.7.0","grunt-contrib-jshint":"^0.11.3","grunt-contrib-nodeunit":"^0.4.1"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["grunt","gruntplugin","angular","angularjs","constants","constant","values","value","module","generator"],"dependencies":{"jju":"^1.2.1","lodash":"^4.0.0","merge":"^1.2.0","tosource":"^1.0.0"},"gitHead":"f9616742a603ee867644f2894fb8a90ffdb1fc12","_id":"grunt-ng-constant@2.0.0","_shasum":"0cd4bd7a520293025e6a0eccdc981192fd36aa08","_from":".","_npmVersion":"3.5.2","_nodeVersion":"5.3.0","_npmUser":{"name":"mlegenhausen","email":"mlegenhausen@gmail.com"},"maintainers":[{"name":"mlegenhausen","email":"mlegenhausen@gmail.com"}],"dist":{"shasum":"0cd4bd7a520293025e6a0eccdc981192fd36aa08","tarball":"https://registry.npmjs.org/grunt-ng-constant/-/grunt-ng-constant-2.0.0.tgz","integrity":"sha512-QlaJ0DCVIGfjrRe+ZAucGwKqv4Mb4gmnzyMAZW1qRZHA8FLk29AnLbpruad5SSlHiDxvyTRWhtPVqPZ0ekHDyA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICM+pAO8MpPJF1Lvxmd3Mg3z519NDuvXJRTz/Zf8dbHTAiEA0oukcxOnUDej8CnOXNTcwpf13+UlmDtVAOmdmwJ6xP0="}]},"directories":{}},"2.0.1":{"name":"grunt-ng-constant","description":"Plugin for dynamic generation of angular constant modules.","version":"2.0.1","homepage":"https://github.com/werk85/grunt-ng-constant","author":{"name":"Malte Legenhausen","email":"legenhausen@werk85.de"},"repository":{"type":"git","url":"git://github.com/werk85/grunt-ng-constant.git"},"bugs":{"url":"https://github.com/werk85/grunt-ng-constant/issues"},"licenses":[{"type":"MIT","url":"https://github.com/werk85/grunt-ng-constant/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.10.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"1.0.0-rc1","grunt-bump":"^0.7.0","grunt-cli":"^0.1.13","grunt-contrib-clean":"^1.0.0","grunt-contrib-jshint":"^1.0.0","grunt-contrib-nodeunit":"^0.4.1"},"peerDependencies":{"grunt":">=0.4.0"},"keywords":["grunt","gruntplugin","angular","angularjs","constants","constant","values","value","module","generator"],"dependencies":{"jju":"^1.3.0","lodash":"^4.5.1","merge":"^1.2.0","tosource":"^1.0.0"},"gitHead":"3c52f812f72d6c50c5b618171a2e78af289f211f","_id":"grunt-ng-constant@2.0.1","_shasum":"0861c4398b2fc18754ff733e58c9a4f4cfdb57e9","_from":".","_npmVersion":"3.7.2","_nodeVersion":"5.6.0","_npmUser":{"name":"mlegenhausen","email":"mlegenhausen@gmail.com"},"maintainers":[{"name":"mlegenhausen","email":"mlegenhausen@gmail.com"}],"dist":{"shasum":"0861c4398b2fc18754ff733e58c9a4f4cfdb57e9","tarball":"https://registry.npmjs.org/grunt-ng-constant/-/grunt-ng-constant-2.0.1.tgz","integrity":"sha512-39EVYBIh1RJx0AmZu1s15YUf9wxfpRNbmcoBnre5sxQlR4HL37h2tngizlv0ytMC/+5JXPD9tf4jweHOAor6xA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFTq2TZKyOpnZvYARntCe5pQjm3CsM53vnkydjKii1KTAiEA26P1bpj7MuiLNXES2366SM1hKO3rwGPcDjTI8bT977s="}]},"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/grunt-ng-constant-2.0.1.tgz_1456129395128_0.729085240745917"},"directories":{}},"2.0.2":{"name":"grunt-ng-constant","description":"Plugin for dynamic generation of angular constant modules.","version":"2.0.2","homepage":"https://github.com/werk85/grunt-ng-constant","author":{"name":"Malte Legenhausen","email":"legenhausen@werk85.de"},"repository":{"type":"git","url":"git://github.com/werk85/grunt-ng-constant.git"},"bugs":{"url":"https://github.com/werk85/grunt-ng-constant/issues"},"license":"MIT","main":"Gruntfile.js","engines":{"node":">= 0.10.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"^1.0.3","grunt-bump":"^0.8.0","grunt-contrib-clean":"^2.0.0","grunt-contrib-jshint":"^2.0.0","grunt-contrib-nodeunit":"^2.0.0"},"peerDependencies":{"grunt":">=0.4.0"},"keywords":["grunt","gruntplugin","angular","angularjs","constants","constant","values","value","module","generator"],"dependencies":{"jju":"^1.3.0","lodash":"^4.5.1","merge":"^1.2.1","tosource":"^1.0.0"},"gitHead":"1859e1fc7ceb6f29f08f01194c61a32cd633e8aa","_id":"grunt-ng-constant@2.0.2","_npmVersion":"6.4.1","_nodeVersion":"10.15.1","_npmUser":{"name":"mlegenhausen","email":"mlegenhausen@gmail.com"},"dist":{"integrity":"sha512-pgWLcmg1cMprYeL/V7/h/ZCpJS+81kpuqUYnfDWbNhS6m+U2Gjxynv9kcCWoR5273jrpGvdi5B+l5P6GaYCYOQ==","shasum":"8b0d495c5d31450e5223a98b8ee07f86b11f0901","tarball":"https://registry.npmjs.org/grunt-ng-constant/-/grunt-ng-constant-2.0.2.tgz","fileCount":20,"unpackedSize":29970,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcW+TyCRA9TVsSAnZWagAAu3kP/2P6SvJFmZO9hAnkdAgn\nIwN4Y7FfgXJKM3/MtuVIvBNjZbqUhz+gebgD7rPhuhNT2b78oOugjSOdXI2k\nOebDkhQC0IjtzLxR8/EQJKNIXZl7pc9pbJ5j3Ioa8GnAnfuEe6teLdjt+90+\ne/dWTKX0uNNSG7yaXz1RiGOH0MfpvKnaFKPJhqd+MAeGf0AlWpC2reh97C0J\n4PboqR/4FmKOofST+V8nD2GKgwlEPt0BY6x0kmOCBv8onpLplMjGa7+wnPCc\nwSPx5oS/QaZtxD2dxtIfRfrM8cYB73JAvj1hpk5f8dpGcy/Gl0YWH/bwXPRz\nthxIlllcdy1c1G1OFEcZzvcVSrdb5UeVkGhIADPQP+QMd6x0HqY3BoXZe+uV\nPjSvnRISre51F21phqnI3niVWEc1eWTrBHBm8g550Guk+I3VoBQd3DKYdkot\njDOYK2sdgkjSJN+XbTs90FYnKnoqa4pPf8GKrYrJXvTalNnne/wBPYXw7Rds\nvuNSNlrPyKSaUB0V+dqVbEG/0oIq2cjOsy6lq2w+h9O12KBM10qtS4QRU1FI\nF9u58ogbD8Xewd5PI/OWf0GDvFWO/WkvY9H/tExQrPFPlh3Z9osGHG37vMcT\nxyyzRbap4SE49CjRtWJyobukRX83lTsea4KzSaPkIRuSn9PvyvqDMTtYvmJP\ndT4e\r\n=ozZp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFMRnLS/ITIEIruWDXl/RlIlzqFzFFC5ZfR4s1jlBZA4AiAT2C0MRVFD/bM7+rV71DJNaf2mhJ/XtoS59Bux+2mfmA=="}]},"maintainers":[{"name":"mlegenhausen","email":"mlegenhausen@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/grunt-ng-constant_2.0.2_1549526257494_0.5184156989667317"},"_hasShrinkwrap":false},"2.0.3":{"name":"grunt-ng-constant","description":"Plugin for dynamic generation of angular constant modules.","version":"2.0.3","homepage":"https://github.com/werk85/grunt-ng-constant","author":{"name":"Malte Legenhausen","email":"legenhausen@werk85.de"},"repository":{"type":"git","url":"git://github.com/werk85/grunt-ng-constant.git"},"bugs":{"url":"https://github.com/werk85/grunt-ng-constant/issues"},"license":"MIT","main":"Gruntfile.js","engines":{"node":">= 0.10.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"^1.4.0","grunt-bump":"^0.8.0","grunt-contrib-clean":"^2.0.0","grunt-contrib-jshint":"^2.0.0","grunt-contrib-nodeunit":"^2.0.0"},"peerDependencies":{"grunt":">=0.4.0"},"keywords":["grunt","gruntplugin","angular","angularjs","constants","constant","values","value","module","generator"],"dependencies":{"jju":"^1.3.0","lodash":"^4.17.21","tosource":"^1.0.0"},"gitHead":"012ae8a8dbc757b57eb3545fce11a40835579d67","_id":"grunt-ng-constant@2.0.3","_nodeVersion":"14.16.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-ACc/hfEjpESWVTWJ/lF4Ps6YAWJiKX2MAbKSXMJN3orDN2oKuGl7TPkl2w6YbNmFgErqHdDMozHeWvhh9m/McQ==","shasum":"74d14d0d34afdfaa1680c246cfd9c7004f1f1fa6","tarball":"https://registry.npmjs.org/grunt-ng-constant/-/grunt-ng-constant-2.0.3.tgz","fileCount":20,"unpackedSize":30070,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgnjgCCRA9TVsSAnZWagAAoLEQAKGBIP24D5t59pj+ZS1/\nTU8my3uZlHX9DETTGAk7k25vRkhaPH+faN8NmCIe7x4XGxviBqpzj9YlEyM3\nhEdjPrAd8yxr69ROVav8SKhRxl5aOkPcLC7OvU0grTPhVk5Io6oQvxOwvDwe\n7kqVdjMgnZiNJ0/sgCQkof7IsF7/Gf2D+Fq8I3R92bTtHL7T5UCPE8mnvu3H\nwHsCgPUULTac8eBr4vOpw+i9lsgVNMMPU/D1hMjIOH1amYCJGvrICb6x2YuG\nYcReHqsDTOXvNcXA+VRZ/PPKNWF2+aAc0XZvV7OCJLlhvFLJRWLfCmhT4YCH\nS4KjF6UioFiNq9uVE4Gn6aEIwgLkj+U0ZMTHsn5vRRCueLN1Z+YkuKs/F7qi\njTA0RZU6DgBd7EUpd13dPK5rSNfQHcjw50UUXEtPWOBKKiG+ggpw1StQmsax\nYAcPCdByu1x0IE7vDlOTa0PyO8ojlPfewPplrC3DWkvET8KKtaSa0lN0xK/h\nRMBOxYcDv/IyecBZL/rfQmAi73uJeueS/zlDEk0p9PWrWsGG0IDFawn/6X9F\n+aSH4F9rQqQSspBkRtvmReB1lxuxzp8znLrAOn+MWzWvObM9+nj90nFUmoVt\nW8TstIVQd+IuE0Pa/LImEzZWPTHp8dEsmxhVDv7ZHWBv2lbDbLqJUOLhbbi1\nF2B2\r\n=VA+C\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEEgZ/60Qkzxy96P8Jf4VX4w1GwR+B22nU+Yi4dH1XOwAiAkMolok5L0sutbESoMSqUjXbrD9sMDZNNXHdmNDqDjWA=="}]},"_npmUser":{"name":"mlegenhausen","email":"mlegenhausen@gmail.com"},"directories":{},"maintainers":[{"name":"mlegenhausen","email":"mlegenhausen@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/grunt-ng-constant_2.0.3_1620981761817_0.07017082186474766"},"_hasShrinkwrap":false}},"readme":"# grunt-ng-constant [![CircleCI](https://circleci.com/gh/werk85/grunt-ng-constant.svg?style=svg)](https://circleci.com/gh/werk85/grunt-ng-constant)\n\n> Plugin for dynamic generation of angular constant and value modules.\n\n## Getting Started\nThis plugin requires Grunt `~0.4.5`\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-ng-constant --save-dev\n```\n\nWhen the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\n\n```js\ngrunt.loadNpmTasks('grunt-ng-constant');\n```\n\n## The \"ngconstant\" task\n\n### Overview\nThe following shows a simple configuration for generating a config module with one constant and one value that contain your package information and debug config.\n\n```js\ngrunt.initConfig({\n  ngconstant: {\n    options: {\n      name: 'config',\n      dest: 'config.js',\n      constants: {\n        package: grunt.file.readJSON('package.json')\n      },\n      values: {\n        debug: true\n      }\n    },\n    build: {\n    }\n  },\n})\n```\n\nFor the target `build` the resulting file `config.js` looks like this:\n\n```js\nangular.module('config', [])\n\n.constant('package', {\n  \"version\": \"0.0.1\",\n  ...\n})\n\n.value(\"debug\", true)\n\n;\n```\n\n### Options\n\n#### name\nType: `String`\n\nRequired\n\nThe name of the constant module used in your angular project.\n\n#### dest\nType: `String`\n\nRequired\n\nThe path where the generated constant module should be saved.\n\n#### deps\nType: `Array` or `Boolean`\n\nDefault value: `[]`\n\nOptional\n\nAn array that specifies the default dependencies a module should have. When your module should not have any modules, so you can append the constants to an already existing one, you can set `deps` to `false`.\n\n#### constants\nType: `Object`, `String`, `Function`\n\nDefault value: `{}`\n\nOptional\n\nIf it is an object it gets automatically merged in all target `constants` definitions. This option should be used when you need a global `constants` definition for all your targets.\n\n#### values\nType: `Object`, `String`, `Function`\n\nDefault value: `{}`\n\nOptional\n\nIf it is an object it gets automatically merged in all target `values` definitions. This option should be used when you need a global `values` definition for all your targets.\n\n#### wrap\nType: `String` or `Boolean`\n\nDefault value: `false`\n\nOptional\n\nA boolean to activate or deactivate the automatic wrapping. A string which will wrap the result of file, use the `{%= __ngModule %}` variable to indicate where to put the generated module content. See the \"Custom Wrap Option\" section for further informations.\n\n#### serializer\nType: `String|Function`\n\nDefault value: `jju`\n\nOptional\n\nAvailable options:\n\n * `jju` (Default) Uses the [jju](https://github.com/rlidwka/jju) stringify method.\n * `json` Uses `JSON.stringify` for serialization.\n * `tosource` Use the [node-tosource](https://github.com/marcello3d/node-tosource) module.\n\nIf you want to define your own serializer use `function(obj, serializerOptions, options) { return /* your serialized string */ }`. `this` will be set to the plugin context.\n\n#### serializerOptions\nType: `Object`\n\nDefault value: `{indent: '', no_trailing_comma: true}`\n\nOptional\n\nUse this option for setting specific options for the given serializer. The default config configures the [jju](https://github.com/rlidwka/jju) stringify method. See the documentation for more information of possible options.\n\n#### template\nType: `String`\n\nDefault value: `grunt.file.read('constant.tpl.ejs')`\n\nOptional\n\nCustom template for creating the output constants file. Defaults to the default constants template file if none provided.\n\n#### delimiters\nType: `String`\n\nDefault value: `'ngconstant'` which sets the template delimiters to `{%` and `%}`. Make sure that you do not use the same delimiters as your grunt configuration or you get an unwanted behavior.\n\nOptional\n\n#### configMergeCustomizer\nType: `Function`\n\nDefault value: `_.noop`\n\nOptional\n\nAllows to customize the merge of global and target configuration. The function has the signature `(key, objValue, srcValue, key, object, source, stack)`. The `key` parameter can be `'constants'` or `'values'`. The rest of the parameters is identical to [_.mergeWith](https://lodash.com/docs#mergeWith).\n\n### Usage Examples\n\n#### Default Options\nIn this example I convert the package.json information to an angular module. So I am able to display such things as the current version of the application in the app.\n\n```js\ngrunt.initConfig({\n  ngconstant: {\n    dist: {\n      options: {\n        dest: 'dist/constants.js',\n        name: 'constants',\n      },\n      constants: {\n        package: grunt.file.readJSON('package.json')\n      },\n      values: {\n        debug: true\n      }\n    }\n  },\n})\n```\n\n__Note__: In most cases for all following examples the applied functionality on `constants` can also be achieved with the `values` parameter.\n\n#### Custom Options\nIn this example we set custom configurations for the `space` and `deps` parameters. So we create a module that has `dep1` and `dep2` as dependencies and defines two different constants `constants1` and `constants2` with custom values. The `space` parameter is set to a ` `.\n\n```js\ngrunt.initConfig({\n  ngconstant: {\n    options: {\n      space: ' ',\n      deps: ['dep1', 'dep2'],\n      dest: 'dist/module.js',\n      name: 'someModule'\n    },\n    dist: {\n      constants: {\n        'constant1': {\n          'key1': 'value1',\n          'key2': 42\n        },\n        'constant2': 'value2'\n      }\n    }\n  },\n})\n```\n\nThe resulting module looks like the following:\n\n```js\nangular.module(\"someModule\", [\"dep1\", \"dep2\"])\n\n.constant(\"constant1\", {\n  \"key1\": \"value1\",\n  \"key2\": 42\n})\n\n.constant(\"constant2\", \"value2\")\n\n;\n```\n\nYou can also load the constants definition directly from a file:\n\n```js\ngrunt.initConfig({\n  ngconstant: {\n    options: {\n      dest: 'dist/module.js',\n      name: 'someModule'\n    },\n    dist: {\n      constants: 'constants.json'\n    }\n  },\n})\n```\n\nOr if you want to calculate the constants value at runtime you can create a lazy evaluated method which should be used if you generate your json file during the build process.\n\n```js\ngrunt.initConfig({\n  ngconstant: {\n    options: {\n      dest: 'dist/module.js',\n      name: 'someModule'\n    },\n    dist: {\n      constants: function () {\n        return {\n          lazyConfig: grunt.file.readJSON('build/lazy-config.json')\n        };\n      }\n    }\n  },\n})\n```\n\n#### Wrap Option\n\nThe `wrap` option allows you to encapsulate the module in a closure. Simply set `wrap` to `true`.\n\n```js\ngrunt.initConfig({\n  ngconstant: {\n    options: {\n      dest: 'tmp/wrap_options.js',\n      name: 'module2',\n      wrap: true\n    },\n    dist: {\n      constants: {\n        'constant1': {\n          key1: 123,\n          key2: 'value2',\n          foobar: false\n        }\n      }\n      \n    },\n    nowrap: { \n      options: {\n        wrap: false // Disable wrapping for the 'nowrap' target\n      },\n      constants: {\n        ...\n      }\n    }\n  },\n})\n```\n\nThe resulting module looks like:\n\n```js\n(function(angular, undefined) {\n   angular.module(\"module2\", [\"test\"])\n\n.constant(\"constant1\", {\n  \"key1\": 123,\n  \"key2\": \"value2\",\n  \"foobar\": false\n})\n\n; \n})(angular);\n```\n\n#### Custom Wrap Option\n\nIf you want to use another wrapping you can use a string as `wrap` option, which is interpolated by the plugin. Use the `__ngModule` variable as placeholder for the generated module.\n\nHere a RequireJS example:\n\n```js\ngrunt.initConfig({\n  ngconstant: {\n    options: {\n      dest: 'tmp/wrap_options.js',\n      name: 'module2',\n      wrap: 'define([\"angular\", \"ngResource\", \"ngCookies\"], function() { \\n return {%= __ngModule %} \\n\\n});',\n    },\n    dist: {\n      constants: {\n        'constant1': {\n          key1: 123,\n          key2: 'value2',\n          foobar: false\n        }\n      }\n    }\n  },\n})\n```\n\nThe resulting module looks like the following:\n\n```js\ndefine([\"angular\", \"ngResource\", \"ngCookies\"], function() { \n return angular.module(\"module2\", [\"test\"])\n\n.constant(\"constant1\", {\n  \"key1\": 123,\n  \"key2\": \"value2\",\n  \"foobar\": false\n})\n\n; \n\n});\n```\n\n__Note__: For longer wrapping templates it is recommended to use `grunt.file.read('customer-wrap.tpl.ejs')`.\n\n#### Global Constants option\n\nIf you need the same configuration for all your targets you can use the `constants` option to automatically merge your per target configuration into the global one. If you don't want to merge, you can use the per target `constants` option to override everything.\n\n```js\ngrunt.initConfig({\n  ngconstant: {\n    options: {\n      name: 'config',\n      dest: 'config.js',\n      constants: {\n        title: 'grunt-ng-constant',\n        debug: true\n      }\n    },\n    dev: {\n      constants: {\n        title: 'grunt-ng-constant-beta'\n      }\n    },\n    prod: {\n      constants: {\n        debug: false\n      }\n    },\n    override_global: {\n      options: {\n        constants: { // This does not merge it overrides\n          ...\n        }\n      }\n    }\n  }\n});\n```\n\nWhich results in the following constants objects.\n\nFor the target `dev`:\n\n```js\nangular.module('config', [])\n\n.constant('title', 'grunt-ng-constant-beta')\n\n.constant('debug', true)\n\n;\n```\n\nFor the target `prod`:\n\n```js\nangular.module('config', [])\n\n.constant('title', 'grunt-ng-constant')\n\n.constant('debug', false)\n\n;\n```\n\n## FAQ\n\n#### How can I change the style of the generated code?\nIf the code looks to ugly for you. You can use [grunt-jsbeautifyer](https://github.com/vkadam/grunt-jsbeautifier).\n\n#### How can I create multiple modules?\nCreate a custom target for each module and set the `dest`, `name`, `constants` and `values` parameter for each one.\n\n#### How can I create a CoffeeScript version of the module\nTill v1.0.0 this was supported natively by the plugin. Now you have to use the [grunt-js2coffee](https://github.com/jonschlinkert/grunt-js2coffee) plugin.\n\n#### Hey I like this project how can I help?\nReport bugs, propose new features or simply star the project that shows me that are people are interested in this project.\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](http://gruntjs.com/).\n","maintainers":[{"name":"mlegenhausen","email":"mlegenhausen@gmail.com"}],"time":{"modified":"2022-06-18T15:34:47.330Z","created":"2013-03-28T14:22:51.524Z","0.4.0":"2013-03-28T14:22:54.501Z","0.4.1":"2013-06-04T14:10:21.934Z","0.4.2":"2013-07-11T12:38:25.332Z","0.4.3":"2013-09-24T14:14:01.772Z","0.4.4":"2013-10-15T18:22:35.228Z","0.4.5":"2013-11-01T09:49:25.727Z","0.4.6":"2013-12-12T08:50:24.666Z","0.4.7":"2013-12-12T14:16:58.596Z","0.4.8":"2014-01-15T17:49:10.109Z","0.5.0":"2014-03-14T18:21:03.143Z","1.0.0":"2014-08-01T13:33:08.894Z","1.1.0":"2015-02-19T08:35:33.941Z","2.0.0":"2016-01-13T20:13:15.504Z","2.0.1":"2016-02-22T08:23:18.261Z","2.0.2":"2019-02-07T07:57:37.598Z","2.0.3":"2021-05-14T08:42:41.969Z"},"author":{"name":"Malte Legenhausen","email":"legenhausen@werk85.de"},"repository":{"type":"git","url":"git://github.com/werk85/grunt-ng-constant.git"},"readmeFilename":"README.md","homepage":"https://github.com/werk85/grunt-ng-constant","keywords":["grunt","gruntplugin","angular","angularjs","constants","constant","values","value","module","generator"],"bugs":{"url":"https://github.com/werk85/grunt-ng-constant/issues"},"users":{"makoto99":true,"skarface":true},"license":"MIT"}