UNPKG

generator-nodejs

Version:
92 lines (84 loc) 2.07 kB
{ "name": "<%- moduleName %>", "version": "1.0.0", "description": "<%- dequote(moduleDesc) %>", "main": "index.js", "scripts": { "test": "<% var out = ''; if (useGrunt) { out = 'node_modules/.bin/grunt ci'; } else { switch (testFramework) { case 'mocha': out = 'node_modules/.bin/mocha' break; case 'redtape': case 'tape': out = 'node_modules/.bin/tape test/*.js'; break; } } %><%- out %>" }, "repository": { "type": "git", "url": "https://github.com/<%- githubName %>/<%- moduleName %>" }, "keywords": <%- JSON.stringify(keywords) %>, "author": "<%- dequote(author) %>", "license": "BSD-3-Clause", "bugs": { "url": "https://github.com/<%- githubName %>/<%- moduleName %>/issues" }, "dependencies": {}, "devDependencies": { <% out = ''; switch (assertionLibrary) { case 'expect.js': out = ' "expect.js": "^0.3.1",'; break; case 'chai': out = ' "chai": "^3.4.1",'; break; default: break; } %><%- out %> <% if (useGrunt) { %> "grunt-contrib-jshint": "^0.11.3", "grunt-contrib-watch": "^0.6.1", "grunt": "^0.4.5", <% out = ''; switch (testFramework) { case 'mocha': out = ' "grunt-mocha-cli": "^2.0.0",\n'; break; case 'redtape': out = ' "redtape": "^1.0.0",\n'; case 'tape': out += ' "tape": "^4.4.0",\n'; out += ' "grunt-tape": "^0.0.2",'; break; }%><%- out %><% out = '' %> "grunt-complexity": "^0.3.0", "grunt-cli": "^0.1.13"<% } else { out = ''; switch (testFramework) { case 'mocha': out = ' "mocha": "^2.3.4"'; break; case 'redtape': out = ' "redtape": "^1.0.0",\n'; case 'tape': out += ' "tape": "^4.4.0"'; break; } }%><%- out %> } }